@pengzhanbo/stylelint-config 2.1.0 → 2.2.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.mjs +1 -8
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { toArray, uniq } from "@pengzhanbo/utils";
|
|
2
2
|
import { isPackageExists } from "local-pkg";
|
|
3
3
|
import "stylelint-define-config";
|
|
4
|
-
|
|
5
4
|
//#region src/globs.ts
|
|
6
5
|
const JS_EXT = [
|
|
7
6
|
"*.js",
|
|
@@ -56,7 +55,6 @@ const GLOB_EXCLUDE = [
|
|
|
56
55
|
"**/*.key",
|
|
57
56
|
"**/*Dockerfile"
|
|
58
57
|
];
|
|
59
|
-
|
|
60
58
|
//#endregion
|
|
61
59
|
//#region src/rules/normal.ts
|
|
62
60
|
const normalRules = {
|
|
@@ -78,7 +76,6 @@ const normalRules = {
|
|
|
78
76
|
"selector-pseudo-class-no-unknown": [true, { ignorePseudoClasses: ["deep", "global"] }],
|
|
79
77
|
"no-duplicate-selectors": null
|
|
80
78
|
};
|
|
81
|
-
|
|
82
79
|
//#endregion
|
|
83
80
|
//#region src/rules/order.ts
|
|
84
81
|
const orderRules = {
|
|
@@ -544,7 +541,6 @@ const orderRules = {
|
|
|
544
541
|
emptyLineMinimumPropertyThreshold: 5
|
|
545
542
|
}]
|
|
546
543
|
};
|
|
547
|
-
|
|
548
544
|
//#endregion
|
|
549
545
|
//#region src/rules/stylistic.ts
|
|
550
546
|
const stylisticRules = {
|
|
@@ -617,7 +613,6 @@ const stylisticRules = {
|
|
|
617
613
|
"@stylistic/value-list-comma-space-before": "never",
|
|
618
614
|
"@stylistic/value-list-max-empty-lines": 0
|
|
619
615
|
};
|
|
620
|
-
|
|
621
616
|
//#endregion
|
|
622
617
|
//#region src/config.ts
|
|
623
618
|
const IGNORES = JS_EXT.map((ext) => `**/${ext}`);
|
|
@@ -669,10 +664,8 @@ function stylelintConfig(options = {}, userConfig = {}) {
|
|
|
669
664
|
};
|
|
670
665
|
return config;
|
|
671
666
|
}
|
|
672
|
-
|
|
673
667
|
//#endregion
|
|
674
668
|
//#region src/index.ts
|
|
675
669
|
var src_default = stylelintConfig();
|
|
676
|
-
|
|
677
670
|
//#endregion
|
|
678
|
-
export { src_default as default, stylelintConfig };
|
|
671
|
+
export { src_default as default, stylelintConfig };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pengzhanbo/stylelint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.2.0",
|
|
5
5
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/pengzhanbo/configs#readme",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"@stylelint-types/stylelint-stylistic": "^5.0.0",
|
|
32
32
|
"@stylistic/stylelint-plugin": "^5.0.1",
|
|
33
33
|
"local-pkg": "^1.1.2",
|
|
34
|
-
"postcss": "^8.5.
|
|
34
|
+
"postcss": "^8.5.8",
|
|
35
35
|
"postcss-html": "^1.8.1",
|
|
36
36
|
"stylelint-config-html": "^1.1.0",
|
|
37
37
|
"stylelint-config-standard": "^40.0.0",
|
|
38
38
|
"stylelint-config-standard-scss": "^17.0.0",
|
|
39
39
|
"stylelint-define-config": "^17.2.0",
|
|
40
|
-
"stylelint-order": "^
|
|
40
|
+
"stylelint-order": "^8.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"stylelint": "^17.4.0"
|