diff options
| author | Christian Oliff <[email protected]> | 2018-11-17 21:01:16 +0900 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2018-11-17 14:01:16 +0200 |
| commit | 4734a926e9a2e97c94cee848253115b539b72e15 (patch) | |
| tree | 5c235e4245ba788ba88a6e7afce29d5063508286 | |
| parent | 75526bf2d048e1b102138754ccbbcebe9a03cf6e (diff) | |
| download | bootstrap-4734a926e9a2e97c94cee848253115b539b72e15.tar.xz bootstrap-4734a926e9a2e97c94cee848253115b539b72e15.zip | |
Enforce lowercase class name in .stylelintrc (#27668)
| -rw-r--r-- | .stylelintrc | 1 | ||||
| -rw-r--r-- | site/docs/4.1/assets/scss/_syntax.scss | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.stylelintrc b/.stylelintrc index e3cb0d7cc..dac9edbf4 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -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", diff --git a/site/docs/4.1/assets/scss/_syntax.scss b/site/docs/4.1/assets/scss/_syntax.scss index e66c5da22..c03e800f8 100644 --- a/site/docs/4.1/assets/scss/_syntax.scss +++ b/site/docs/4.1/assets/scss/_syntax.scss @@ -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; } |
