Created
July 4, 2021 23:28
-
-
Save dsandstrom/35cced60b12345ec29d83205124f644f to your computer and use it in GitHub Desktop.
Stylelint Config - scss-lint rules, smacss order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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