@nice-move/stylelint-config 0.6.13 → 0.6.16
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 +10 -1
- package/lib/base.cjs +2 -1
- package/lib/scss.cjs +3 -29
- package/lib/utils.cjs +8 -1
- package/package.json +10 -7
package/index.cjs
CHANGED
|
@@ -11,9 +11,16 @@ module.exports = {
|
|
|
11
11
|
require.resolve('./lib/base.cjs'),
|
|
12
12
|
require.resolve('stylelint-config-prettier'),
|
|
13
13
|
],
|
|
14
|
-
plugins: [
|
|
14
|
+
plugins: [
|
|
15
|
+
'stylelint-declaration-block-no-ignored-properties',
|
|
16
|
+
'stylelint-suitcss',
|
|
17
|
+
],
|
|
15
18
|
rules: {
|
|
19
|
+
'suitcss/root-no-standard-properties': true,
|
|
20
|
+
'suitcss/selector-root-no-composition': true,
|
|
21
|
+
|
|
16
22
|
'plugin/declaration-block-no-ignored-properties': true,
|
|
23
|
+
|
|
17
24
|
...isMiniApp({
|
|
18
25
|
'selector-type-no-unknown': [true, { ignoreTypes: ['page'] }],
|
|
19
26
|
'unit-no-unknown': [true, { ignoreUnits: ['rpx'] }],
|
|
@@ -29,9 +36,11 @@ module.exports = {
|
|
|
29
36
|
require.resolve('./lib/scss.cjs'),
|
|
30
37
|
require.resolve('./lib/base.cjs'),
|
|
31
38
|
require.resolve('stylelint-config-prettier'),
|
|
39
|
+
require.resolve('stylelint-config-prettier-scss'),
|
|
32
40
|
],
|
|
33
41
|
rules: {
|
|
34
42
|
'at-rule-no-unknown': null,
|
|
43
|
+
'function-no-unknown': null,
|
|
35
44
|
},
|
|
36
45
|
},
|
|
37
46
|
{
|
package/lib/base.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const { AT_RULE_NO_UNKNOWN } = require('./utils.cjs');
|
|
3
|
+
const { FUNCTION_NO_UNKNOWN, AT_RULE_NO_UNKNOWN } = require('./utils.cjs');
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
rules: {
|
|
@@ -24,6 +24,7 @@ module.exports = {
|
|
|
24
24
|
},
|
|
25
25
|
],
|
|
26
26
|
'function-url-quotes': 'always',
|
|
27
|
+
'function-no-unknown': FUNCTION_NO_UNKNOWN,
|
|
27
28
|
'max-nesting-depth': [5, { severity: 'warning' }],
|
|
28
29
|
'no-duplicate-selectors': [true, { severity: 'warning' }],
|
|
29
30
|
'number-max-precision': [4, { severity: 'warning' }],
|
package/lib/scss.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const { AT_RULE_NO_UNKNOWN } = require('./utils.cjs');
|
|
3
|
+
const { AT_RULE_NO_UNKNOWN, FUNCTION_NO_UNKNOWN } = require('./utils.cjs');
|
|
4
4
|
|
|
5
5
|
const loose = {
|
|
6
6
|
severity: 'warning',
|
|
@@ -8,7 +8,6 @@ const loose = {
|
|
|
8
8
|
|
|
9
9
|
module.exports = {
|
|
10
10
|
rules: {
|
|
11
|
-
'scss/at-import-no-partial-leading-underscore': null,
|
|
12
11
|
'scss/at-import-partial-extension': 'always',
|
|
13
12
|
'scss/at-rule-no-unknown': AT_RULE_NO_UNKNOWN,
|
|
14
13
|
'scss/declaration-nested-properties': 'never',
|
|
@@ -21,35 +20,10 @@ module.exports = {
|
|
|
21
20
|
},
|
|
22
21
|
],
|
|
23
22
|
'scss/selector-no-redundant-nesting-selector': true,
|
|
23
|
+
'scss/function-no-unknown': FUNCTION_NO_UNKNOWN,
|
|
24
24
|
|
|
25
25
|
// off -------------
|
|
26
|
-
'scss/at-
|
|
27
|
-
'scss/at-mixin-pattern': null,
|
|
28
|
-
'scss/dollar-variable-pattern': null,
|
|
29
|
-
'scss/percent-placeholder-pattern': null,
|
|
30
|
-
|
|
31
|
-
'scss/double-slash-comment-whitespace-inside': null,
|
|
26
|
+
'scss/at-import-no-partial-leading-underscore': null,
|
|
32
27
|
'scss/declaration-nested-properties-no-divided-groups': null,
|
|
33
|
-
|
|
34
|
-
// prettier -----
|
|
35
|
-
'scss/at-else-closing-brace-space-after': null,
|
|
36
|
-
'scss/at-else-empty-line-before': null,
|
|
37
|
-
'scss/at-else-if-parentheses-space-before': null,
|
|
38
|
-
'scss/at-function-parentheses-space-before': null,
|
|
39
|
-
'scss/at-if-closing-brace-space-after': null,
|
|
40
|
-
'scss/at-mixin-parentheses-space-before': null,
|
|
41
|
-
'scss/dollar-variable-colon-space-after': null,
|
|
42
|
-
'scss/dollar-variable-colon-space-before': null,
|
|
43
|
-
'scss/operator-no-newline-after': null,
|
|
44
|
-
'scss/operator-no-newline-before': null,
|
|
45
|
-
'scss/operator-no-unspaced': null,
|
|
46
|
-
'scss/at-else-closing-brace-newline-after': null,
|
|
47
|
-
'scss/at-if-closing-brace-newline-after': null,
|
|
48
|
-
|
|
49
|
-
// garou -------------
|
|
50
|
-
'scss/double-slash-comment-empty-line-before': null,
|
|
51
|
-
'scss/dollar-variable-empty-line-before': null,
|
|
52
|
-
'scss/at-rule-conditional-no-parentheses': null,
|
|
53
|
-
'scss/at-mixin-argumentless-call-parentheses': null,
|
|
54
28
|
},
|
|
55
29
|
};
|
package/lib/utils.cjs
CHANGED
|
@@ -13,7 +13,9 @@ function isMiniApp(value) {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
const
|
|
16
|
+
const tailwind = haveLocalDependencies('tailwindcss');
|
|
17
|
+
|
|
18
|
+
const AT_RULE_NO_UNKNOWN = tailwind
|
|
17
19
|
? [
|
|
18
20
|
true,
|
|
19
21
|
{
|
|
@@ -29,7 +31,12 @@ const AT_RULE_NO_UNKNOWN = haveLocalDependencies('tailwindcss')
|
|
|
29
31
|
]
|
|
30
32
|
: true;
|
|
31
33
|
|
|
34
|
+
const FUNCTION_NO_UNKNOWN = tailwind
|
|
35
|
+
? [true, { ignoreFunctions: ['theme'] }]
|
|
36
|
+
: true;
|
|
37
|
+
|
|
32
38
|
module.exports = {
|
|
33
39
|
isMiniApp,
|
|
34
40
|
AT_RULE_NO_UNKNOWN,
|
|
41
|
+
FUNCTION_NO_UNKNOWN,
|
|
35
42
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice-move/stylelint-config",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.16",
|
|
4
4
|
"description": "A `stylelint` config created by personal preferences",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -29,18 +29,21 @@
|
|
|
29
29
|
},
|
|
30
30
|
"main": "index.cjs",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"postcss": "^8.4.
|
|
32
|
+
"postcss": "^8.4.12",
|
|
33
33
|
"postcss-html": "^1.3.0",
|
|
34
34
|
"postcss-less": "^6.0.0",
|
|
35
35
|
"postcss-markdown": "^1.2.0",
|
|
36
|
-
"settingz": "^0.1.
|
|
36
|
+
"settingz": "^0.1.7",
|
|
37
37
|
"stylelint-config-prettier": "^9.0.3",
|
|
38
|
-
"stylelint-config-
|
|
39
|
-
"stylelint-config-
|
|
40
|
-
"stylelint-
|
|
38
|
+
"stylelint-config-prettier-scss": "^0.0.1",
|
|
39
|
+
"stylelint-config-recommended-scss": "^6.0.0",
|
|
40
|
+
"stylelint-config-standard": "^25.0.0",
|
|
41
|
+
"stylelint-declaration-block-no-ignored-properties": "^2.5.0",
|
|
42
|
+
"stylelint-scss": "^4.2.0",
|
|
43
|
+
"stylelint-suitcss": "^5.0.0"
|
|
41
44
|
},
|
|
42
45
|
"peerDependencies": {
|
|
43
|
-
"stylelint": "^14.
|
|
46
|
+
"stylelint": "^14.6.0"
|
|
44
47
|
},
|
|
45
48
|
"engines": {
|
|
46
49
|
"node": "^12.22.0 || ^14.17.0 || >=16.13.0"
|