stylelint-config-silverwind 31.0.0 → 32.0.0
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/dist/index.d.ts +151 -0
- package/dist/index.d.ts.map +1 -0
- package/{stylelint.config.js → dist/index.js} +31 -26
- package/package.json +8 -5
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
extends: string;
|
|
3
|
+
reportUnscopedDisables: true;
|
|
4
|
+
reportNeedlessDisables: true;
|
|
5
|
+
reportInvalidScopeDisables: true;
|
|
6
|
+
plugins: string[];
|
|
7
|
+
overrides: {
|
|
8
|
+
files: string[];
|
|
9
|
+
customSyntax: string;
|
|
10
|
+
}[];
|
|
11
|
+
ignoreFiles: string[];
|
|
12
|
+
rules: {
|
|
13
|
+
"@stylistic/at-rule-name-case": any;
|
|
14
|
+
"@stylistic/at-rule-name-newline-after": any;
|
|
15
|
+
"@stylistic/at-rule-name-space-after": any;
|
|
16
|
+
"@stylistic/at-rule-semicolon-newline-after": any;
|
|
17
|
+
"@stylistic/at-rule-semicolon-space-before": any;
|
|
18
|
+
"@stylistic/block-closing-brace-empty-line-before": any;
|
|
19
|
+
"@stylistic/block-closing-brace-newline-after": any;
|
|
20
|
+
"@stylistic/block-closing-brace-newline-before": any;
|
|
21
|
+
"@stylistic/block-closing-brace-space-after": any;
|
|
22
|
+
"@stylistic/block-closing-brace-space-before": any;
|
|
23
|
+
"@stylistic/block-opening-brace-newline-after": any;
|
|
24
|
+
"@stylistic/block-opening-brace-newline-before": any;
|
|
25
|
+
"@stylistic/block-opening-brace-space-after": any;
|
|
26
|
+
"@stylistic/block-opening-brace-space-before": string;
|
|
27
|
+
"@stylistic/color-hex-case": any;
|
|
28
|
+
"@stylistic/declaration-bang-space-after": string;
|
|
29
|
+
"@stylistic/declaration-bang-space-before": any;
|
|
30
|
+
"@stylistic/declaration-block-semicolon-newline-after": any;
|
|
31
|
+
"@stylistic/declaration-block-semicolon-newline-before": any;
|
|
32
|
+
"@stylistic/declaration-block-semicolon-space-after": any;
|
|
33
|
+
"@stylistic/declaration-block-semicolon-space-before": string;
|
|
34
|
+
"@stylistic/declaration-block-trailing-semicolon": any;
|
|
35
|
+
"@stylistic/declaration-colon-newline-after": any;
|
|
36
|
+
"@stylistic/declaration-colon-space-after": any;
|
|
37
|
+
"@stylistic/declaration-colon-space-before": string;
|
|
38
|
+
"@stylistic/function-comma-newline-after": any;
|
|
39
|
+
"@stylistic/function-comma-newline-before": any;
|
|
40
|
+
"@stylistic/function-comma-space-after": any;
|
|
41
|
+
"@stylistic/function-comma-space-before": any;
|
|
42
|
+
"@stylistic/function-max-empty-lines": number;
|
|
43
|
+
"@stylistic/function-parentheses-newline-inside": any;
|
|
44
|
+
"@stylistic/function-parentheses-space-inside": any;
|
|
45
|
+
"@stylistic/function-whitespace-after": any;
|
|
46
|
+
"@stylistic/indentation": number;
|
|
47
|
+
"@stylistic/linebreaks": any;
|
|
48
|
+
"@stylistic/max-empty-lines": number;
|
|
49
|
+
"@stylistic/max-line-length": any;
|
|
50
|
+
"@stylistic/media-feature-colon-space-after": any;
|
|
51
|
+
"@stylistic/media-feature-colon-space-before": string;
|
|
52
|
+
"@stylistic/media-feature-name-case": any;
|
|
53
|
+
"@stylistic/media-feature-parentheses-space-inside": any;
|
|
54
|
+
"@stylistic/media-feature-range-operator-space-after": string;
|
|
55
|
+
"@stylistic/media-feature-range-operator-space-before": string;
|
|
56
|
+
"@stylistic/media-query-list-comma-newline-after": any;
|
|
57
|
+
"@stylistic/media-query-list-comma-newline-before": any;
|
|
58
|
+
"@stylistic/media-query-list-comma-space-after": any;
|
|
59
|
+
"@stylistic/media-query-list-comma-space-before": any;
|
|
60
|
+
"@stylistic/named-grid-areas-alignment": any;
|
|
61
|
+
"@stylistic/no-empty-first-line": any;
|
|
62
|
+
"@stylistic/no-eol-whitespace": boolean;
|
|
63
|
+
"@stylistic/no-extra-semicolons": boolean;
|
|
64
|
+
"@stylistic/no-missing-end-of-source-newline": any;
|
|
65
|
+
"@stylistic/number-leading-zero": any;
|
|
66
|
+
"@stylistic/number-no-trailing-zeros": any;
|
|
67
|
+
"@stylistic/property-case": string;
|
|
68
|
+
"@stylistic/selector-attribute-brackets-space-inside": any;
|
|
69
|
+
"@stylistic/selector-attribute-operator-space-after": any;
|
|
70
|
+
"@stylistic/selector-attribute-operator-space-before": any;
|
|
71
|
+
"@stylistic/selector-combinator-space-after": any;
|
|
72
|
+
"@stylistic/selector-combinator-space-before": any;
|
|
73
|
+
"@stylistic/selector-descendant-combinator-no-non-space": any;
|
|
74
|
+
"@stylistic/selector-list-comma-newline-after": any;
|
|
75
|
+
"@stylistic/selector-list-comma-newline-before": any;
|
|
76
|
+
"@stylistic/selector-list-comma-space-after": string;
|
|
77
|
+
"@stylistic/selector-list-comma-space-before": string;
|
|
78
|
+
"@stylistic/selector-max-empty-lines": number;
|
|
79
|
+
"@stylistic/selector-pseudo-class-case": string;
|
|
80
|
+
"@stylistic/selector-pseudo-class-parentheses-space-inside": string;
|
|
81
|
+
"@stylistic/selector-pseudo-element-case": string;
|
|
82
|
+
"@stylistic/string-quotes": string;
|
|
83
|
+
"@stylistic/unicode-bom": any;
|
|
84
|
+
"@stylistic/unit-case": string;
|
|
85
|
+
"@stylistic/value-list-comma-newline-after": any;
|
|
86
|
+
"@stylistic/value-list-comma-newline-before": any;
|
|
87
|
+
"@stylistic/value-list-comma-space-after": any;
|
|
88
|
+
"@stylistic/value-list-comma-space-before": any;
|
|
89
|
+
"@stylistic/value-list-max-empty-lines": number;
|
|
90
|
+
"at-rule-no-unknown": (boolean | {
|
|
91
|
+
ignoreAtRules: string[];
|
|
92
|
+
})[];
|
|
93
|
+
"at-rule-no-vendor-prefix": boolean;
|
|
94
|
+
"color-function-notation": any;
|
|
95
|
+
"declaration-block-no-duplicate-properties": (boolean | {
|
|
96
|
+
ignore: string[];
|
|
97
|
+
})[];
|
|
98
|
+
"declaration-block-no-redundant-longhand-properties": (boolean | {
|
|
99
|
+
ignoreShorthands: string[];
|
|
100
|
+
})[];
|
|
101
|
+
"declaration-property-unit-disallowed-list": {
|
|
102
|
+
"line-height": string[];
|
|
103
|
+
};
|
|
104
|
+
"declaration-property-value-disallowed-list": {
|
|
105
|
+
"word-break": string[];
|
|
106
|
+
};
|
|
107
|
+
"font-family-name-quotes": string;
|
|
108
|
+
"function-calc-no-unspaced-operator": boolean;
|
|
109
|
+
"function-name-case": string;
|
|
110
|
+
"function-url-quotes": string;
|
|
111
|
+
"import-notation": string;
|
|
112
|
+
"keyframe-block-no-duplicate-selectors": boolean;
|
|
113
|
+
"keyframe-declaration-no-important": boolean;
|
|
114
|
+
"length-zero-no-unit": (boolean | {
|
|
115
|
+
ignore: string[];
|
|
116
|
+
ignoreFunctions: string[];
|
|
117
|
+
})[];
|
|
118
|
+
"media-feature-name-no-vendor-prefix": boolean;
|
|
119
|
+
"no-descending-specificity": any;
|
|
120
|
+
"no-empty-source": any;
|
|
121
|
+
"no-invalid-double-slash-comments": boolean;
|
|
122
|
+
"no-invalid-position-at-import-rule": (boolean | {
|
|
123
|
+
ignoreAtRules: string[];
|
|
124
|
+
})[];
|
|
125
|
+
"no-unknown-animations": any;
|
|
126
|
+
"no-unknown-custom-media": any;
|
|
127
|
+
"no-unknown-custom-properties": any;
|
|
128
|
+
"plugin/declaration-block-no-ignored-properties": boolean;
|
|
129
|
+
"property-no-deprecated": (boolean | {
|
|
130
|
+
ignoreProperties: string[];
|
|
131
|
+
})[];
|
|
132
|
+
"scale-unlimited/declaration-strict-value": (string[] | {
|
|
133
|
+
ignoreValues: string;
|
|
134
|
+
ignoreFunctions: boolean;
|
|
135
|
+
disableFix: boolean;
|
|
136
|
+
expandShorthand: boolean;
|
|
137
|
+
})[];
|
|
138
|
+
"selector-attribute-quotes": string;
|
|
139
|
+
"selector-no-vendor-prefix": boolean;
|
|
140
|
+
"selector-type-case": string;
|
|
141
|
+
"selector-type-no-unknown": (boolean | {
|
|
142
|
+
ignore: string[];
|
|
143
|
+
})[];
|
|
144
|
+
"shorthand-property-no-redundant-values": boolean;
|
|
145
|
+
"value-no-vendor-prefix": (boolean | {
|
|
146
|
+
ignoreValues: string[];
|
|
147
|
+
})[];
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
export default _default;
|
|
151
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAkImB"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {defineConfig} from "stylelint-define-config";
|
|
3
|
-
|
|
4
|
-
export default defineConfig({
|
|
1
|
+
const index = {
|
|
5
2
|
extends: "stylelint-config-recommended",
|
|
6
3
|
reportUnscopedDisables: true,
|
|
7
4
|
reportNeedlessDisables: true,
|
|
@@ -10,15 +7,16 @@ export default defineConfig({
|
|
|
10
7
|
"stylelint-declaration-strict-value",
|
|
11
8
|
"stylelint-declaration-block-no-ignored-properties",
|
|
12
9
|
"stylelint-value-no-unknown-custom-properties",
|
|
13
|
-
"@stylistic/stylelint-plugin"
|
|
10
|
+
"@stylistic/stylelint-plugin"
|
|
14
11
|
],
|
|
15
12
|
overrides: [
|
|
16
|
-
{files: ["**/*.html"], customSyntax: "postcss-html"}
|
|
13
|
+
{ files: ["**/*.html"], customSyntax: "postcss-html" }
|
|
17
14
|
],
|
|
18
|
-
ignoreFiles: [
|
|
15
|
+
ignoreFiles: [
|
|
16
|
+
// TODO: these do not work from the shared config, likely a Stylelint bug
|
|
19
17
|
"**/dist/**",
|
|
20
18
|
"**/build/**",
|
|
21
|
-
"**/node_modules/**"
|
|
19
|
+
"**/node_modules/**"
|
|
22
20
|
],
|
|
23
21
|
rules: {
|
|
24
22
|
"@stylistic/at-rule-name-case": null,
|
|
@@ -98,14 +96,14 @@ export default defineConfig({
|
|
|
98
96
|
"@stylistic/value-list-comma-space-after": null,
|
|
99
97
|
"@stylistic/value-list-comma-space-before": null,
|
|
100
98
|
"@stylistic/value-list-max-empty-lines": 0,
|
|
101
|
-
"at-rule-no-unknown": [true, {ignoreAtRules: ["tailwind", "unocss", "config"]}],
|
|
99
|
+
"at-rule-no-unknown": [true, { ignoreAtRules: ["tailwind", "unocss", "config"] }],
|
|
102
100
|
"at-rule-no-vendor-prefix": true,
|
|
103
|
-
"color-function-notation": null,
|
|
104
|
-
"
|
|
105
|
-
"declaration-block-no-
|
|
106
|
-
|
|
107
|
-
"declaration-property-unit-disallowed-list": {"line-height": ["em"]},
|
|
108
|
-
"declaration-property-value-disallowed-list": {"word-break": ["break-word"]},
|
|
101
|
+
"color-function-notation": null,
|
|
102
|
+
// TODO": ["modern", {ignore: "with-var-inside"}]
|
|
103
|
+
"declaration-block-no-duplicate-properties": [true, { ignore: ["consecutive-duplicates-with-different-values"] }],
|
|
104
|
+
"declaration-block-no-redundant-longhand-properties": [true, { ignoreShorthands: ["flex-flow", "overflow", "grid-template"] }],
|
|
105
|
+
"declaration-property-unit-disallowed-list": { "line-height": ["em"] },
|
|
106
|
+
"declaration-property-value-disallowed-list": { "word-break": ["break-word"] },
|
|
109
107
|
"font-family-name-quotes": "always-where-recommended",
|
|
110
108
|
"function-calc-no-unspaced-operator": true,
|
|
111
109
|
"function-name-case": "lower",
|
|
@@ -113,23 +111,30 @@ export default defineConfig({
|
|
|
113
111
|
"import-notation": "string",
|
|
114
112
|
"keyframe-block-no-duplicate-selectors": true,
|
|
115
113
|
"keyframe-declaration-no-important": true,
|
|
116
|
-
"length-zero-no-unit": [true, {ignore: ["custom-properties"], ignoreFunctions: ["var"]}],
|
|
114
|
+
"length-zero-no-unit": [true, { ignore: ["custom-properties"], ignoreFunctions: ["var"] }],
|
|
117
115
|
"media-feature-name-no-vendor-prefix": true,
|
|
118
116
|
"no-descending-specificity": null,
|
|
119
117
|
"no-empty-source": null,
|
|
120
118
|
"no-invalid-double-slash-comments": true,
|
|
121
|
-
"no-invalid-position-at-import-rule": [true, {ignoreAtRules: ["tailwind"]}],
|
|
122
|
-
"no-unknown-animations": null,
|
|
123
|
-
|
|
124
|
-
"no-unknown-custom-
|
|
119
|
+
"no-invalid-position-at-import-rule": [true, { ignoreAtRules: ["tailwind"] }],
|
|
120
|
+
"no-unknown-animations": null,
|
|
121
|
+
// disabled until multi-file linting works
|
|
122
|
+
"no-unknown-custom-media": null,
|
|
123
|
+
// disabled until multi-file linting works
|
|
124
|
+
"no-unknown-custom-properties": null,
|
|
125
|
+
// disabled until multi-file linting works
|
|
125
126
|
"plugin/declaration-block-no-ignored-properties": true,
|
|
126
|
-
"property-no-deprecated": [true, {ignoreProperties: ["-webkit-box-orient"]}],
|
|
127
|
-
|
|
127
|
+
"property-no-deprecated": [true, { ignoreProperties: ["-webkit-box-orient"] }],
|
|
128
|
+
// https://github.com/stylelint/stylelint/issues/8698
|
|
129
|
+
"scale-unlimited/declaration-strict-value": [["/color$/"], { ignoreValues: "/^(inherit|transparent|unset|initial|currentcolor|none)$/", ignoreFunctions: true, disableFix: true, expandShorthand: true }],
|
|
128
130
|
"selector-attribute-quotes": "always",
|
|
129
131
|
"selector-no-vendor-prefix": true,
|
|
130
132
|
"selector-type-case": "lower",
|
|
131
|
-
"selector-type-no-unknown": [true, {ignore: ["custom-elements"]}],
|
|
133
|
+
"selector-type-no-unknown": [true, { ignore: ["custom-elements"] }],
|
|
132
134
|
"shorthand-property-no-redundant-values": true,
|
|
133
|
-
"value-no-vendor-prefix": [true, {ignoreValues: ["box", "inline-box"]}]
|
|
134
|
-
}
|
|
135
|
-
}
|
|
135
|
+
"value-no-vendor-prefix": [true, { ignoreValues: ["box", "inline-box"] }]
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
export {
|
|
139
|
+
index as default
|
|
140
|
+
};
|
package/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stylelint-config-silverwind",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "32.0.0",
|
|
4
4
|
"description": "Extensive stylelint configuration",
|
|
5
5
|
"author": "silverwind <me@silverwind.io>",
|
|
6
6
|
"repository": "silverwind/stylelint-config-silverwind",
|
|
7
7
|
"license": "BSD-2-Clause",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"sideEffects": false,
|
|
10
|
-
"exports":
|
|
10
|
+
"exports": {
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
11
13
|
"files": [
|
|
12
|
-
"
|
|
14
|
+
"dist"
|
|
13
15
|
],
|
|
14
16
|
"dependencies": {
|
|
15
17
|
"@stylistic/stylelint-plugin": "4.0.0",
|
|
@@ -17,7 +19,6 @@
|
|
|
17
19
|
"stylelint-config-recommended": "17.0.0",
|
|
18
20
|
"stylelint-declaration-block-no-ignored-properties": "2.8.0",
|
|
19
21
|
"stylelint-declaration-strict-value": "1.10.11",
|
|
20
|
-
"stylelint-define-config": "16.22.0",
|
|
21
22
|
"stylelint-value-no-unknown-custom-properties": "6.0.1"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
@@ -28,6 +29,8 @@
|
|
|
28
29
|
"typescript": "5.9.2",
|
|
29
30
|
"typescript-config-silverwind": "10.0.1",
|
|
30
31
|
"updates": "16.6.2",
|
|
31
|
-
"versions": "13.1.1"
|
|
32
|
+
"versions": "13.1.1",
|
|
33
|
+
"vite": "7.1.4",
|
|
34
|
+
"vite-config-silverwind": "5.4.0"
|
|
32
35
|
}
|
|
33
36
|
}
|