All Projects → stylelint-scss → stylelint-scss

stylelint-scss / stylelint-scss

Licence: MIT license
A collection of SCSS specific linting rules for Stylelint

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to stylelint-scss

stylelint-z-index-value-constraint
Stylelint rule for setting minimum and maximum constraint value for z-index.
Stars: ✭ 18 (-97.78%)
Mutual labels:  stylelint, linter-plugin
promotion-web
基于React: v18.x.x/Webpack: v5.x.x/React Router v6.x.x/ Antd: v5..x.x/Fetch Api/ Typescript: v4.x.x 等最新版本进行构建...
Stars: ✭ 374 (-53.94%)
Mutual labels:  stylelint
Styled React Boilerplate
Minimal & Modern boilerplate for building apps with React & styled-components
Stars: ✭ 198 (-75.62%)
Mutual labels:  stylelint
starter-kit
🏃 A simple and powerful Starter Kit made with Webpack, Gulp 4, Pug and SASS
Stars: ✭ 21 (-97.41%)
Mutual labels:  stylelint
Stylelint No Unsupported Browser Features
Disallow features that aren't supported by your target browser audience.
Stars: ✭ 238 (-70.69%)
Mutual labels:  stylelint
eslint-config-ns
ESLint config ready to be used in multiple projects. Based on Airbnb's code style with prettier, jest and react support.
Stars: ✭ 27 (-96.67%)
Mutual labels:  stylelint
Stylefmt
stylefmt is a tool that automatically formats stylesheets.
Stars: ✭ 2,123 (+161.45%)
Mutual labels:  stylelint
eslint-config-stylelint
Stylelint org's shareable config for eslint
Stars: ✭ 45 (-94.46%)
Mutual labels:  stylelint
ultimate-hot-boilerplate
🚀 node-react universal app boilerplate with everything on hot reload, SSR, GraphQL, Flow included
Stars: ✭ 35 (-95.69%)
Mutual labels:  stylelint
wpcs-docs
WordPress Coding Standards Docs
Stars: ✭ 59 (-92.73%)
Mutual labels:  stylelint
tryceratops
A linter to prevent exception handling antipatterns in Python (limited only for those who like dinosaurs).
Stars: ✭ 381 (-53.08%)
Mutual labels:  stylelint
stylelint-problem-matcher
A GitHub Action that registers a problem matcher for Stylelint's report format
Stars: ✭ 18 (-97.78%)
Mutual labels:  stylelint
Husky.Net
Git hooks made easy with Husky.Net internal task runner! 🐶 It brings the dev-dependency concept to the .NET world!
Stars: ✭ 394 (-51.48%)
Mutual labels:  stylelint
Front End Guide
📚 Study guide and introduction to the modern front end stack.
Stars: ✭ 14,073 (+1633.13%)
Mutual labels:  stylelint
stencil-boilerplate
A Stencil app boilerplate including routing, Redux etc.
Stars: ✭ 51 (-93.72%)
Mutual labels:  stylelint
Stylelint Prettier
Stylelint plugin for Prettier formatting
Stars: ✭ 188 (-76.85%)
Mutual labels:  stylelint
vscode-lint
A VSCode configuration tool integrating Stylelint and Eslint
Stars: ✭ 60 (-92.61%)
Mutual labels:  stylelint
linter-ansible-linting
ansible-lint linter for atom
Stars: ✭ 19 (-97.66%)
Mutual labels:  linter-plugin
html-sass-jumpstart
Minimal Sass/HTML Template Site - dart sass powered, includes stylelint and prettier, and autoprefix upon build. develop script includes hot-reload via browsersync.
Stars: ✭ 82 (-89.9%)
Mutual labels:  stylelint
cra-template-quickstart-redux
Opinionated quickstart Create React App template with Redux, React Testing Library and custom eslint configuration
Stars: ✭ 66 (-91.87%)
Mutual labels:  stylelint

stylelint-scss

npm version Build Status Coverage Status contributions welcome Downloads per month

A collection of SCSS specific linting rules for Stylelint (in a form of a plugin).

