@tomjs/stylelint 2.7.0 → 4.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/config.cjs +81 -0
- package/dist/config.mjs +80 -0
- package/dist/index.cjs +11 -0
- package/dist/index.mjs +10 -0
- package/package.json +18 -21
- package/es/config.js +0 -103
- package/es/index.js +0 -7
- package/lib/config.js +0 -102
- package/lib/index.js +0 -6
package/dist/config.cjs
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
//#region src/globs.ts
|
|
4
|
+
const GLOB_EXCLUDE = [
|
|
5
|
+
"**/node_modules",
|
|
6
|
+
"**/dist",
|
|
7
|
+
"**/package-lock.json",
|
|
8
|
+
"**/yarn.lock",
|
|
9
|
+
"**/pnpm-lock.yaml",
|
|
10
|
+
"**/bun.lockb",
|
|
11
|
+
"**/output",
|
|
12
|
+
"**/coverage",
|
|
13
|
+
"**/temp",
|
|
14
|
+
"**/.temp",
|
|
15
|
+
"**/tmp",
|
|
16
|
+
"**/.tmp",
|
|
17
|
+
"**/.history",
|
|
18
|
+
"**/.vitepress/cache",
|
|
19
|
+
"**/.nuxt",
|
|
20
|
+
"**/.next",
|
|
21
|
+
"**/.svelte-kit",
|
|
22
|
+
"**/.vercel",
|
|
23
|
+
"**/.changeset",
|
|
24
|
+
"**/.idea",
|
|
25
|
+
"**/.cache",
|
|
26
|
+
"**/.output",
|
|
27
|
+
"**/.vite-inspect",
|
|
28
|
+
"**/.yarn",
|
|
29
|
+
"**/vite.config.*.timestamp-*",
|
|
30
|
+
"**/CHANGELOG*.md",
|
|
31
|
+
"**/*.min.*",
|
|
32
|
+
"**/LICENSE*",
|
|
33
|
+
"**/__snapshots__",
|
|
34
|
+
"**/auto-import?(s).d.ts",
|
|
35
|
+
"**/components.d.ts"
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/config.ts
|
|
40
|
+
const config = {
|
|
41
|
+
extends: [
|
|
42
|
+
"stylelint-config-recommended",
|
|
43
|
+
"stylelint-config-recommended-scss",
|
|
44
|
+
"stylelint-config-recommended-vue/scss",
|
|
45
|
+
"stylelint-config-html/vue",
|
|
46
|
+
"stylelint-config-recess-order"
|
|
47
|
+
],
|
|
48
|
+
overrides: [{
|
|
49
|
+
files: ["**/*.{vue,html}"],
|
|
50
|
+
customSyntax: "postcss-html"
|
|
51
|
+
}, {
|
|
52
|
+
files: ["**/*.{css,scss}"],
|
|
53
|
+
customSyntax: "postcss-scss"
|
|
54
|
+
}],
|
|
55
|
+
rules: {
|
|
56
|
+
"alpha-value-notation": "number",
|
|
57
|
+
"color-function-notation": null,
|
|
58
|
+
"font-family-no-missing-generic-family-keyword": null,
|
|
59
|
+
"import-notation": null,
|
|
60
|
+
"media-feature-range-notation": "prefix",
|
|
61
|
+
"named-grid-areas-no-invalid": null,
|
|
62
|
+
"no-descending-specificity": null,
|
|
63
|
+
"no-duplicate-selectors": null,
|
|
64
|
+
"no-empty-source": null,
|
|
65
|
+
"rule-empty-line-before": ["always", { ignore: ["after-comment", "first-nested"] }],
|
|
66
|
+
"selector-class-pattern": null,
|
|
67
|
+
"selector-not-notation": null,
|
|
68
|
+
"selector-pseudo-class-no-unknown": [true, { ignorePseudoClasses: ["global", "deep"] }]
|
|
69
|
+
},
|
|
70
|
+
ignoreFiles: [
|
|
71
|
+
...GLOB_EXCLUDE,
|
|
72
|
+
"**/*.js",
|
|
73
|
+
"**/*.jsx",
|
|
74
|
+
"**/*.tsx",
|
|
75
|
+
"**/*.ts"
|
|
76
|
+
]
|
|
77
|
+
};
|
|
78
|
+
var config_default = config;
|
|
79
|
+
|
|
80
|
+
//#endregion
|
|
81
|
+
module.exports = config_default;
|
package/dist/config.mjs
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/globs.ts
|
|
3
|
+
const GLOB_EXCLUDE = [
|
|
4
|
+
"**/node_modules",
|
|
5
|
+
"**/dist",
|
|
6
|
+
"**/package-lock.json",
|
|
7
|
+
"**/yarn.lock",
|
|
8
|
+
"**/pnpm-lock.yaml",
|
|
9
|
+
"**/bun.lockb",
|
|
10
|
+
"**/output",
|
|
11
|
+
"**/coverage",
|
|
12
|
+
"**/temp",
|
|
13
|
+
"**/.temp",
|
|
14
|
+
"**/tmp",
|
|
15
|
+
"**/.tmp",
|
|
16
|
+
"**/.history",
|
|
17
|
+
"**/.vitepress/cache",
|
|
18
|
+
"**/.nuxt",
|
|
19
|
+
"**/.next",
|
|
20
|
+
"**/.svelte-kit",
|
|
21
|
+
"**/.vercel",
|
|
22
|
+
"**/.changeset",
|
|
23
|
+
"**/.idea",
|
|
24
|
+
"**/.cache",
|
|
25
|
+
"**/.output",
|
|
26
|
+
"**/.vite-inspect",
|
|
27
|
+
"**/.yarn",
|
|
28
|
+
"**/vite.config.*.timestamp-*",
|
|
29
|
+
"**/CHANGELOG*.md",
|
|
30
|
+
"**/*.min.*",
|
|
31
|
+
"**/LICENSE*",
|
|
32
|
+
"**/__snapshots__",
|
|
33
|
+
"**/auto-import?(s).d.ts",
|
|
34
|
+
"**/components.d.ts"
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/config.ts
|
|
39
|
+
const config = {
|
|
40
|
+
extends: [
|
|
41
|
+
"stylelint-config-recommended",
|
|
42
|
+
"stylelint-config-recommended-scss",
|
|
43
|
+
"stylelint-config-recommended-vue/scss",
|
|
44
|
+
"stylelint-config-html/vue",
|
|
45
|
+
"stylelint-config-recess-order"
|
|
46
|
+
],
|
|
47
|
+
overrides: [{
|
|
48
|
+
files: ["**/*.{vue,html}"],
|
|
49
|
+
customSyntax: "postcss-html"
|
|
50
|
+
}, {
|
|
51
|
+
files: ["**/*.{css,scss}"],
|
|
52
|
+
customSyntax: "postcss-scss"
|
|
53
|
+
}],
|
|
54
|
+
rules: {
|
|
55
|
+
"alpha-value-notation": "number",
|
|
56
|
+
"color-function-notation": null,
|
|
57
|
+
"font-family-no-missing-generic-family-keyword": null,
|
|
58
|
+
"import-notation": null,
|
|
59
|
+
"media-feature-range-notation": "prefix",
|
|
60
|
+
"named-grid-areas-no-invalid": null,
|
|
61
|
+
"no-descending-specificity": null,
|
|
62
|
+
"no-duplicate-selectors": null,
|
|
63
|
+
"no-empty-source": null,
|
|
64
|
+
"rule-empty-line-before": ["always", { ignore: ["after-comment", "first-nested"] }],
|
|
65
|
+
"selector-class-pattern": null,
|
|
66
|
+
"selector-not-notation": null,
|
|
67
|
+
"selector-pseudo-class-no-unknown": [true, { ignorePseudoClasses: ["global", "deep"] }]
|
|
68
|
+
},
|
|
69
|
+
ignoreFiles: [
|
|
70
|
+
...GLOB_EXCLUDE,
|
|
71
|
+
"**/*.js",
|
|
72
|
+
"**/*.jsx",
|
|
73
|
+
"**/*.tsx",
|
|
74
|
+
"**/*.ts"
|
|
75
|
+
]
|
|
76
|
+
};
|
|
77
|
+
var config_default = config;
|
|
78
|
+
|
|
79
|
+
//#endregion
|
|
80
|
+
export { config_default as default };
|
package/dist/index.cjs
ADDED
package/dist/index.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomjs/stylelint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "stylelint config for tomjs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stylelint",
|
|
@@ -24,37 +24,34 @@
|
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://github.com/tomjs/config/tree/main/packages/stylelint#readme",
|
|
26
26
|
"files": [
|
|
27
|
-
"
|
|
28
|
-
"lib"
|
|
27
|
+
"dist"
|
|
29
28
|
],
|
|
30
|
-
"main": "./
|
|
31
|
-
"module": "./
|
|
29
|
+
"main": "./dist/index.cjs",
|
|
30
|
+
"module": "./dist/index.mjs",
|
|
32
31
|
"exports": {
|
|
33
32
|
".": {
|
|
34
|
-
"require": "./
|
|
35
|
-
"import": "./
|
|
33
|
+
"require": "./dist/index.cjs",
|
|
34
|
+
"import": "./dist/index.mjs"
|
|
36
35
|
},
|
|
37
36
|
"./config": {
|
|
38
|
-
"require": "./
|
|
39
|
-
"import": "./
|
|
37
|
+
"require": "./dist/config.cjs",
|
|
38
|
+
"import": "./dist/config.mjs"
|
|
40
39
|
}
|
|
41
40
|
},
|
|
42
41
|
"dependencies": {
|
|
43
|
-
"postcss": "^8.
|
|
44
|
-
"postcss-html": "^1.
|
|
45
|
-
"postcss-less": "^6.0.0",
|
|
42
|
+
"postcss": "^8.5.3",
|
|
43
|
+
"postcss-html": "^1.8.0",
|
|
46
44
|
"postcss-scss": "^4.0.9",
|
|
47
|
-
"stylelint-config-
|
|
45
|
+
"stylelint-config-html": "^1.1.0",
|
|
46
|
+
"stylelint-config-recess-order": "^6.0.0",
|
|
48
47
|
"stylelint-config-recommended": "^14.0.1",
|
|
49
|
-
"stylelint-config-recommended-
|
|
50
|
-
"stylelint-config-
|
|
51
|
-
"stylelint-
|
|
52
|
-
"stylelint-order": "^6.0.4",
|
|
53
|
-
"stylelint-prettier": "^5.0.0"
|
|
48
|
+
"stylelint-config-recommended-scss": "^14.1.0",
|
|
49
|
+
"stylelint-config-recommended-vue": "^1.6.0",
|
|
50
|
+
"stylelint-prettier": "^5.0.3"
|
|
54
51
|
},
|
|
55
52
|
"peerDependencies": {
|
|
56
53
|
"prettier": "^3.0.0",
|
|
57
|
-
"stylelint": "^16.
|
|
54
|
+
"stylelint": "^16.8.2"
|
|
58
55
|
},
|
|
59
56
|
"peerDependenciesMeta": {
|
|
60
57
|
"prettier": {
|
|
@@ -65,7 +62,7 @@
|
|
|
65
62
|
"node": ">=18.12.0"
|
|
66
63
|
},
|
|
67
64
|
"scripts": {
|
|
68
|
-
"build": "npm run clean &&
|
|
69
|
-
"clean": "rimraf ./
|
|
65
|
+
"build": "npm run clean && rolldown -c",
|
|
66
|
+
"clean": "rimraf ./dist"
|
|
70
67
|
}
|
|
71
68
|
}
|
package/es/config.js
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
const config = {
|
|
2
|
-
plugins: ["stylelint-order"],
|
|
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
|
-
config as default
|
|
103
|
-
};
|
package/es/index.js
DELETED
package/lib/config.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const config = {
|
|
3
|
-
plugins: ["stylelint-order"],
|
|
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 = config;
|