Skip to content

Commit 1ac0660

Browse files
committed
update to stylelint 16
And use new stylistic plugin which is compatible with v16
1 parent 9a887ac commit 1ac0660

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

index.js

+34-34
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module.exports = {
44
"plugins": [
5-
"stylelint-stylistic",
5+
"@stylistic/stylelint-plugin",
66
"stylelint-selector-tag-no-without-class",
77
"stylelint-order",
88
],
@@ -16,16 +16,16 @@ module.exports = {
1616
}
1717
],
1818
"plugin/selector-tag-no-without-class": ["div", "span"],
19-
"stylistic/at-rule-name-case": "lower",
20-
"stylistic/at-rule-name-space-after": "always-single-line",
19+
"@stylistic/at-rule-name-case": "lower",
20+
"@stylistic/at-rule-name-space-after": "always-single-line",
2121
"at-rule-no-unknown": true,
22-
"stylistic/block-closing-brace-newline-after": "always",
23-
"stylistic/block-closing-brace-space-before": "always-single-line",
22+
"@stylistic/block-closing-brace-newline-after": "always",
23+
"@stylistic/block-closing-brace-space-before": "always-single-line",
2424
"block-no-empty": true,
25-
"stylistic/block-opening-brace-newline-after": "always-multi-line",
26-
"stylistic/block-opening-brace-space-after": "always-single-line",
27-
"stylistic/block-opening-brace-space-before": "always",
28-
"stylistic/color-hex-case": "lower",
25+
"@stylistic/block-opening-brace-newline-after": "always-multi-line",
26+
"@stylistic/block-opening-brace-space-after": "always-single-line",
27+
"@stylistic/block-opening-brace-space-before": "always",
28+
"@stylistic/color-hex-case": "lower",
2929
"color-hex-length": "long",
3030
"color-named": "never",
3131
"color-no-invalid-hex": true,
@@ -40,13 +40,13 @@ module.exports = {
4040
}
4141
],
4242
"declaration-block-no-shorthand-property-overrides": true,
43-
"stylistic/declaration-block-semicolon-newline-after": "always-multi-line",
44-
"stylistic/declaration-block-semicolon-newline-before": "never-multi-line",
45-
"stylistic/declaration-block-semicolon-space-after": "always-single-line",
46-
"stylistic/declaration-block-semicolon-space-before": "never",
43+
"@stylistic/declaration-block-semicolon-newline-after": "always-multi-line",
44+
"@stylistic/declaration-block-semicolon-newline-before": "never-multi-line",
45+
"@stylistic/declaration-block-semicolon-space-after": "always-single-line",
46+
"@stylistic/declaration-block-semicolon-space-before": "never",
4747
"declaration-block-trailing-semicolon": "always",
48-
"stylistic/declaration-colon-space-after": "always-single-line",
49-
"stylistic/declaration-colon-space-before": "never",
48+
"@stylistic/declaration-colon-space-after": "always-single-line",
49+
"@stylistic/declaration-colon-space-before": "never",
5050
"declaration-empty-line-before": "never",
5151
"declaration-no-important": true,
5252
"font-family-name-quotes": "always-where-recommended",
@@ -60,42 +60,42 @@ module.exports = {
6060
"no-duplicate-at-import-rules": true,
6161
"no-duplicate-selectors": true,
6262
"no-empty-source": true,
63-
"stylistic/no-eol-whitespace": true,
64-
"stylistic/no-extra-semicolons": true,
63+
"@stylistic/no-eol-whitespace": true,
64+
"@stylistic/no-extra-semicolons": true,
6565
"no-invalid-double-slash-comments": true,
6666
"no-unknown-animations": true,
67-
"stylistic/number-no-trailing-zeros": true,
67+
"@stylistic/number-no-trailing-zeros": true,
6868
"property-case": "lower",
6969
"property-no-unknown": true,
70-
"stylistic/selector-attribute-brackets-space-inside": "never",
71-
"stylistic/selector-attribute-operator-space-after": "never",
72-
"stylistic/selector-attribute-operator-space-before": "never",
70+
"@stylistic/selector-attribute-brackets-space-inside": "never",
71+
"@stylistic/selector-attribute-operator-space-after": "never",
72+
"@stylistic/selector-attribute-operator-space-before": "never",
7373
"selector-attribute-quotes": "always",
7474
"selector-combinator-space-after": "always",
75-
"stylistic/selector-combinator-space-before": "always",
76-
"stylistic/selector-descendant-combinator-no-non-space": true,
77-
"stylistic/selector-list-comma-newline-after": "always",
78-
"stylistic/selector-pseudo-class-case": "lower",
75+
"@stylistic/selector-combinator-space-before": "always",
76+
"@stylistic/selector-descendant-combinator-no-non-space": true,
77+
"@stylistic/selector-list-comma-newline-after": "always",
78+
"@stylistic/selector-pseudo-class-case": "lower",
7979
"selector-pseudo-class-no-unknown": true,
80-
"stylistic/selector-pseudo-class-parentheses-space-inside": "never",
80+
"@stylistic/selector-pseudo-class-parentheses-space-inside": "never",
8181
"selector-pseudo-element-colon-notation": "double",
82-
"stylistic/selector-pseudo-element-case": "lower",
82+
"@stylistic/selector-pseudo-element-case": "lower",
8383
"selector-pseudo-element-no-unknown": true,
8484
"selector-type-case": "lower",
8585
"selector-type-no-unknown": true,
8686
"string-no-newline": true,
87-
"stylistic/string-quotes": "double",
88-
"stylistic/unit-case": "lower",
87+
"@stylistic/string-quotes": "double",
88+
"@stylistic/unit-case": "lower",
8989
"unit-no-unknown": true,
9090
"value-keyword-case": "lower",
91-
"stylistic/value-list-comma-newline-after": "never-multi-line",
92-
"stylistic/value-list-comma-newline-before": "never-multi-line",
93-
"stylistic/value-list-comma-space-after": "always",
94-
"stylistic/value-list-comma-space-before": "never",
91+
"@stylistic/value-list-comma-newline-after": "never-multi-line",
92+
"@stylistic/value-list-comma-newline-before": "never-multi-line",
93+
"@stylistic/value-list-comma-space-after": "always",
94+
"@stylistic/value-list-comma-space-before": "never",
9595
"declaration-property-value-allowed-list": {
9696
"flex": ["/^\\S+\\s+\\S+\\s+\\S+$/"]
9797
},
98-
"stylistic/indentation": "tab"
98+
"@stylistic/indentation": "tab"
9999
},
100100
"overrides": [
101101
{

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
"url": "https://github.com/Moxio/stylelint-config-moxio.git"
1111
},
1212
"dependencies": {
13+
"@stylistic/stylelint-plugin": "^2.0.0",
1314
"postcss": "^8.4.5",
1415
"postcss-less": "^6.0.0",
15-
"stylelint": "^15.10.0",
16+
"stylelint": "^16.0.0",
1617
"stylelint-order": "^6.0.3",
17-
"stylelint-selector-tag-no-without-class": "^2.0.5",
18-
"stylelint-stylistic": "^0.4.3"
18+
"stylelint-selector-tag-no-without-class": "^3.0.0"
1919
}
2020
}

0 commit comments

Comments
 (0)