@dt-frames/stylelint-config 4.0.3 → 4.0.4
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/index.mjs +124 -0
- package/package.json +46 -44
package/index.mjs
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
extends: [
|
|
3
|
+
'stylelint-config-standard',
|
|
4
|
+
// css书写顺序
|
|
5
|
+
'stylelint-config-recess-order'
|
|
6
|
+
],
|
|
7
|
+
ignoreFiles: [
|
|
8
|
+
'**/*.js',
|
|
9
|
+
'**/*.jsx',
|
|
10
|
+
'**/*.tsx',
|
|
11
|
+
'**/*.ts',
|
|
12
|
+
'**/*.json',
|
|
13
|
+
'**/*.md',
|
|
14
|
+
'**/*.yaml'
|
|
15
|
+
],
|
|
16
|
+
overrides: [
|
|
17
|
+
{
|
|
18
|
+
customSyntax: 'postcss-html',
|
|
19
|
+
files: ['*.(html|vue)', '**/*.(html|vue)'],
|
|
20
|
+
rules: {
|
|
21
|
+
'selector-pseudo-class-no-unknown': [
|
|
22
|
+
true,
|
|
23
|
+
{
|
|
24
|
+
ignorePseudoClasses: ['global', 'deep']
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
'selector-pseudo-element-no-unknown': [
|
|
28
|
+
true,
|
|
29
|
+
{
|
|
30
|
+
ignorePseudoElements: ['v-deep', 'v-global', 'v-slotted']
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
customSyntax: 'postcss-scss',
|
|
37
|
+
extends: [
|
|
38
|
+
'stylelint-config-recommended-scss',
|
|
39
|
+
'stylelint-config-recommended-vue/scss'
|
|
40
|
+
],
|
|
41
|
+
files: ['*.scss', '**/*.scss']
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
plugins: [
|
|
45
|
+
'stylelint-order',
|
|
46
|
+
'@stylistic/stylelint-plugin',
|
|
47
|
+
'stylelint-prettier',
|
|
48
|
+
'stylelint-scss'
|
|
49
|
+
],
|
|
50
|
+
|
|
51
|
+
rules: {
|
|
52
|
+
'at-rule-no-deprecated': null,
|
|
53
|
+
'at-rule-no-unknown': [
|
|
54
|
+
true,
|
|
55
|
+
{
|
|
56
|
+
ignoreAtRules: [
|
|
57
|
+
'extends',
|
|
58
|
+
'ignores',
|
|
59
|
+
'include',
|
|
60
|
+
'mixin',
|
|
61
|
+
'if',
|
|
62
|
+
'else',
|
|
63
|
+
'media',
|
|
64
|
+
'for',
|
|
65
|
+
'at-root',
|
|
66
|
+
'tailwind',
|
|
67
|
+
'apply',
|
|
68
|
+
'variants',
|
|
69
|
+
'responsive',
|
|
70
|
+
'screen',
|
|
71
|
+
'function',
|
|
72
|
+
'each',
|
|
73
|
+
'use',
|
|
74
|
+
'forward',
|
|
75
|
+
'return',
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
'font-family-no-missing-generic-family-keyword': null,
|
|
80
|
+
'function-no-unknown': null,
|
|
81
|
+
'import-notation': null,
|
|
82
|
+
'media-feature-range-notation': null,
|
|
83
|
+
'named-grid-areas-no-invalid': null,
|
|
84
|
+
'no-descending-specificity': null,
|
|
85
|
+
'no-empty-source': null,
|
|
86
|
+
'prettier/prettier': true,
|
|
87
|
+
'rule-empty-line-before': [
|
|
88
|
+
'always',
|
|
89
|
+
{
|
|
90
|
+
ignore: ['after-comment', 'first-nested'],
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
'scss/at-rule-no-unknown': [
|
|
94
|
+
true,
|
|
95
|
+
{
|
|
96
|
+
ignoreAtRules: [
|
|
97
|
+
'extends',
|
|
98
|
+
'ignores',
|
|
99
|
+
'include',
|
|
100
|
+
'mixin',
|
|
101
|
+
'if',
|
|
102
|
+
'else',
|
|
103
|
+
'media',
|
|
104
|
+
'for',
|
|
105
|
+
'at-root',
|
|
106
|
+
'tailwind',
|
|
107
|
+
'apply',
|
|
108
|
+
'variants',
|
|
109
|
+
'responsive',
|
|
110
|
+
'screen',
|
|
111
|
+
'function',
|
|
112
|
+
'each',
|
|
113
|
+
'use',
|
|
114
|
+
'forward',
|
|
115
|
+
'return',
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
'scss/operator-no-newline-after': null,
|
|
120
|
+
'selector-class-pattern':
|
|
121
|
+
'^(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:[.+])?$',
|
|
122
|
+
'selector-not-notation': null,
|
|
123
|
+
}
|
|
124
|
+
}
|
package/package.json
CHANGED
|
@@ -1,45 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
2
|
+
"name": "@dt-frames/stylelint-config",
|
|
3
|
+
"version": "4.0.4",
|
|
4
|
+
"description": "关于样式格式化的配置封装",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"author": "",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"default": "./index.mjs",
|
|
10
|
+
"import": "./index.mjs"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"main": "./index.mjs",
|
|
14
|
+
"module": "./index.mjs",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"dt-frames",
|
|
17
|
+
"stylelint-config"
|
|
18
|
+
],
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"index.mjs"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public",
|
|
25
|
+
"registry": "https://registry.npmjs.org/"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"postcss-html": "^1.8.0",
|
|
29
|
+
"postcss-scss": "^4.0.9",
|
|
30
|
+
"prettier": "^3.5.3",
|
|
31
|
+
"stylelint": "^16.23.1",
|
|
32
|
+
"stylelint-config-recommended": "^17.0.0",
|
|
33
|
+
"stylelint-config-recommended-scss": "^16.0.0",
|
|
34
|
+
"stylelint-order": "^7.0.0",
|
|
35
|
+
"stylelint-prettier": "^5.0.3"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@stylistic/stylelint-plugin": "^4.0.0",
|
|
39
|
+
"stylelint-config-recess-order": "^7.3.0",
|
|
40
|
+
"stylelint-config-recommended-vue": "^1.1.0",
|
|
41
|
+
"stylelint-config-standard": "^37.0.0",
|
|
42
|
+
"stylelint-scss": "^6.12.1"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "pnpm unbuild"
|
|
46
|
+
}
|
|
47
|
+
}
|