Skip to content

Instantly share code, notes, and snippets.

@akella
Last active August 29, 2016 18:02
Show Gist options
  • Save akella/07241628204b9f04d877ee85379bae50 to your computer and use it in GitHub Desktop.
Save akella/07241628204b9f04d877ee85379bae50 to your computer and use it in GitHub Desktop.
stylelint config
{
"plugins": [
"stylelint-selector-bem-pattern"
],
"rules": {
"property-case": "lower",
"selector-type-case": "lower",
"no-unknown-animations":true,
"indentation": "tab",
"selector-max-compound-selectors": 3,
"no-duplicate-selectors": true,
"shorthand-property-no-redundant-values": true,
"max-nesting-depth": 2,
"no-descending-specificity": true,
"declaration-block-no-shorthand-property-overrides": true,
"declaration-block-no-duplicate-properties": [
true,
{
"ignore": ["consecutive-duplicates"]
}
],
"plugin/selector-bem-pattern": {
"componentName": "[a-zA-Z0-9]+$",
"componentSelectors": "^(?:\\.(?:{componentName}|is[-](?:[a-zA-Z0-9-_]*))[ ]?(?:__[a-zA-Z0-9-_]+)?(?:_[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*){0,2}[ ]?)+$"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment