@jhqn/stylelint-config 0.4.3 → 0.5.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/index.js +15 -9
- package/package.json +18 -18
package/index.js
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
|
+
const stylisticRules = require('./stylistic-rules')
|
|
2
|
+
|
|
1
3
|
module.exports = {
|
|
2
4
|
extends: [
|
|
3
5
|
'stylelint-config-recess-order',
|
|
4
6
|
'stylelint-config-recommended',
|
|
5
7
|
'stylelint-config-standard',
|
|
6
8
|
'stylelint-config-standard-scss',
|
|
7
|
-
'stylelint-
|
|
9
|
+
'stylelint-config-css-modules',
|
|
8
10
|
],
|
|
9
11
|
plugins: [
|
|
10
|
-
'stylelint-css-modules',
|
|
11
12
|
'stylelint-scss',
|
|
12
13
|
'stylelint-declaration-block-no-ignored-properties',
|
|
13
14
|
'stylelint-no-unsupported-browser-features',
|
|
15
|
+
'@stylistic/stylelint-plugin',
|
|
14
16
|
],
|
|
15
17
|
rules: {
|
|
16
|
-
'max-line-length': null,
|
|
17
18
|
'at-rule-no-unknown': null,
|
|
18
19
|
'scss/at-rule-no-unknown': true,
|
|
19
20
|
'scss/at-import-partial-extension': 'always',
|
|
20
21
|
'scss/at-import-partial-extension-whitelist': ['scss'],
|
|
21
|
-
'css-modules/composed-class-names': true,
|
|
22
|
-
'css-modules/css-variables': null,
|
|
23
22
|
'plugin/declaration-block-no-ignored-properties': true,
|
|
24
23
|
'no-descending-specificity': [
|
|
25
24
|
true,
|
|
@@ -43,10 +42,17 @@ module.exports = {
|
|
|
43
42
|
'property-no-vendor-prefix': null,
|
|
44
43
|
// kebab-case(组件库常用 or snake_case(方便使用css modules)
|
|
45
44
|
'selector-class-pattern': '^([a-z][a-z0-9]*)((_|__|-|--)[a-z0-9]+)*$',
|
|
46
|
-
'indentation': [2, { baseIndentLevel: 1 }],
|
|
47
45
|
'declaration-property-value-no-unknown': true,
|
|
46
|
+
...stylisticRules,
|
|
48
47
|
},
|
|
49
48
|
overrides: [
|
|
49
|
+
{
|
|
50
|
+
files: ['**/*.{js,jsx,ts,tsx,cjs,mjs}'],
|
|
51
|
+
rules: {
|
|
52
|
+
'@stylistic/no-empty-first-line': null,
|
|
53
|
+
'@stylistic/string-quotes': 'single',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
50
56
|
{
|
|
51
57
|
files: ['*.vue', '**/*.vue'],
|
|
52
58
|
extends: [
|
|
@@ -62,11 +68,11 @@ module.exports = {
|
|
|
62
68
|
ignorePseudoClasses: ['global', 'deep'],
|
|
63
69
|
},
|
|
64
70
|
],
|
|
65
|
-
|
|
66
|
-
'declaration-block-trailing-semicolon': null,
|
|
67
|
-
'stylistic/declaration-block-trailing-semicolon': null,
|
|
71
|
+
'@stylistic/declaration-block-trailing-semicolon': null,
|
|
68
72
|
},
|
|
69
73
|
},
|
|
70
74
|
],
|
|
71
75
|
ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
|
|
76
|
+
allowEmptyInput: true,
|
|
77
|
+
cache: true,
|
|
72
78
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jhqn/stylelint-config",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"packageManager": "pnpm@8.
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"packageManager": "pnpm@8.12.1",
|
|
5
5
|
"description": "jhqn's stylelint config",
|
|
6
6
|
"author": "jade-gjz",
|
|
7
7
|
"license": "MIT",
|
|
@@ -22,31 +22,31 @@
|
|
|
22
22
|
"index.js"
|
|
23
23
|
],
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"stylelint": "^
|
|
25
|
+
"stylelint": "^16.0.2"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
+
"@stylistic/stylelint-plugin": "^2.0.0",
|
|
28
29
|
"postcss-html": "^1.5.0",
|
|
29
|
-
"stylelint-config-
|
|
30
|
-
"stylelint-config-
|
|
30
|
+
"stylelint-config-css-modules": "^4.4.0",
|
|
31
|
+
"stylelint-config-recess-order": "^4.4.0",
|
|
32
|
+
"stylelint-config-recommended": "^14.0.0",
|
|
31
33
|
"stylelint-config-recommended-vue": "^1.5.0",
|
|
32
|
-
"stylelint-config-standard": "^
|
|
33
|
-
"stylelint-config-standard-scss": "^
|
|
34
|
+
"stylelint-config-standard": "^35.0.0",
|
|
35
|
+
"stylelint-config-standard-scss": "^12.0.0",
|
|
34
36
|
"stylelint-config-standard-vue": "^1.0.0",
|
|
35
|
-
"stylelint-css-modules": "^1.2.2",
|
|
36
37
|
"stylelint-declaration-block-no-ignored-properties": "^2.7.0",
|
|
37
38
|
"stylelint-no-unsupported-browser-features": "^7.0.0",
|
|
38
|
-
"stylelint-scss": "^
|
|
39
|
-
"stylelint-stylistic": "^0.4.3"
|
|
39
|
+
"stylelint-scss": "^6.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@jhqn/eslint-config-vue": "^0.6.
|
|
43
|
-
"bumpp": "^9.
|
|
44
|
-
"conventional-changelog-cli": "^
|
|
45
|
-
"eslint": "^8.
|
|
46
|
-
"sass": "^1.
|
|
47
|
-
"stylelint": "^
|
|
48
|
-
"typescript": "^5.
|
|
49
|
-
"vue": "^3.3.
|
|
42
|
+
"@jhqn/eslint-config-vue": "^0.6.3",
|
|
43
|
+
"bumpp": "^9.2.1",
|
|
44
|
+
"conventional-changelog-cli": "^4.1.0",
|
|
45
|
+
"eslint": "^8.56.0",
|
|
46
|
+
"sass": "^1.69.5",
|
|
47
|
+
"stylelint": "^16.0.2",
|
|
48
|
+
"typescript": "^5.3.3",
|
|
49
|
+
"vue": "^3.3.13"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"lint": "eslint .",
|