@hsnaydd/stylelint-config 9.0.0 → 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -168,9 +168,11 @@ module.exports = {
|
|
|
168
168
|
'^[a-z]([-]?[a-z0-9]+)*(__[a-z0-9]([-]?[a-z0-9]+)*)?(--[a-z0-9]([-]?[a-z0-9]+)*)?$',
|
|
169
169
|
{
|
|
170
170
|
resolveNestedSelectors: true,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
// stylelint-scss does not pass the selector to custom messages, so
|
|
172
|
+
// this has to be a plain string. Once it does, show the selector again:
|
|
173
|
+
// https://github.com/stylelint-scss/stylelint-scss/issues/1409
|
|
174
|
+
message:
|
|
175
|
+
'Expected class selector to match BEM CSS pattern https://en.bem.info/methodology/css.',
|
|
174
176
|
},
|
|
175
177
|
],
|
|
176
178
|
'scss/selector-no-redundant-nesting-selector': true,
|