@deot/dev-stylelint 2.8.2 → 2.8.3
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.cjs +15 -10
- package/dist/index.d.ts +5 -59
- package/dist/index.js +15 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7,12 +7,6 @@ const configure = async () => {
|
|
|
7
7
|
plugins: ["stylelint-order", "stylelint-codeguide"],
|
|
8
8
|
extends: ["stylelint-config-standard-scss"],
|
|
9
9
|
rules: {
|
|
10
|
-
"selector-pseudo-class-no-unknown": [
|
|
11
|
-
true,
|
|
12
|
-
{
|
|
13
|
-
ignorePseudoClasses: ["global"]
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
10
|
"at-rule-no-unknown": [
|
|
17
11
|
true,
|
|
18
12
|
{
|
|
@@ -29,13 +23,22 @@ const configure = async () => {
|
|
|
29
23
|
"extend",
|
|
30
24
|
"return",
|
|
31
25
|
"debug",
|
|
32
|
-
"while"
|
|
26
|
+
"while",
|
|
27
|
+
"error"
|
|
33
28
|
]
|
|
34
29
|
}
|
|
35
30
|
],
|
|
36
31
|
"no-empty-source": null,
|
|
37
|
-
"named-grid-areas-no-invalid": null,
|
|
38
32
|
"no-descending-specificity": null,
|
|
33
|
+
"block-no-empty": null,
|
|
34
|
+
"selector-class-pattern": "[a-zA-Z0-9_-]+",
|
|
35
|
+
"selector-pseudo-class-no-unknown": [
|
|
36
|
+
true,
|
|
37
|
+
{
|
|
38
|
+
ignorePseudoClasses: ["global"]
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"named-grid-areas-no-invalid": null,
|
|
39
42
|
"font-family-no-missing-generic-family-keyword": null,
|
|
40
43
|
"rule-empty-line-before": [
|
|
41
44
|
"always",
|
|
@@ -45,6 +48,8 @@ const configure = async () => {
|
|
|
45
48
|
],
|
|
46
49
|
"function-no-unknown": null,
|
|
47
50
|
"unit-no-unknown": [true, { ignoreUnits: ["rpx"] }],
|
|
51
|
+
// scss
|
|
52
|
+
"scss/dollar-variable-pattern": "[a-zA-Z0-9_-]+",
|
|
48
53
|
// stylistic
|
|
49
54
|
"codeguide/indentation": "tab",
|
|
50
55
|
"codeguide/declaration-colon-space-after": "always-single-line",
|
|
@@ -214,7 +219,7 @@ const configure = async () => {
|
|
|
214
219
|
};
|
|
215
220
|
};
|
|
216
221
|
|
|
217
|
-
const
|
|
222
|
+
const config = configure();
|
|
218
223
|
|
|
219
224
|
exports.configure = configure;
|
|
220
|
-
exports.default =
|
|
225
|
+
exports.default = config;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,62 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
plugins: string[];
|
|
3
|
-
extends: string[];
|
|
4
|
-
rules: {
|
|
5
|
-
'selector-pseudo-class-no-unknown': (boolean | {
|
|
6
|
-
ignorePseudoClasses: string[];
|
|
7
|
-
})[];
|
|
8
|
-
'at-rule-no-unknown': (boolean | {
|
|
9
|
-
ignoreAtRules: string[];
|
|
10
|
-
})[];
|
|
11
|
-
'no-empty-source': null;
|
|
12
|
-
'named-grid-areas-no-invalid': null;
|
|
13
|
-
'no-descending-specificity': null;
|
|
14
|
-
'font-family-no-missing-generic-family-keyword': null;
|
|
15
|
-
'rule-empty-line-before': (string | {
|
|
16
|
-
ignore: string[];
|
|
17
|
-
})[];
|
|
18
|
-
'function-no-unknown': null;
|
|
19
|
-
'unit-no-unknown': (boolean | {
|
|
20
|
-
ignoreUnits: string[];
|
|
21
|
-
})[];
|
|
22
|
-
'codeguide/indentation': string;
|
|
23
|
-
'codeguide/declaration-colon-space-after': string;
|
|
24
|
-
'codeguide/declaration-colon-space-before': string;
|
|
25
|
-
'codeguide/declaration-block-trailing-semicolon': string;
|
|
26
|
-
'order/properties-order': string[];
|
|
27
|
-
};
|
|
28
|
-
ignoreFiles: string[];
|
|
29
|
-
}>;
|
|
1
|
+
import type { Config } from 'stylelint';
|
|
30
2
|
|
|
31
|
-
declare const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
'selector-pseudo-class-no-unknown': (boolean | {
|
|
36
|
-
ignorePseudoClasses: string[];
|
|
37
|
-
})[];
|
|
38
|
-
'at-rule-no-unknown': (boolean | {
|
|
39
|
-
ignoreAtRules: string[];
|
|
40
|
-
})[];
|
|
41
|
-
'no-empty-source': null;
|
|
42
|
-
'named-grid-areas-no-invalid': null;
|
|
43
|
-
'no-descending-specificity': null;
|
|
44
|
-
'font-family-no-missing-generic-family-keyword': null;
|
|
45
|
-
'rule-empty-line-before': (string | {
|
|
46
|
-
ignore: string[];
|
|
47
|
-
})[];
|
|
48
|
-
'function-no-unknown': null;
|
|
49
|
-
'unit-no-unknown': (boolean | {
|
|
50
|
-
ignoreUnits: string[];
|
|
51
|
-
})[];
|
|
52
|
-
'codeguide/indentation': string;
|
|
53
|
-
'codeguide/declaration-colon-space-after': string;
|
|
54
|
-
'codeguide/declaration-colon-space-before': string;
|
|
55
|
-
'codeguide/declaration-block-trailing-semicolon': string;
|
|
56
|
-
'order/properties-order': string[];
|
|
57
|
-
};
|
|
58
|
-
ignoreFiles: string[];
|
|
59
|
-
}>;
|
|
60
|
-
export default _default;
|
|
3
|
+
declare const config: Promise<Config>;
|
|
4
|
+
export default config;
|
|
5
|
+
|
|
6
|
+
export declare const configure: () => Promise<Config>;
|
|
61
7
|
|
|
62
8
|
export { }
|
package/dist/index.js
CHANGED
|
@@ -3,12 +3,6 @@ const configure = async () => {
|
|
|
3
3
|
plugins: ["stylelint-order", "stylelint-codeguide"],
|
|
4
4
|
extends: ["stylelint-config-standard-scss"],
|
|
5
5
|
rules: {
|
|
6
|
-
"selector-pseudo-class-no-unknown": [
|
|
7
|
-
true,
|
|
8
|
-
{
|
|
9
|
-
ignorePseudoClasses: ["global"]
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
6
|
"at-rule-no-unknown": [
|
|
13
7
|
true,
|
|
14
8
|
{
|
|
@@ -25,13 +19,22 @@ const configure = async () => {
|
|
|
25
19
|
"extend",
|
|
26
20
|
"return",
|
|
27
21
|
"debug",
|
|
28
|
-
"while"
|
|
22
|
+
"while",
|
|
23
|
+
"error"
|
|
29
24
|
]
|
|
30
25
|
}
|
|
31
26
|
],
|
|
32
27
|
"no-empty-source": null,
|
|
33
|
-
"named-grid-areas-no-invalid": null,
|
|
34
28
|
"no-descending-specificity": null,
|
|
29
|
+
"block-no-empty": null,
|
|
30
|
+
"selector-class-pattern": "[a-zA-Z0-9_-]+",
|
|
31
|
+
"selector-pseudo-class-no-unknown": [
|
|
32
|
+
true,
|
|
33
|
+
{
|
|
34
|
+
ignorePseudoClasses: ["global"]
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"named-grid-areas-no-invalid": null,
|
|
35
38
|
"font-family-no-missing-generic-family-keyword": null,
|
|
36
39
|
"rule-empty-line-before": [
|
|
37
40
|
"always",
|
|
@@ -41,6 +44,8 @@ const configure = async () => {
|
|
|
41
44
|
],
|
|
42
45
|
"function-no-unknown": null,
|
|
43
46
|
"unit-no-unknown": [true, { ignoreUnits: ["rpx"] }],
|
|
47
|
+
// scss
|
|
48
|
+
"scss/dollar-variable-pattern": "[a-zA-Z0-9_-]+",
|
|
44
49
|
// stylistic
|
|
45
50
|
"codeguide/indentation": "tab",
|
|
46
51
|
"codeguide/declaration-colon-space-after": "always-single-line",
|
|
@@ -210,6 +215,6 @@ const configure = async () => {
|
|
|
210
215
|
};
|
|
211
216
|
};
|
|
212
217
|
|
|
213
|
-
const
|
|
218
|
+
const config = configure();
|
|
214
219
|
|
|
215
|
-
export { configure,
|
|
220
|
+
export { configure, config as default };
|