All Projects → kristerkari → Stylelint Scss

kristerkari / Stylelint Scss

Licence: mit
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

Nextjs Ts
Opinionated Next JS project boilerplate with TypeScript and Redux
Stars: ✭ 134 (-79.54%)
Mutual labels:  stylelint, scss
Generator Dhboilerplate
Boilerplate made by David Hellmann
Stars: ✭ 54 (-91.76%)
Mutual labels:  stylelint, scss
Stylelint Config Sass Guidelines
⚙ A stylelint config inspired by https://sass-guidelin.es/
Stars: ✭ 349 (-46.72%)
Mutual labels:  stylelint, scss
Frasco
Quick starter for Jekyll including full setup for Sass, PostCSS, Autoprefixer, stylelint, Webpack, ESLint, imagemin, Browsersync, etc.
Stars: ✭ 123 (-81.22%)
Mutual labels:  stylelint, scss
Stylelint Config Recommended Scss
The recommended shareable SCSS config for stylelint
Stars: ✭ 141 (-78.47%)
Mutual labels:  stylelint, scss
Vscode Stylelint
A Visual Studio Code extension to lint CSS/SCSS/Less with stylelint
Stars: ✭ 260 (-60.31%)
Mutual labels:  stylelint, scss
React 2048 Game
🎮 A fancy 2048 game build with react, redux best practices.
Stars: ✭ 401 (-38.78%)
Mutual labels:  stylelint, scss
React Foundation
Foundation as React components.
Stars: ✭ 573 (-12.52%)
Mutual labels:  scss
Blunt
A CSS framework that helps with layouts and leaves your styling alone.
Stars: ✭ 627 (-4.27%)
Mutual labels:  scss
Light Bootstrap Dashboard React
React version of Light Bootstrap Dashboard
Stars: ✭ 561 (-14.35%)
Mutual labels:  scss
Formbase
Better default styles for common input elements.
Stars: ✭ 560 (-14.5%)
Mutual labels:  scss
Nth Start Project
Startkit for HTML / CSS / JS pages layout.
Stars: ✭ 578 (-11.76%)
Mutual labels:  scss
Avalanche
Superclean, powerful, responsive, Sass-based, BEM-syntax CSS grid system
Stars: ✭ 627 (-4.27%)
Mutual labels:  scss
Analytics.usa.gov
The US federal government's web traffic.
Stars: ✭ 564 (-13.89%)
Mutual labels:  scss
Scout App
Scout-App - The simplest Sass processor
Stars: ✭ 639 (-2.44%)
Mutual labels:  scss
Jekyll Uno
Jekyll-Uno - a minimal, responsive theme for Jekyll based on Uno for Ghost
Stars: ✭ 559 (-14.66%)
Mutual labels:  scss
Engineering Best Practices
10up Engineering Best Practices
Stars: ✭ 653 (-0.31%)
Mutual labels:  scss
Stylelint Processor Styled Components
Lint your styled components with stylelint!
Stars: ✭ 639 (-2.44%)
Mutual labels:  stylelint
Auryo
Auryo - Unofficial Soundcloud Desktop App
Stars: ✭ 611 (-6.72%)
Mutual labels:  scss
Stylelint Order
A plugin pack of order related linting rules for stylelint.
Stars: ✭ 607 (-7.33%)
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

stylelint-scss is a plugin for stylelint, so it's meant to be used with it.

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 and grabbed the value for that key inside of the loop.

@-else

@-extend

@-function

@-if

@-import

@-mixin

@-rule

$-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 joseph118 kaysonwu
kristerkari dryoma rambleraptor XhmikosR joseph118 kaysonwu
srawlins pipopotamasu Eugeno OriR ntwb ricardogobbosouza
srawlins pipopotamasu Eugeno OriR ntwb ricardogobbosouza
bjankord kevindew thibaudcolas AndyOGo niksy alexander-akait
bjankord kevindew thibaudcolas AndyOGo niksy alexander-akait
vseventer Calme1709 Deimos diego-codes EvanHahn guoyunhe
vseventer Calme1709 Deimos diego-codes EvanHahn guoyunhe
jantimon stormwarning keegan-lillo manovotny paulgv sajadtorkamani
jantimon stormwarning keegan-lillo manovotny paulgv sajadtorkamani
YozhikM chalkygames123 AM-77 YodaDaCoda freezy-sk jeddy3
YozhikM chalkygames123 AM-77 YodaDaCoda freezy-sk jeddy3

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].