@hsnaydd/stylelint-config 8.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/README.md +3 -3
- package/index.js +5 -4
- package/package.json +13 -11
package/README.md
CHANGED
|
@@ -36,14 +36,14 @@ Set your stylelint config to:
|
|
|
36
36
|
|
|
37
37
|
Simply add a `"rules"` key to your config and add your overrides there.
|
|
38
38
|
|
|
39
|
-
For example, to
|
|
39
|
+
For example, to allow `!important` and named colors:
|
|
40
40
|
|
|
41
41
|
```json
|
|
42
42
|
{
|
|
43
43
|
"extends": "@hsnaydd/stylelint-config",
|
|
44
44
|
"rules": {
|
|
45
|
-
"
|
|
46
|
-
"
|
|
45
|
+
"declaration-no-important": null,
|
|
46
|
+
"color-named": null
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
```
|
package/index.js
CHANGED
|
@@ -17,7 +17,6 @@ module.exports = {
|
|
|
17
17
|
'declaration-block-no-duplicate-custom-properties': true,
|
|
18
18
|
'declaration-block-no-duplicate-properties': true,
|
|
19
19
|
'declaration-block-no-shorthand-property-overrides': true,
|
|
20
|
-
'declaration-block-single-line-max-declarations': 1,
|
|
21
20
|
'declaration-no-important': true,
|
|
22
21
|
'declaration-property-value-disallowed-list': {
|
|
23
22
|
'/^border/': ['none'],
|
|
@@ -169,9 +168,11 @@ module.exports = {
|
|
|
169
168
|
'^[a-z]([-]?[a-z0-9]+)*(__[a-z0-9]([-]?[a-z0-9]+)*)?(--[a-z0-9]([-]?[a-z0-9]+)*)?$',
|
|
170
169
|
{
|
|
171
170
|
resolveNestedSelectors: true,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
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.',
|
|
175
176
|
},
|
|
176
177
|
],
|
|
177
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": "
|
|
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": [
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
"prettier"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
|
-
"test": "
|
|
18
|
-
"format": "prettier
|
|
17
|
+
"test": "node --test",
|
|
18
|
+
"format": "prettier index.js test --write",
|
|
19
|
+
"format:check": "prettier index.js test --check"
|
|
19
20
|
},
|
|
20
21
|
"repository": {
|
|
21
22
|
"type": "git",
|
|
@@ -29,22 +30,23 @@
|
|
|
29
30
|
"homepage": "https://github.com/hsnaydd/stylelint-config#readme",
|
|
30
31
|
"packageManager": "pnpm@10.18.3",
|
|
31
32
|
"engines": {
|
|
32
|
-
"node": ">=
|
|
33
|
+
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
|
|
33
34
|
},
|
|
34
35
|
"peerDependencies": {
|
|
35
|
-
"postcss": "^8.
|
|
36
|
+
"postcss": "^8.5.33",
|
|
36
37
|
"prettier": "^3.5.3",
|
|
37
|
-
"stylelint": "^
|
|
38
|
+
"stylelint": "^18.0.0"
|
|
38
39
|
},
|
|
39
40
|
"dependencies": {
|
|
40
41
|
"postcss-scss": "^4.0.9",
|
|
41
42
|
"stylelint-config-prettier-scss": "^1.0.0",
|
|
42
|
-
"stylelint-config-standard-scss": "^
|
|
43
|
-
"stylelint-order": "^
|
|
44
|
-
"stylelint-prettier": "^5.0
|
|
43
|
+
"stylelint-config-standard-scss": "^18.0.0",
|
|
44
|
+
"stylelint-order": "^8.1.3",
|
|
45
|
+
"stylelint-prettier": "^5.1.0"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"
|
|
48
|
-
"
|
|
48
|
+
"postcss": "^8.5.33",
|
|
49
|
+
"prettier": "^3.10.1",
|
|
50
|
+
"stylelint": "^18.1.0"
|
|
49
51
|
}
|
|
50
52
|
}
|