Purpose

Stylelint by itself supports SCSS syntax very well (as well as other preprocessors' syntaxes). Moreover, it introduces some specific rules that can be used to lint SCSS, e.g. to limit nesting, control the way @-rules are written. Yet stylelint is in general focused on standard CSS.

stylelint-scss introduces rules specific to SCSS syntax. That said, the rules from this plugin can be used with other syntaxes, like Less or some PostCSS syntaxes. That's why the rules' names are not tied to SCSS only (at-function-pattern instead of scss-function-pattern).

The plugin follows stylelint's guidelines (about rule names, testing and so on).

Installation and usage

This plugin is used in the stylelint-config-standard-scss shared config. We recommend using that shared config, rather than installing this plugin directly.

However, the plugin can still be used in you're crafting a config from the ground up. First, install stylelint-scss (and stylelint, if you haven't done so yet) via NPM:

npm install stylelint stylelint-scss

Create the .stylelintrc.json config file (or open the existing one), add stylelint-scss to the plugins array and the rules you need to the rules list. All rules from stylelint-scss need to be namespaced with scss.

{
  "plugins": [
    "stylelint-scss"
  ],
  "rules": {
    // recommended rules
    "at-rule-no-unknown": null,
    "scss/at-rule-no-unknown": true,
    ...
    ...
    // any other rules you'd want to change e.g.
    "scss/dollar-variable-pattern": "^foo",
    "scss/selector-no-redundant-nesting-selector": true,
  }
}

Please refer to stylelint docs for the detailed info on using this linter.

List of rules

Here are stylelint-scss' rules, grouped by the thing they apply to (just like in stylelint).

Please also see the example configs for special cases.

@-each

  • at-each-key-value-single-line: This is a rule that checks for situations where users have done a loop using map-keys or map.keys and grabbed the value for that key inside of the loop.

@-else

@-extend

@-function

@-if

@-import

@-mixin

@-rule

@-use

$-variable

%-placeholder

//-comment

Comment

Declaration

Dimension

Function

Map

Media feature

Operator

Partial

Selector

General / Sheet

Help out

There work on the plugin's rules is still in progress, so if you feel like it, you're welcome to help out in any of these (the plugin follows stylelint guidelines so most part of this is based on its docs):

  • Create, enhance, and debug rules (see stylelint's guide to "Working on rules").
  • Improve documentation.
  • Chime in on any open issue or pull request.
  • Open new issues about your ideas on new rules, or for how to improve the existing ones, and pull requests to show us how your idea works.
  • Add new tests to absolutely anything.
  • Work on improving performance of rules.
  • Contribute to stylelint
  • Spread the word.

We communicate via issues and pull requests.

There is also stackoverflow, which would be the preferred QA forum.

Contributors

Thanks goes to these wonderful people:

kristerkari dryoma rambleraptor XhmikosR Eugeno joseph118
kristerkari dryoma rambleraptor XhmikosR Eugeno joseph118
ybiquitous stof niksy kaysonwu srawlins pipopotamasu
ybiquitous stof niksy kaysonwu srawlins pipopotamasu
jhae-de OriR ntwb ricardogobbosouza jeddy3 bjankord
jhae-de OriR ntwb ricardogobbosouza jeddy3 bjankord
kevindew thibaudcolas AndyOGo chalkygames123 xboy2012 alexander-akait
kevindew thibaudcolas AndyOGo chalkygames123 xboy2012 alexander-akait
vseventer SterlingVix Calme1709 Deimos diego-codes lithiumlron
vseventer SterlingVix Calme1709 Deimos diego-codes lithiumlron
EvanHahn guoyunhe jantimon stormwarning keegan-lillo manovotny
EvanHahn guoyunhe jantimon stormwarning keegan-lillo manovotny
paulgv sajadtorkamani YozhikM AM-77 kersh YodaDaCoda
paulgv sajadtorkamani YozhikM AM-77 kersh YodaDaCoda
freezy-sk qmhc
freezy-sk qmhc

Important documents

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].