@deot/dev-stylelint 2.8.2 → 2.9.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.cjs +20 -15
- package/dist/index.d.ts +5 -59
- package/dist/index.js +20 -15
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -4,15 +4,9 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
4
4
|
|
|
5
5
|
const configure = async () => {
|
|
6
6
|
return {
|
|
7
|
-
plugins: ["stylelint-order", "stylelint-
|
|
7
|
+
plugins: ["stylelint-order", "@stylistic/stylelint-plugin"],
|
|
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,11 +48,13 @@ 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
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
54
|
+
"@stylistic/indentation": "tab",
|
|
55
|
+
"@stylistic/declaration-colon-space-after": "always-single-line",
|
|
56
|
+
"@stylistic/declaration-colon-space-before": "never",
|
|
57
|
+
"@stylistic/declaration-block-trailing-semicolon": "always",
|
|
53
58
|
// Specify the alphabetical order of the attributes in the declaration block
|
|
54
59
|
"order/properties-order": [
|
|
55
60
|
"position",
|
|
@@ -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
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
const configure = async () => {
|
|
2
2
|
return {
|
|
3
|
-
plugins: ["stylelint-order", "stylelint-
|
|
3
|
+
plugins: ["stylelint-order", "@stylistic/stylelint-plugin"],
|
|
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,11 +44,13 @@ 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
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
50
|
+
"@stylistic/indentation": "tab",
|
|
51
|
+
"@stylistic/declaration-colon-space-after": "always-single-line",
|
|
52
|
+
"@stylistic/declaration-colon-space-before": "never",
|
|
53
|
+
"@stylistic/declaration-block-trailing-semicolon": "always",
|
|
49
54
|
// Specify the alphabetical order of the attributes in the declaration block
|
|
50
55
|
"order/properties-order": [
|
|
51
56
|
"position",
|
|
@@ -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 };
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deot/dev-stylelint",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
9
10
|
"import": "./dist/index.js",
|
|
10
|
-
"require": "./dist/index.cjs"
|
|
11
|
-
"types": "./dist/index.d.ts"
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"stylelint-
|
|
23
|
-
"stylelint-
|
|
22
|
+
"@stylistic/stylelint-plugin": "^3.1.2",
|
|
23
|
+
"stylelint-config-standard-scss": "^14.0.0",
|
|
24
24
|
"stylelint-order": "^6.0.4"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"stylelint": "^16.
|
|
27
|
+
"stylelint": "^16.14.1"
|
|
28
28
|
}
|
|
29
29
|
}
|