stylelint-config-silverwind 25.0.0 → 26.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/package.json +3 -1
- package/stylelint.config.js +8 -101
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stylelint-config-silverwind",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "26.0.1",
|
|
4
4
|
"description": "Extensive stylelint configuration",
|
|
5
5
|
"author": "silverwind <me@silverwind.io>",
|
|
6
6
|
"repository": "silverwind/stylelint-config-silverwind",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@stylistic/stylelint-plugin": "3.1.1",
|
|
16
16
|
"postcss-html": "1.8.0",
|
|
17
|
+
"stylelint-config-recommended": "15.0.0",
|
|
17
18
|
"stylelint-declaration-block-no-ignored-properties": "2.8.0",
|
|
18
19
|
"stylelint-declaration-strict-value": "1.10.7",
|
|
19
20
|
"stylelint-value-no-unknown-custom-properties": "6.0.1"
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
"eslint": "8.57.0",
|
|
23
24
|
"eslint-config-silverwind": "97.0.0",
|
|
24
25
|
"stylelint": "16.13.2",
|
|
26
|
+
"stylelint-define-config": "16.14.0",
|
|
25
27
|
"typescript": "5.7.3",
|
|
26
28
|
"typescript-config-silverwind": "6.2.1",
|
|
27
29
|
"updates": "16.4.1",
|
package/stylelint.config.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// @ts-check
|
|
2
|
+
import {defineConfig} from "stylelint-define-config";
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
extends: "stylelint-config-recommended",
|
|
3
6
|
plugins: [
|
|
4
7
|
"stylelint-declaration-strict-value",
|
|
5
8
|
"stylelint-declaration-block-no-ignored-properties",
|
|
@@ -92,134 +95,38 @@ export default {
|
|
|
92
95
|
"@stylistic/value-list-comma-space-after": null,
|
|
93
96
|
"@stylistic/value-list-comma-space-before": null,
|
|
94
97
|
"@stylistic/value-list-max-empty-lines": 0,
|
|
95
|
-
"alpha-value-notation": null,
|
|
96
|
-
"annotation-no-unknown": true,
|
|
97
|
-
"at-rule-allowed-list": null,
|
|
98
|
-
"at-rule-disallowed-list": null,
|
|
99
|
-
"at-rule-empty-line-before": null,
|
|
100
98
|
"at-rule-no-unknown": [true, {ignoreAtRules: ["tailwind", "unocss"]}],
|
|
101
99
|
"at-rule-no-vendor-prefix": true,
|
|
102
|
-
"at-rule-property-required-list": null,
|
|
103
|
-
"block-no-empty": true,
|
|
104
100
|
"color-function-notation": null, // TODO": ["modern", {ignore: "with-var-inside"}]
|
|
105
|
-
"color-hex-alpha": null,
|
|
106
|
-
"color-hex-length": null,
|
|
107
|
-
"color-named": null,
|
|
108
|
-
"color-no-hex": null,
|
|
109
|
-
"color-no-invalid-hex": true,
|
|
110
|
-
"comment-empty-line-before": null,
|
|
111
|
-
"comment-no-empty": true,
|
|
112
|
-
"comment-pattern": null,
|
|
113
|
-
"comment-whitespace-inside": null,
|
|
114
|
-
"comment-word-disallowed-list": null,
|
|
115
|
-
"csstools/value-no-unknown-custom-properties": null,
|
|
116
|
-
"custom-media-pattern": null,
|
|
117
|
-
"custom-property-empty-line-before": null,
|
|
118
|
-
"custom-property-no-missing-var-function": true,
|
|
119
|
-
"custom-property-pattern": null,
|
|
120
|
-
"declaration-block-no-duplicate-custom-properties": true,
|
|
121
101
|
"declaration-block-no-duplicate-properties": [true, {ignore: ["consecutive-duplicates-with-different-values"]}],
|
|
122
102
|
"declaration-block-no-redundant-longhand-properties": [true, {ignoreShorthands: ["flex-flow", "overflow", "grid-template"]}],
|
|
123
|
-
|
|
124
|
-
"declaration-block-single-line-max-declarations": null,
|
|
125
|
-
"declaration-empty-line-before": null,
|
|
126
|
-
"declaration-no-important": null,
|
|
127
|
-
"declaration-property-max-values": null,
|
|
128
|
-
"declaration-property-unit-allowed-list": null,
|
|
103
|
+
// @ts-expect-error - https://github.com/stylelint-types/stylelint-define-config/issues/1
|
|
129
104
|
"declaration-property-unit-disallowed-list": {"line-height": ["em"]},
|
|
130
|
-
|
|
105
|
+
// @ts-expect-error - https://github.com/stylelint-types/stylelint-define-config/issues/1
|
|
131
106
|
"declaration-property-value-disallowed-list": {"word-break": ["break-word"]},
|
|
132
|
-
"declaration-property-value-no-unknown": true,
|
|
133
107
|
"font-family-name-quotes": "always-where-recommended",
|
|
134
|
-
"font-family-no-duplicate-names": true,
|
|
135
|
-
"font-family-no-missing-generic-family-keyword": true,
|
|
136
|
-
"font-weight-notation": null,
|
|
137
|
-
"function-allowed-list": null,
|
|
138
108
|
"function-calc-no-unspaced-operator": true,
|
|
139
|
-
"function-disallowed-list": null,
|
|
140
|
-
"function-linear-gradient-no-nonstandard-direction": true,
|
|
141
109
|
"function-name-case": "lower",
|
|
142
|
-
"function-no-unknown": true,
|
|
143
|
-
"function-url-no-scheme-relative": null,
|
|
144
110
|
"function-url-quotes": "always",
|
|
145
|
-
"function-url-scheme-allowed-list": null,
|
|
146
|
-
"function-url-scheme-disallowed-list": null,
|
|
147
|
-
"hue-degree-notation": null,
|
|
148
111
|
"import-notation": "string",
|
|
149
112
|
"keyframe-block-no-duplicate-selectors": true,
|
|
150
113
|
"keyframe-declaration-no-important": true,
|
|
151
|
-
"keyframe-selector-notation": null,
|
|
152
|
-
"keyframes-name-pattern": null,
|
|
153
114
|
"length-zero-no-unit": [true, {ignore: ["custom-properties"], ignoreFunctions: ["var"]}],
|
|
154
|
-
"max-nesting-depth": null,
|
|
155
|
-
"media-feature-name-allowed-list": null,
|
|
156
|
-
"media-feature-name-disallowed-list": null,
|
|
157
|
-
"media-feature-name-no-unknown": true,
|
|
158
115
|
"media-feature-name-no-vendor-prefix": true,
|
|
159
|
-
"media-feature-name-unit-allowed-list": null,
|
|
160
|
-
"media-feature-name-value-allowed-list": null,
|
|
161
|
-
"media-feature-name-value-no-unknown": true,
|
|
162
|
-
"media-feature-range-notation": null,
|
|
163
|
-
"media-query-no-invalid": true,
|
|
164
|
-
"named-grid-areas-no-invalid": true,
|
|
165
116
|
"no-descending-specificity": null,
|
|
166
|
-
"no-duplicate-at-import-rules": true,
|
|
167
|
-
"no-duplicate-selectors": true,
|
|
168
117
|
"no-empty-source": null,
|
|
169
118
|
"no-invalid-double-slash-comments": true,
|
|
170
119
|
"no-invalid-position-at-import-rule": [true, {ignoreAtRules: ["tailwind"]}],
|
|
171
|
-
"no-irregular-whitespace": true,
|
|
172
120
|
"no-unknown-animations": null, // disabled until multi-file linting works
|
|
173
121
|
"no-unknown-custom-media": null, // disabled until multi-file linting works
|
|
174
122
|
"no-unknown-custom-properties": null, // disabled until multi-file linting works
|
|
175
|
-
"number-max-precision": null,
|
|
176
123
|
"plugin/declaration-block-no-ignored-properties": true,
|
|
177
|
-
"property-allowed-list": null,
|
|
178
|
-
"property-disallowed-list": null,
|
|
179
|
-
"property-no-unknown": true,
|
|
180
|
-
"property-no-vendor-prefix": null,
|
|
181
|
-
"rule-empty-line-before": null,
|
|
182
|
-
"rule-selector-property-disallowed-list": null,
|
|
183
124
|
"scale-unlimited/declaration-strict-value": [["/color$/"], {ignoreValues: "/^(inherit|transparent|unset|initial|currentcolor|none)$/", ignoreFunctions: true, disableFix: true, expandShorthand: true}],
|
|
184
|
-
"selector-anb-no-unmatchable": true,
|
|
185
|
-
"selector-attribute-name-disallowed-list": null,
|
|
186
|
-
"selector-attribute-operator-allowed-list": null,
|
|
187
|
-
"selector-attribute-operator-disallowed-list": null,
|
|
188
125
|
"selector-attribute-quotes": "always",
|
|
189
|
-
"selector-class-pattern": null,
|
|
190
|
-
"selector-combinator-allowed-list": null,
|
|
191
|
-
"selector-combinator-disallowed-list": null,
|
|
192
|
-
"selector-disallowed-list": null,
|
|
193
|
-
"selector-id-pattern": null,
|
|
194
|
-
"selector-max-attribute": null,
|
|
195
|
-
"selector-max-class": null,
|
|
196
|
-
"selector-max-combinators": null,
|
|
197
|
-
"selector-max-compound-selectors": null,
|
|
198
|
-
"selector-max-id": null,
|
|
199
|
-
"selector-max-pseudo-class": null,
|
|
200
|
-
"selector-max-specificity": null,
|
|
201
|
-
"selector-max-type": null,
|
|
202
|
-
"selector-max-universal": null,
|
|
203
|
-
"selector-nested-pattern": null,
|
|
204
|
-
"selector-no-qualifying-type": null,
|
|
205
126
|
"selector-no-vendor-prefix": true,
|
|
206
|
-
"selector-not-notation": null,
|
|
207
|
-
"selector-pseudo-class-allowed-list": null,
|
|
208
|
-
"selector-pseudo-class-disallowed-list": null,
|
|
209
|
-
"selector-pseudo-class-no-unknown": true,
|
|
210
|
-
"selector-pseudo-element-allowed-list": null,
|
|
211
|
-
"selector-pseudo-element-colon-notation": null,
|
|
212
|
-
"selector-pseudo-element-disallowed-list": null,
|
|
213
|
-
"selector-pseudo-element-no-unknown": true,
|
|
214
127
|
"selector-type-case": "lower",
|
|
215
128
|
"selector-type-no-unknown": [true, {ignore: ["custom-elements"]}],
|
|
216
129
|
"shorthand-property-no-redundant-values": true,
|
|
217
|
-
"string-no-newline": true,
|
|
218
|
-
"time-min-milliseconds": null,
|
|
219
|
-
"unit-allowed-list": null,
|
|
220
|
-
"unit-disallowed-list": null,
|
|
221
|
-
"unit-no-unknown": true,
|
|
222
|
-
"value-keyword-case": null,
|
|
223
130
|
"value-no-vendor-prefix": [true, {ignoreValues: ["box", "inline-box"]}],
|
|
224
131
|
},
|
|
225
|
-
};
|
|
132
|
+
});
|