@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.
Files changed (2) hide show
  1. package/index.js +5 -3
  2. 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
- message: function expected(selectorValue) {
172
- return `Expected class selector "${selectorValue}" to match BEM CSS pattern https://en.bem.info/methodology/css.`;
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hsnaydd/stylelint-config",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "Shareable stylelint config for CSS and SCSS, with Prettier formatting and property ordering.",
5
5
  "main": "index.js",
6
6
  "files": [