Skip to content

Commit

Permalink
Enforce lowercase class name in .stylelintrc (#27668)
Browse files Browse the repository at this point in the history
  • Loading branch information
coliff authored and XhmikosR committed Nov 17, 2018
1 parent 75526bf commit 4734a92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@
"scss/operator-no-newline-before": true,
"scss/operator-no-unspaced": true,
"selector-attribute-quotes": "always",
"selector-class-pattern": "^[a-z][a-z0-9\\-]*[a-z0-9]$",
"selector-list-comma-newline-after": "always",
"selector-list-comma-newline-before": "never-multi-line",
"selector-list-comma-space-after": "always-single-line",
Expand Down
2 changes: 1 addition & 1 deletion site/docs/4.1/assets/scss/_syntax.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// stylelint-disable declaration-block-single-line-max-declarations
// stylelint-disable declaration-block-single-line-max-declarations, selector-class-pattern

.hll { background-color: #ffc; }
.c { color: #999; }
Expand Down

0 comments on commit 4734a92

Please sign in to comment.