Skip to content

Instantly share code, notes, and snippets.

@kevinmpowell
Last active July 8, 2020 20:32
Show Gist options
  • Save kevinmpowell/b28a98eda5ef324a8a16b579f9bd9a1e to your computer and use it in GitHub Desktop.
Save kevinmpowell/b28a98eda5ef324a8a16b579f9bd9a1e to your computer and use it in GitHub Desktop.
My stylelint config
{
"extends": [
"stylelint-config-sass-guidelines",
"stylelint-config-prettier"
],
"rules": {
"color-hex-case": "upper",
"color-hex-length": "long",
"selector-class-pattern": "^(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-z0-9]+(?:-[a-z0-9]+)*(?:__[a-z0-9]+(?:-[a-z0-9]+)*)?(?:--[a-z0-9]+(?:-[a-z0-9]+)*)?(?:\\[.+\\])?$",
"max-nesting-depth": 2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment