@jhqn/stylelint-config 0.6.4 → 0.6.6
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 +11 -32
- package/package.json +10 -10
package/index.js
CHANGED
|
@@ -20,24 +20,9 @@ export default {
|
|
|
20
20
|
'scss/at-import-partial-extension': 'always',
|
|
21
21
|
'scss/at-import-partial-extension-whitelist': ['scss'],
|
|
22
22
|
'plugin/declaration-block-no-ignored-properties': true,
|
|
23
|
-
'no-descending-specificity': [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
severity: 'warning',
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
'plugin/no-unsupported-browser-features': [
|
|
30
|
-
true,
|
|
31
|
-
{
|
|
32
|
-
severity: 'warning',
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
'selector-pseudo-class-no-unknown': [
|
|
36
|
-
true,
|
|
37
|
-
{
|
|
38
|
-
ignorePseudoClasses: ['global', 'deep'],
|
|
39
|
-
},
|
|
40
|
-
],
|
|
23
|
+
'no-descending-specificity': [true, { severity: 'warning' }],
|
|
24
|
+
'plugin/no-unsupported-browser-features': [true, { ignorePartialSupport: true }],
|
|
25
|
+
'selector-pseudo-class-no-unknown': [true, { ignorePseudoClasses: ['global', 'deep'] }],
|
|
41
26
|
'value-no-vendor-prefix': null,
|
|
42
27
|
'property-no-vendor-prefix': null,
|
|
43
28
|
// kebab-case(组件库常用 or snake_case(方便使用css modules)
|
|
@@ -62,24 +47,18 @@ export default {
|
|
|
62
47
|
'stylelint-config-standard-vue/scss',
|
|
63
48
|
],
|
|
64
49
|
rules: {
|
|
65
|
-
'selector-pseudo-class-no-unknown': [
|
|
66
|
-
|
|
67
|
-
{
|
|
68
|
-
ignorePseudoClasses: ['global', 'deep'],
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
'declaration-property-value-no-unknown': [
|
|
72
|
-
true,
|
|
73
|
-
{
|
|
74
|
-
ignoreProperties: {
|
|
75
|
-
'/.+/': '/^v-bind(.+)$/',
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
],
|
|
50
|
+
'selector-pseudo-class-no-unknown': [true, { ignorePseudoClasses: ['global', 'deep'] }],
|
|
51
|
+
'declaration-property-value-no-unknown': [true, { ignoreProperties: { '/.+/': '/^v-bind(.+)$/' } }],
|
|
79
52
|
'@stylistic/declaration-block-trailing-semicolon': null,
|
|
80
53
|
'@stylistic/indentation': [2, { baseIndentLevel: 0 }],
|
|
81
54
|
},
|
|
82
55
|
},
|
|
56
|
+
{
|
|
57
|
+
files: ['**/*.scss', '**/*.sass', '**/*.less'],
|
|
58
|
+
rules: {
|
|
59
|
+
'plugin/no-unsupported-browser-features': [true, { ignore: ['css-nesting'] }],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
83
62
|
],
|
|
84
63
|
ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
|
|
85
64
|
allowEmptyInput: true,
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jhqn/stylelint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
5
|
-
"packageManager": "pnpm@8.
|
|
4
|
+
"version": "0.6.6",
|
|
5
|
+
"packageManager": "pnpm@8.15.1",
|
|
6
6
|
"description": "jhqn's stylelint config",
|
|
7
7
|
"author": "jade-gjz",
|
|
8
8
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@stylistic/stylelint-plugin": "^2.0.0",
|
|
31
|
-
"postcss-html": "^1.
|
|
31
|
+
"postcss-html": "^1.6.0",
|
|
32
32
|
"stylelint-config-css-modules": "^4.4.0",
|
|
33
33
|
"stylelint-config-recess-order": "^4.4.0",
|
|
34
34
|
"stylelint-config-recommended": "^14.0.0",
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
"stylelint-config-standard-scss": "^13.0.0",
|
|
38
38
|
"stylelint-config-standard-vue": "^1.0.0",
|
|
39
39
|
"stylelint-declaration-block-no-ignored-properties": "^2.8.0",
|
|
40
|
-
"stylelint-no-unsupported-browser-features": "^8.0.
|
|
41
|
-
"stylelint-scss": "^6.
|
|
40
|
+
"stylelint-no-unsupported-browser-features": "^8.0.1",
|
|
41
|
+
"stylelint-scss": "^6.1.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@jhqn/eslint-config-vue": "^0.6.
|
|
45
|
-
"bumpp": "^9.
|
|
44
|
+
"@jhqn/eslint-config-vue": "^0.6.11",
|
|
45
|
+
"bumpp": "^9.3.0",
|
|
46
46
|
"conventional-changelog-cli": "^4.1.0",
|
|
47
47
|
"eslint": "^8.56.0",
|
|
48
|
-
"sass": "^1.
|
|
49
|
-
"stylelint": "^16.
|
|
48
|
+
"sass": "^1.70.0",
|
|
49
|
+
"stylelint": "^16.2.0",
|
|
50
50
|
"typescript": "^5.3.3",
|
|
51
|
-
"vue": "^3.4.
|
|
51
|
+
"vue": "^3.4.15"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"lint": "eslint .",
|