@tomjs/stylelint 2.4.0 → 2.6.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/package.json +10 -11
- package/es/index.d.ts +0 -59
- package/es/index.js +0 -103
- package/lib/index.d.ts +0 -59
- package/lib/index.js +0 -102
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomjs/stylelint",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "stylelint config for tomjs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stylelint",
|
|
@@ -32,29 +32,28 @@
|
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
34
34
|
"require": "./lib/index.js",
|
|
35
|
-
"import": "./es/index.js"
|
|
36
|
-
"types": "./es/index.d.ts"
|
|
35
|
+
"import": "./es/index.js"
|
|
37
36
|
}
|
|
38
37
|
},
|
|
39
38
|
"dependencies": {
|
|
40
|
-
"postcss": "^8.4.
|
|
41
|
-
"postcss-html": "^1.
|
|
39
|
+
"postcss": "^8.4.39",
|
|
40
|
+
"postcss-html": "^1.7.0",
|
|
42
41
|
"postcss-less": "^6.0.0",
|
|
43
42
|
"postcss-scss": "^4.0.9",
|
|
44
43
|
"stylelint-config-property-sort-order-smacss": "^10.0.0",
|
|
45
|
-
"stylelint-config-recommended": "^14.0.
|
|
44
|
+
"stylelint-config-recommended": "^14.0.1",
|
|
46
45
|
"stylelint-config-recommended-vue": "^1.5.0",
|
|
47
|
-
"stylelint-config-standard": "^36.0.
|
|
48
|
-
"stylelint-config-standard-scss": "^13.
|
|
46
|
+
"stylelint-config-standard": "^36.0.1",
|
|
47
|
+
"stylelint-config-standard-scss": "^13.1.0",
|
|
49
48
|
"stylelint-order": "^6.0.4",
|
|
50
49
|
"stylelint-prettier": "^5.0.0"
|
|
51
50
|
},
|
|
52
51
|
"peerDependencies": {
|
|
53
|
-
"prettier": "
|
|
54
|
-
"stylelint": "^16.1
|
|
52
|
+
"prettier": "^3.0.0",
|
|
53
|
+
"stylelint": "^16.3.1"
|
|
55
54
|
},
|
|
56
55
|
"engines": {
|
|
57
|
-
"node": ">=18.
|
|
56
|
+
"node": ">=18.12.0"
|
|
58
57
|
},
|
|
59
58
|
"scripts": {
|
|
60
59
|
"build": "npm run clean && vite build",
|
package/es/index.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
plugins: string[];
|
|
3
|
-
extends: string[];
|
|
4
|
-
overrides: ({
|
|
5
|
-
files: string[];
|
|
6
|
-
customSyntax: string;
|
|
7
|
-
extends?: undefined;
|
|
8
|
-
rule?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
files: string[];
|
|
11
|
-
customSyntax: string;
|
|
12
|
-
extends: string[];
|
|
13
|
-
rule?: undefined;
|
|
14
|
-
} | {
|
|
15
|
-
files: string[];
|
|
16
|
-
customSyntax: string;
|
|
17
|
-
extends: string[];
|
|
18
|
-
rule: {
|
|
19
|
-
'scss/percent-placeholder-pattern': null;
|
|
20
|
-
};
|
|
21
|
-
})[];
|
|
22
|
-
rules: {
|
|
23
|
-
'alpha-value-notation': string;
|
|
24
|
-
'at-rule-no-unknown': (boolean | {
|
|
25
|
-
ignoreAtRules: string[];
|
|
26
|
-
})[];
|
|
27
|
-
'color-function-notation': null;
|
|
28
|
-
'font-family-no-missing-generic-family-keyword': null;
|
|
29
|
-
'function-no-unknown': null;
|
|
30
|
-
'import-notation': null;
|
|
31
|
-
'media-feature-range-notation': string;
|
|
32
|
-
'named-grid-areas-no-invalid': null;
|
|
33
|
-
'no-descending-specificity': null;
|
|
34
|
-
'no-duplicate-selectors': null;
|
|
35
|
-
'no-empty-source': null;
|
|
36
|
-
'order/order': ((string | {
|
|
37
|
-
name: string;
|
|
38
|
-
type: string;
|
|
39
|
-
})[] | {
|
|
40
|
-
severity: string;
|
|
41
|
-
})[];
|
|
42
|
-
'rule-empty-line-before': (string | {
|
|
43
|
-
ignore: string[];
|
|
44
|
-
})[];
|
|
45
|
-
'selector-class-pattern': null;
|
|
46
|
-
'selector-not-notation': null;
|
|
47
|
-
'selector-pseudo-class-no-unknown': (boolean | {
|
|
48
|
-
ignorePseudoClasses: string[];
|
|
49
|
-
})[];
|
|
50
|
-
'selector-pseudo-element-no-unknown': (boolean | {
|
|
51
|
-
ignorePseudoElements: string[];
|
|
52
|
-
})[];
|
|
53
|
-
'unit-no-unknown': (boolean | {
|
|
54
|
-
ignoreUnits: string[];
|
|
55
|
-
})[];
|
|
56
|
-
};
|
|
57
|
-
ignoreFiles: string[];
|
|
58
|
-
};
|
|
59
|
-
export default _default;
|
package/es/index.js
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
const index = {
|
|
2
|
-
plugins: ["stylelint-order", "stylelint-prettier"],
|
|
3
|
-
extends: ["stylelint-config-standard", "stylelint-config-property-sort-order-smacss"],
|
|
4
|
-
overrides: [
|
|
5
|
-
{
|
|
6
|
-
files: ["**/*.(css|html|vue)"],
|
|
7
|
-
customSyntax: "postcss-html"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
files: ["*.less", "**/*.less"],
|
|
11
|
-
customSyntax: "postcss-less",
|
|
12
|
-
extends: ["stylelint-config-standard", "stylelint-config-recommended-vue"]
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
files: ["*.scss", "**/*.scss"],
|
|
16
|
-
customSyntax: "postcss-scss",
|
|
17
|
-
extends: ["stylelint-config-standard-scss", "stylelint-config-recommended-vue/scss"],
|
|
18
|
-
rule: {
|
|
19
|
-
"scss/percent-placeholder-pattern": null
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
rules: {
|
|
24
|
-
"alpha-value-notation": "number",
|
|
25
|
-
"at-rule-no-unknown": [
|
|
26
|
-
true,
|
|
27
|
-
{
|
|
28
|
-
ignoreAtRules: [
|
|
29
|
-
"tailwind",
|
|
30
|
-
"apply",
|
|
31
|
-
"variants",
|
|
32
|
-
"responsive",
|
|
33
|
-
"screen",
|
|
34
|
-
"function",
|
|
35
|
-
"if",
|
|
36
|
-
"each",
|
|
37
|
-
"include",
|
|
38
|
-
"mixin",
|
|
39
|
-
"extend"
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"color-function-notation": null,
|
|
44
|
-
"font-family-no-missing-generic-family-keyword": null,
|
|
45
|
-
"function-no-unknown": null,
|
|
46
|
-
"import-notation": null,
|
|
47
|
-
"media-feature-range-notation": "prefix",
|
|
48
|
-
"named-grid-areas-no-invalid": null,
|
|
49
|
-
"no-descending-specificity": null,
|
|
50
|
-
"no-duplicate-selectors": null,
|
|
51
|
-
"no-empty-source": null,
|
|
52
|
-
"order/order": [
|
|
53
|
-
[
|
|
54
|
-
"dollar-variables",
|
|
55
|
-
"custom-properties",
|
|
56
|
-
"at-rules",
|
|
57
|
-
"declarations",
|
|
58
|
-
{
|
|
59
|
-
name: "supports",
|
|
60
|
-
type: "at-rule"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: "media",
|
|
64
|
-
type: "at-rule"
|
|
65
|
-
},
|
|
66
|
-
"rules"
|
|
67
|
-
],
|
|
68
|
-
{
|
|
69
|
-
severity: "error"
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
"rule-empty-line-before": [
|
|
73
|
-
"always",
|
|
74
|
-
{
|
|
75
|
-
ignore: ["after-comment", "first-nested"]
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"selector-class-pattern": null,
|
|
79
|
-
"selector-not-notation": null,
|
|
80
|
-
"selector-pseudo-class-no-unknown": [
|
|
81
|
-
true,
|
|
82
|
-
{
|
|
83
|
-
ignorePseudoClasses: ["global", "deep"]
|
|
84
|
-
}
|
|
85
|
-
],
|
|
86
|
-
"selector-pseudo-element-no-unknown": [
|
|
87
|
-
true,
|
|
88
|
-
{
|
|
89
|
-
ignorePseudoElements: ["v-deep"]
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"unit-no-unknown": [
|
|
93
|
-
true,
|
|
94
|
-
{
|
|
95
|
-
ignoreUnits: ["rpx"]
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
},
|
|
99
|
-
ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts"]
|
|
100
|
-
};
|
|
101
|
-
export {
|
|
102
|
-
index as default
|
|
103
|
-
};
|
package/lib/index.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
plugins: string[];
|
|
3
|
-
extends: string[];
|
|
4
|
-
overrides: ({
|
|
5
|
-
files: string[];
|
|
6
|
-
customSyntax: string;
|
|
7
|
-
extends?: undefined;
|
|
8
|
-
rule?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
files: string[];
|
|
11
|
-
customSyntax: string;
|
|
12
|
-
extends: string[];
|
|
13
|
-
rule?: undefined;
|
|
14
|
-
} | {
|
|
15
|
-
files: string[];
|
|
16
|
-
customSyntax: string;
|
|
17
|
-
extends: string[];
|
|
18
|
-
rule: {
|
|
19
|
-
'scss/percent-placeholder-pattern': null;
|
|
20
|
-
};
|
|
21
|
-
})[];
|
|
22
|
-
rules: {
|
|
23
|
-
'alpha-value-notation': string;
|
|
24
|
-
'at-rule-no-unknown': (boolean | {
|
|
25
|
-
ignoreAtRules: string[];
|
|
26
|
-
})[];
|
|
27
|
-
'color-function-notation': null;
|
|
28
|
-
'font-family-no-missing-generic-family-keyword': null;
|
|
29
|
-
'function-no-unknown': null;
|
|
30
|
-
'import-notation': null;
|
|
31
|
-
'media-feature-range-notation': string;
|
|
32
|
-
'named-grid-areas-no-invalid': null;
|
|
33
|
-
'no-descending-specificity': null;
|
|
34
|
-
'no-duplicate-selectors': null;
|
|
35
|
-
'no-empty-source': null;
|
|
36
|
-
'order/order': ((string | {
|
|
37
|
-
name: string;
|
|
38
|
-
type: string;
|
|
39
|
-
})[] | {
|
|
40
|
-
severity: string;
|
|
41
|
-
})[];
|
|
42
|
-
'rule-empty-line-before': (string | {
|
|
43
|
-
ignore: string[];
|
|
44
|
-
})[];
|
|
45
|
-
'selector-class-pattern': null;
|
|
46
|
-
'selector-not-notation': null;
|
|
47
|
-
'selector-pseudo-class-no-unknown': (boolean | {
|
|
48
|
-
ignorePseudoClasses: string[];
|
|
49
|
-
})[];
|
|
50
|
-
'selector-pseudo-element-no-unknown': (boolean | {
|
|
51
|
-
ignorePseudoElements: string[];
|
|
52
|
-
})[];
|
|
53
|
-
'unit-no-unknown': (boolean | {
|
|
54
|
-
ignoreUnits: string[];
|
|
55
|
-
})[];
|
|
56
|
-
};
|
|
57
|
-
ignoreFiles: string[];
|
|
58
|
-
};
|
|
59
|
-
export default _default;
|
package/lib/index.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const index = {
|
|
3
|
-
plugins: ["stylelint-order", "stylelint-prettier"],
|
|
4
|
-
extends: ["stylelint-config-standard", "stylelint-config-property-sort-order-smacss"],
|
|
5
|
-
overrides: [
|
|
6
|
-
{
|
|
7
|
-
files: ["**/*.(css|html|vue)"],
|
|
8
|
-
customSyntax: "postcss-html"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
files: ["*.less", "**/*.less"],
|
|
12
|
-
customSyntax: "postcss-less",
|
|
13
|
-
extends: ["stylelint-config-standard", "stylelint-config-recommended-vue"]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
files: ["*.scss", "**/*.scss"],
|
|
17
|
-
customSyntax: "postcss-scss",
|
|
18
|
-
extends: ["stylelint-config-standard-scss", "stylelint-config-recommended-vue/scss"],
|
|
19
|
-
rule: {
|
|
20
|
-
"scss/percent-placeholder-pattern": null
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
rules: {
|
|
25
|
-
"alpha-value-notation": "number",
|
|
26
|
-
"at-rule-no-unknown": [
|
|
27
|
-
true,
|
|
28
|
-
{
|
|
29
|
-
ignoreAtRules: [
|
|
30
|
-
"tailwind",
|
|
31
|
-
"apply",
|
|
32
|
-
"variants",
|
|
33
|
-
"responsive",
|
|
34
|
-
"screen",
|
|
35
|
-
"function",
|
|
36
|
-
"if",
|
|
37
|
-
"each",
|
|
38
|
-
"include",
|
|
39
|
-
"mixin",
|
|
40
|
-
"extend"
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"color-function-notation": null,
|
|
45
|
-
"font-family-no-missing-generic-family-keyword": null,
|
|
46
|
-
"function-no-unknown": null,
|
|
47
|
-
"import-notation": null,
|
|
48
|
-
"media-feature-range-notation": "prefix",
|
|
49
|
-
"named-grid-areas-no-invalid": null,
|
|
50
|
-
"no-descending-specificity": null,
|
|
51
|
-
"no-duplicate-selectors": null,
|
|
52
|
-
"no-empty-source": null,
|
|
53
|
-
"order/order": [
|
|
54
|
-
[
|
|
55
|
-
"dollar-variables",
|
|
56
|
-
"custom-properties",
|
|
57
|
-
"at-rules",
|
|
58
|
-
"declarations",
|
|
59
|
-
{
|
|
60
|
-
name: "supports",
|
|
61
|
-
type: "at-rule"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: "media",
|
|
65
|
-
type: "at-rule"
|
|
66
|
-
},
|
|
67
|
-
"rules"
|
|
68
|
-
],
|
|
69
|
-
{
|
|
70
|
-
severity: "error"
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
"rule-empty-line-before": [
|
|
74
|
-
"always",
|
|
75
|
-
{
|
|
76
|
-
ignore: ["after-comment", "first-nested"]
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"selector-class-pattern": null,
|
|
80
|
-
"selector-not-notation": null,
|
|
81
|
-
"selector-pseudo-class-no-unknown": [
|
|
82
|
-
true,
|
|
83
|
-
{
|
|
84
|
-
ignorePseudoClasses: ["global", "deep"]
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"selector-pseudo-element-no-unknown": [
|
|
88
|
-
true,
|
|
89
|
-
{
|
|
90
|
-
ignorePseudoElements: ["v-deep"]
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
"unit-no-unknown": [
|
|
94
|
-
true,
|
|
95
|
-
{
|
|
96
|
-
ignoreUnits: ["rpx"]
|
|
97
|
-
}
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts"]
|
|
101
|
-
};
|
|
102
|
-
module.exports = index;
|