Skip to content

Instantly share code, notes, and snippets.

@dsandstrom
Created July 4, 2021 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsandstrom/35cced60b12345ec29d83205124f644f to your computer and use it in GitHub Desktop.
Save dsandstrom/35cced60b12345ec29d83205124f644f to your computer and use it in GitHub Desktop.
Stylelint Config - scss-lint rules, smacss order
// stylelint.config.js
// SMACSS Ordering
// https://github.com/cahamilton/stylelint-config-property-sort-order-smacss
const sortOrderSmacss = require('stylelint-config-property-sort-order-smacss/generate');
module.exports = {
extends: 'stylelint-config-sass-guidelines',
plugins: ['stylelint-order', 'stylelint-scss'],
rules: {
'indentation': [2, { ignore: ['value'] }],
'order/properties-alphabetical-order': null,
'order/properties-order': [sortOrderSmacss()],
'max-nesting-depth': 4,
'number-leading-zero': null,
'selector-no-qualifying-type': [true, { ignore: ['class'] }]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment