@@ -8,6 +8,7 @@ const cssVarFiles = [
88
99/** @type {import('stylelint').Config } */
1010export default {
11+ extends : 'stylelint-config-recommended' ,
1112 plugins : [
1213 'stylelint-declaration-strict-value' ,
1314 'stylelint-declaration-block-no-ignored-properties' ,
@@ -67,7 +68,7 @@ export default {
6768 '@stylistic/function-comma-space-after' : null ,
6869 '@stylistic/function-comma-space-before' : null ,
6970 '@stylistic/function-max-empty-lines' : 0 ,
70- '@stylistic/function-parentheses-newline-inside' : 'never-multi-line' ,
71+ '@stylistic/function-parentheses-newline-inside' : null ,
7172 '@stylistic/function-parentheses-space-inside' : null ,
7273 '@stylistic/function-whitespace-after' : null ,
7374 '@stylistic/indentation' : 2 ,
@@ -114,134 +115,32 @@ export default {
114115 '@stylistic/value-list-comma-space-after' : null ,
115116 '@stylistic/value-list-comma-space-before' : null ,
116117 '@stylistic/value-list-max-empty-lines' : 0 ,
117- 'alpha-value-notation' : null ,
118- 'annotation-no-unknown' : true ,
119- 'at-rule-allowed-list' : null ,
120- 'at-rule-disallowed-list' : null ,
121- 'at-rule-empty-line-before' : null ,
122118 'at-rule-no-unknown' : [ true , { ignoreAtRules : [ 'tailwind' ] } ] ,
123119 'at-rule-no-vendor-prefix' : true ,
124- 'at-rule-property-required-list' : null ,
125- 'block-no-empty' : true ,
126- 'color-function-notation' : null ,
127- 'color-hex-alpha' : null ,
128- 'color-hex-length' : null ,
129- 'color-named' : null ,
130- 'color-no-hex' : null ,
131- 'color-no-invalid-hex' : true ,
132- 'comment-empty-line-before' : null ,
133- 'comment-no-empty' : true ,
134- 'comment-pattern' : null ,
135- 'comment-whitespace-inside' : null ,
136- 'comment-word-disallowed-list' : null ,
137120 'csstools/value-no-unknown-custom-properties' : [ true , { importFrom : cssVarFiles } ] ,
138- 'custom-media-pattern' : null ,
139- 'custom-property-empty-line-before' : null ,
140- 'custom-property-no-missing-var-function' : true ,
141- 'custom-property-pattern' : null ,
142- 'declaration-block-no-duplicate-custom-properties' : true ,
143121 'declaration-block-no-duplicate-properties' : [ true , { ignore : [ 'consecutive-duplicates-with-different-values' ] } ] ,
144122 'declaration-block-no-redundant-longhand-properties' : [ true , { ignoreShorthands : [ 'flex-flow' , 'overflow' ] } ] ,
145- 'declaration-block-no-shorthand-property-overrides' : null ,
146- 'declaration-block-single-line-max-declarations' : null ,
147- 'declaration-empty-line-before' : null ,
148- 'declaration-no-important' : null ,
149- 'declaration-property-max-values' : null ,
150- 'declaration-property-unit-allowed-list' : null ,
151123 'declaration-property-unit-disallowed-list' : { 'line-height' : [ 'em' ] } ,
152- 'declaration-property-value-allowed-list' : null ,
153124 'declaration-property-value-disallowed-list' : { 'word-break' : [ 'break-word' ] } ,
154- 'declaration-property-value-no-unknown' : true ,
155125 'font-family-name-quotes' : 'always-where-recommended' ,
156- 'font-family-no-duplicate-names' : true ,
157- 'font-family-no-missing-generic-family-keyword' : true ,
158- 'font-weight-notation' : null ,
159- 'function-allowed-list' : null ,
160- 'function-calc-no-unspaced-operator' : true ,
161- 'function-disallowed-list' : null ,
162- 'function-linear-gradient-no-nonstandard-direction' : true ,
163126 'function-name-case' : 'lower' ,
164- 'function-no-unknown' : true ,
165- 'function-url-no-scheme-relative' : null ,
166127 'function-url-quotes' : 'always' ,
167- 'function-url-scheme-allowed-list' : null ,
168- 'function-url-scheme-disallowed-list' : null ,
169- 'hue-degree-notation' : null ,
170128 'import-notation' : 'string' ,
171- 'keyframe-block-no-duplicate-selectors' : true ,
172- 'keyframe-declaration-no-important' : true ,
173- 'keyframe-selector-notation' : null ,
174- 'keyframes-name-pattern' : null ,
175129 'length-zero-no-unit' : [ true , { ignore : [ 'custom-properties' ] } , { ignoreFunctions : [ 'var' ] } ] ,
176130 'max-nesting-depth' : null ,
177- 'media-feature-name-allowed-list' : null ,
178- 'media-feature-name-disallowed-list' : null ,
179- 'media-feature-name-no-unknown' : true ,
180- 'media-feature-name-no-vendor-prefix' : true ,
181- 'media-feature-name-unit-allowed-list' : null ,
182- 'media-feature-name-value-allowed-list' : null ,
183- 'media-feature-name-value-no-unknown' : true ,
184- 'media-feature-range-notation' : null ,
185- 'media-query-no-invalid' : true ,
186- 'named-grid-areas-no-invalid' : true ,
187131 'no-descending-specificity' : null ,
188- 'no-duplicate-at-import-rules' : true ,
189- 'no-duplicate-selectors' : true ,
190- 'no-empty-source' : true ,
191- 'no-invalid-double-slash-comments' : true ,
192132 'no-invalid-position-at-import-rule' : [ true , { ignoreAtRules : [ 'tailwind' ] } ] ,
193- 'no-irregular-whitespace' : true ,
194133 'no-unknown-animations' : null , // disabled until stylelint supports multi-file linting
195134 'no-unknown-custom-media' : null , // disabled until stylelint supports multi-file linting
196135 'no-unknown-custom-properties' : null , // disabled until stylelint supports multi-file linting
197- 'number-max-precision' : null ,
198136 'plugin/declaration-block-no-ignored-properties' : true ,
199- 'property-allowed-list' : null ,
200- 'property-disallowed-list' : null ,
201- 'property-no-unknown' : true ,
202- 'property-no-vendor-prefix' : null ,
203- 'rule-empty-line-before' : null ,
204- 'rule-selector-property-disallowed-list' : null ,
205- 'scale-unlimited/declaration-strict-value' : [ [ '/color$/' , 'font-weight' ] , { ignoreValues : '/^(inherit|transparent|unset|initial|currentcolor|none)$/' , ignoreFunctions : false , disableFix : true , expandShorthand : true } ] ,
206- 'selector-anb-no-unmatchable' : true ,
207- 'selector-attribute-name-disallowed-list' : null ,
208- 'selector-attribute-operator-allowed-list' : null ,
209- 'selector-attribute-operator-disallowed-list' : null ,
137+ 'scale-unlimited/declaration-strict-value' : [ [ '/color$/' , 'font-weight' ] , { ignoreValues : '/^(inherit|transparent|unset|initial|currentcolor|none)$/' , ignoreFunctions : true , disableFix : true , expandShorthand : true } ] ,
210138 'selector-attribute-quotes' : 'always' ,
211- 'selector-class-pattern' : null ,
212- 'selector-combinator-allowed-list' : null ,
213- 'selector-combinator-disallowed-list' : null ,
214- 'selector-disallowed-list' : null ,
215- 'selector-id-pattern' : null ,
216- 'selector-max-attribute' : null ,
217- 'selector-max-class' : null ,
218- 'selector-max-combinators' : null ,
219- 'selector-max-compound-selectors' : null ,
220- 'selector-max-id' : null ,
221- 'selector-max-pseudo-class' : null ,
222- 'selector-max-specificity' : null ,
223- 'selector-max-type' : null ,
224- 'selector-max-universal' : null ,
225- 'selector-nested-pattern' : null ,
226- 'selector-no-qualifying-type' : null ,
227139 'selector-no-vendor-prefix' : true ,
228- 'selector-not-notation' : null ,
229- 'selector-pseudo-class-allowed-list' : null ,
230- 'selector-pseudo-class-disallowed-list' : null ,
231- 'selector-pseudo-class-no-unknown' : true ,
232- 'selector-pseudo-element-allowed-list' : null ,
233140 'selector-pseudo-element-colon-notation' : 'double' ,
234- 'selector-pseudo-element-disallowed-list' : null ,
235- 'selector-pseudo-element-no-unknown' : true ,
236141 'selector-type-case' : 'lower' ,
237142 'selector-type-no-unknown' : [ true , { ignore : [ 'custom-elements' ] } ] ,
238143 'shorthand-property-no-redundant-values' : true ,
239- 'string-no-newline' : true ,
240- 'time-min-milliseconds' : null ,
241- 'unit-allowed-list' : null ,
242- 'unit-disallowed-list' : null ,
243- 'unit-no-unknown' : true ,
244- 'value-keyword-case' : null ,
245144 'value-no-vendor-prefix' : [ true , { ignoreValues : [ 'box' , 'inline-box' ] } ] ,
246145 } ,
247146} ;
0 commit comments