@dt-frames/stylelint-config 1.0.0 → 3.0.1
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 +58 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.mjs +56 -0
- package/package.json +5 -3
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = {
|
|
4
|
+
extends: [
|
|
5
|
+
"stylelint-config-standard",
|
|
6
|
+
// 配置vue中template样式格式化
|
|
7
|
+
"stylelint-config-html/vue",
|
|
8
|
+
// stylelint scss插件
|
|
9
|
+
"stylelint-config-standard-scss",
|
|
10
|
+
// 配置vue中的scss样式格式化
|
|
11
|
+
"stylelint-config-recommended-vue/scss",
|
|
12
|
+
// css书写顺序
|
|
13
|
+
"stylelint-config-recess-order",
|
|
14
|
+
// 配置style与prettier的兼容
|
|
15
|
+
"stylelint-config-prettier"
|
|
16
|
+
],
|
|
17
|
+
overrides: [
|
|
18
|
+
{
|
|
19
|
+
files: ["**/*.(scss|css|vue|html)"],
|
|
20
|
+
customSyntax: "postcss-scss"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
files: ["**/*.(html|vue)"],
|
|
24
|
+
customSyntax: "postcss-html"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts", "**/*.json", "**/*.md", "**/*.yaml"],
|
|
28
|
+
rules: {
|
|
29
|
+
// 在css中使用v-bind不报错
|
|
30
|
+
"value-keyword-case": null,
|
|
31
|
+
// 禁止在较高优先级的选择器后面出现被其覆盖的较低优先级的选择器
|
|
32
|
+
"no-descending-specificity": null,
|
|
33
|
+
// url的引号必须有
|
|
34
|
+
"function-url-quotes": "always",
|
|
35
|
+
// 关闭禁止空源码
|
|
36
|
+
"no-empty-source": null,
|
|
37
|
+
// 关闭强制选择器类名的格式
|
|
38
|
+
"selector-class-pattern": null,
|
|
39
|
+
// 禁止未知的属性
|
|
40
|
+
"property-no-unknown": true,
|
|
41
|
+
// 关闭属性前缀 --webkit-box
|
|
42
|
+
"value-no-vendor-prefix": null,
|
|
43
|
+
"property-no-vendor-prefix": null,
|
|
44
|
+
// 使用单引号
|
|
45
|
+
"string-quotes": "single",
|
|
46
|
+
// 深度嵌套
|
|
47
|
+
"max-nesting-depth": 5,
|
|
48
|
+
"selector-pseudo-class-no-unknown": [
|
|
49
|
+
true,
|
|
50
|
+
{
|
|
51
|
+
ignorePseudoClasses: ["global", ":deep"]
|
|
52
|
+
// 忽略属性
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
module.exports = index;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
extends: string[];
|
|
3
|
+
overrides: {
|
|
4
|
+
files: string[];
|
|
5
|
+
customSyntax: string;
|
|
6
|
+
}[];
|
|
7
|
+
ignoreFiles: string[];
|
|
8
|
+
rules: {
|
|
9
|
+
'value-keyword-case': any;
|
|
10
|
+
'no-descending-specificity': any;
|
|
11
|
+
'function-url-quotes': string;
|
|
12
|
+
'no-empty-source': any;
|
|
13
|
+
'selector-class-pattern': any;
|
|
14
|
+
'property-no-unknown': boolean;
|
|
15
|
+
'value-no-vendor-prefix': any;
|
|
16
|
+
'property-no-vendor-prefix': any;
|
|
17
|
+
'string-quotes': string;
|
|
18
|
+
'max-nesting-depth': number;
|
|
19
|
+
'selector-pseudo-class-no-unknown': (boolean | {
|
|
20
|
+
ignorePseudoClasses: string[];
|
|
21
|
+
})[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { _default as default };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
const index = {
|
|
2
|
+
extends: [
|
|
3
|
+
"stylelint-config-standard",
|
|
4
|
+
// 配置vue中template样式格式化
|
|
5
|
+
"stylelint-config-html/vue",
|
|
6
|
+
// stylelint scss插件
|
|
7
|
+
"stylelint-config-standard-scss",
|
|
8
|
+
// 配置vue中的scss样式格式化
|
|
9
|
+
"stylelint-config-recommended-vue/scss",
|
|
10
|
+
// css书写顺序
|
|
11
|
+
"stylelint-config-recess-order",
|
|
12
|
+
// 配置style与prettier的兼容
|
|
13
|
+
"stylelint-config-prettier"
|
|
14
|
+
],
|
|
15
|
+
overrides: [
|
|
16
|
+
{
|
|
17
|
+
files: ["**/*.(scss|css|vue|html)"],
|
|
18
|
+
customSyntax: "postcss-scss"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
files: ["**/*.(html|vue)"],
|
|
22
|
+
customSyntax: "postcss-html"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts", "**/*.json", "**/*.md", "**/*.yaml"],
|
|
26
|
+
rules: {
|
|
27
|
+
// 在css中使用v-bind不报错
|
|
28
|
+
"value-keyword-case": null,
|
|
29
|
+
// 禁止在较高优先级的选择器后面出现被其覆盖的较低优先级的选择器
|
|
30
|
+
"no-descending-specificity": null,
|
|
31
|
+
// url的引号必须有
|
|
32
|
+
"function-url-quotes": "always",
|
|
33
|
+
// 关闭禁止空源码
|
|
34
|
+
"no-empty-source": null,
|
|
35
|
+
// 关闭强制选择器类名的格式
|
|
36
|
+
"selector-class-pattern": null,
|
|
37
|
+
// 禁止未知的属性
|
|
38
|
+
"property-no-unknown": true,
|
|
39
|
+
// 关闭属性前缀 --webkit-box
|
|
40
|
+
"value-no-vendor-prefix": null,
|
|
41
|
+
"property-no-vendor-prefix": null,
|
|
42
|
+
// 使用单引号
|
|
43
|
+
"string-quotes": "single",
|
|
44
|
+
// 深度嵌套
|
|
45
|
+
"max-nesting-depth": 5,
|
|
46
|
+
"selector-pseudo-class-no-unknown": [
|
|
47
|
+
true,
|
|
48
|
+
{
|
|
49
|
+
ignorePseudoClasses: ["global", ":deep"]
|
|
50
|
+
// 忽略属性
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export { index as default };
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-frames/stylelint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "关于样式格式化的配置封装",
|
|
5
|
-
"keywords": [],
|
|
6
5
|
"license": "ISC",
|
|
7
6
|
"author": "",
|
|
8
7
|
"exports": {
|
|
@@ -15,10 +14,13 @@
|
|
|
15
14
|
"main": "./dist/index.cjs",
|
|
16
15
|
"module": "./dist/index.mjs",
|
|
17
16
|
"types": "./dist/index.d.ts",
|
|
18
|
-
"
|
|
17
|
+
"keywords": [
|
|
19
18
|
"dt-frames",
|
|
20
19
|
"stylelint-config"
|
|
21
20
|
],
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
22
24
|
"publishConfig": {
|
|
23
25
|
"access": "public",
|
|
24
26
|
"registry": "https://registry.npmjs.org/"
|