Created
March 2, 2021 19:13
-
-
Save jayperryworks/13d5b5c52e387d1f922c164a5f9e5812 to your computer and use it in GitHub Desktop.
StyleLint config for SCSS files (using my naming conventions)
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
{ | |
"extends": "stylelint-config-sass-guidelines", | |
"plugins": [ | |
"stylelint-scss", | |
"stylelint-order" | |
], | |
"rules": { | |
"indentation": "tab", | |
"selector-no-qualifying-type": [ | |
true, | |
{ | |
"ignore": ["class", "attribute"] | |
} | |
], | |
"selector-class-pattern": "^([a-z][a-z0-9]*)(?:-[a-z0-9]+|\\@[a-z0-9]+)*$", | |
"scss/dollar-variable-pattern": "^-?[a-z]+([a-z0-9-]+[a-z0-9]+)?$", | |
"scss/at-mixin-pattern": "^-?[a-z]+([a-z0-9-]+[a-z0-9]+)?$", | |
"scss/at-function-pattern": "^-?[a-z]+([a-z0-9-]+[a-z0-9]+)?$", | |
"max-nesting-depth": [ | |
2, | |
{ | |
"ignore": ["pseudo-classes", "blockless-at-rules"], | |
"ignoreAtRules": [ | |
"@if", | |
"@else", | |
"@else if", | |
"@each", | |
"@include" | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment