@nice-move/stylelint-config 0.10.19 → 0.10.21
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.cjs +38 -31
- package/lib/utils.cjs +5 -2
- package/package.json +4 -4
package/index.cjs
CHANGED
|
@@ -1,36 +1,45 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const { isMiniApp } = require('./lib/utils.cjs');
|
|
3
|
+
const { isMiniApp, tailwind } = require('./lib/utils.cjs');
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
reportNeedlessDisables: true,
|
|
7
7
|
reportInvalidScopeDisables: true,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
{ severity: 'warning' },
|
|
28
|
-
],
|
|
29
|
-
'plugin/no-unresolved-module': {
|
|
30
|
-
modules: ['node_modules'],
|
|
31
|
-
},
|
|
32
|
-
},
|
|
8
|
+
extends: [
|
|
9
|
+
require.resolve('stylelint-config-standard'),
|
|
10
|
+
require.resolve('./lib/ignore.cjs'),
|
|
11
|
+
require.resolve('./lib/base.cjs'),
|
|
12
|
+
],
|
|
13
|
+
plugins: [
|
|
14
|
+
'stylelint-declaration-block-no-ignored-properties',
|
|
15
|
+
'stylelint-suitcss',
|
|
16
|
+
'stylelint-no-unresolved-module',
|
|
17
|
+
],
|
|
18
|
+
rules: {
|
|
19
|
+
'suitcss/root-no-standard-properties': true,
|
|
20
|
+
'suitcss/selector-root-no-composition': true,
|
|
21
|
+
'plugin/declaration-block-no-ignored-properties': [
|
|
22
|
+
true,
|
|
23
|
+
{ severity: 'warning' },
|
|
24
|
+
],
|
|
25
|
+
'plugin/no-unresolved-module': {
|
|
26
|
+
modules: ['node_modules'],
|
|
33
27
|
},
|
|
28
|
+
...(tailwind
|
|
29
|
+
? {
|
|
30
|
+
'at-rule-no-deprecated': [true, { ignoreAtRules: ['apply'] }],
|
|
31
|
+
'declaration-property-value-no-unknown': [
|
|
32
|
+
true,
|
|
33
|
+
{
|
|
34
|
+
ignoreProperties: {
|
|
35
|
+
'/.+/': /theme\([.\w]+\)/.toString(),
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
}
|
|
40
|
+
: undefined),
|
|
41
|
+
},
|
|
42
|
+
overrides: [
|
|
34
43
|
{
|
|
35
44
|
files: ['**/*.scss'],
|
|
36
45
|
customSyntax: require('postcss-scss'),
|
|
@@ -87,14 +96,12 @@ module.exports = {
|
|
|
87
96
|
true,
|
|
88
97
|
{
|
|
89
98
|
ignoreProperties: {
|
|
90
|
-
'/.+/':
|
|
99
|
+
'/.+/': tailwind
|
|
100
|
+
? /\drpx|theme\([.\w]+\)/.toString()
|
|
101
|
+
: /\drpx/.toString(),
|
|
91
102
|
},
|
|
92
103
|
},
|
|
93
104
|
],
|
|
94
|
-
'at-rule-no-deprecated': [
|
|
95
|
-
true,
|
|
96
|
-
{ ignoreAtRules: ['apply', 'custom-variant', 'source'] },
|
|
97
|
-
],
|
|
98
105
|
'selector-type-no-unknown': [true, { ignoreTypes: ['page'] }],
|
|
99
106
|
'unit-no-unknown': [true, { ignoreUnits: ['rpx'] }],
|
|
100
107
|
'selector-disallowed-list': ['*', /^(?!page)[A-Za-z]+$/, /[/\\]/],
|
package/lib/utils.cjs
CHANGED
|
@@ -16,12 +16,14 @@ const AT_RULE_NO_UNKNOWN = tailwind
|
|
|
16
16
|
true,
|
|
17
17
|
{
|
|
18
18
|
ignoreAtRules: [
|
|
19
|
-
'tailwind',
|
|
20
19
|
'apply',
|
|
20
|
+
'custom-variant',
|
|
21
21
|
'layer',
|
|
22
|
-
'variants',
|
|
23
22
|
'responsive',
|
|
24
23
|
'screen',
|
|
24
|
+
'source',
|
|
25
|
+
'tailwind',
|
|
26
|
+
'variants',
|
|
25
27
|
],
|
|
26
28
|
},
|
|
27
29
|
]
|
|
@@ -33,6 +35,7 @@ const FUNCTION_NO_UNKNOWN = tailwind
|
|
|
33
35
|
|
|
34
36
|
module.exports = {
|
|
35
37
|
isMiniApp,
|
|
38
|
+
tailwind,
|
|
36
39
|
AT_RULE_NO_UNKNOWN,
|
|
37
40
|
FUNCTION_NO_UNKNOWN,
|
|
38
41
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice-move/stylelint-config",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.21",
|
|
4
4
|
"description": "A `stylelint` config created by personal preferences",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"postcss-markdown": "^1.3.0",
|
|
37
37
|
"postcss-scss": "^4.0.9",
|
|
38
38
|
"settingz": "^0.2.0",
|
|
39
|
-
"stylelint-config-standard": "^
|
|
39
|
+
"stylelint-config-standard": "^39.0.0",
|
|
40
40
|
"stylelint-declaration-block-no-ignored-properties": "^2.8.0",
|
|
41
41
|
"stylelint-no-unresolved-module": "^2.3.0",
|
|
42
42
|
"stylelint-scss": "^6.12.1",
|
|
43
43
|
"stylelint-suitcss": "^5.0.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"stylelint": "^16.
|
|
46
|
+
"stylelint": "^16.23.0"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
|
-
"node": "^
|
|
49
|
+
"node": "^22.18.0 || ^24.0.0"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public",
|