Skip to content

Instantly share code, notes, and snippets.

@LeeCheneler
Last active May 16, 2017 10:27
Show Gist options
  • Save LeeCheneler/49e50a6943cfbcc43b5364060d7ef9f5 to your computer and use it in GitHub Desktop.
Save LeeCheneler/49e50a6943cfbcc43b5364060d7ef9f5 to your computer and use it in GitHub Desktop.
Example stylelint config
{
"extends": "stylelint-config-sass-guidelines",
"ignoreFiles": [],
"plugins": [
"stylelint-order",
"stylelint-scss",
"stylelint-selector-bem-pattern"
],
"rules": {
"order/properties-alphabetical-order": null,
"indentation": [2],
"property-no-vendor-prefix": null,
"value-no-vendor-prefix": null,
"at-rule-no-vendor-prefix": null,
"max-nesting-depth": [ 1, {
ignore: ["blockless-at-rules"],
ignoreAtRules: ["/^include$/", "/^if$/", "/^each$/"]
}],
"selector-class-pattern": "",
"selector-no-qualifying-type": [ true, {
"ignore": ["attribute"]
}],
"scss/selector-no-redundant-nesting-selector": true,
"scss/at-extend-no-missing-placeholder": true,
"scss/dollar-variable-no-missing-interpolation": true,
"scss/at-mixin-argumentless-call-parentheses": "never",
"plugin/selector-bem-pattern": {
"preset": "bem",
"componentName": "(([a-z0-9]+(?!-$)-?)+)",
"componentSelectors": {
"initial": "\\.{componentName}(((__|--)(([a-z0-9\\[\\]'=]+(?!-$)-?)+))+)?$"
}
}
}
}
{
"devDependencies": {
"stylelint": "^7.8.0",
"stylelint-config-sass-guidelines": "^2.1.0",
"stylelint-order": "^0.4.4",
"stylelint-scss": "^1.4.4",
"stylelint-selector-bem-pattern": "^1.0.0",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment