@nice-move/stylelint-config 0.10.29 → 0.11.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.
Files changed (3) hide show
  1. package/index.cjs +18 -17
  2. package/lib/utils.cjs +3 -1
  3. package/package.json +5 -5
package/index.cjs CHANGED
@@ -16,22 +16,20 @@ module.exports = {
16
16
  true,
17
17
  { severity: 'warning' },
18
18
  ],
19
- ...(tailwind
20
- ? {
21
- 'at-rule-no-deprecated': [
22
- true,
23
- { ignoreAtRules: ['apply', 'wv-keep-import'] },
24
- ],
25
- 'declaration-property-value-no-unknown': [
26
- true,
27
- {
28
- ignoreProperties: {
29
- '/.+/': /theme\([.\w]+\)/.toString(),
30
- },
31
- },
32
- ],
33
- }
34
- : undefined),
19
+ ...(tailwind && {
20
+ 'at-rule-no-deprecated': [
21
+ true,
22
+ { ignoreAtRules: ['apply', 'wv-keep-import'] },
23
+ ],
24
+ 'declaration-property-value-no-unknown': [
25
+ true,
26
+ {
27
+ ignoreProperties: {
28
+ '/.+/': /theme\([.\w]+\)/.toString(),
29
+ },
30
+ },
31
+ ],
32
+ }),
35
33
  },
36
34
  overrides: [
37
35
  {
@@ -97,7 +95,10 @@ module.exports = {
97
95
  },
98
96
  },
99
97
  ],
100
- 'selector-type-no-unknown': [true, { ignoreTypes: ['page'] }],
98
+ 'selector-type-no-unknown': [
99
+ true,
100
+ { ignoreTypes: ['page', 'wx-button'] },
101
+ ],
101
102
  'unit-no-unknown': [true, { ignoreUnits: ['rpx'] }],
102
103
  'selector-disallowed-list': ['*', /^(?!page)[A-Za-z]+$/, /[/\\]/],
103
104
  }) || {},
package/lib/utils.cjs CHANGED
@@ -15,15 +15,17 @@ const AT_RULE_NO_UNKNOWN = tailwind
15
15
  true,
16
16
  {
17
17
  ignoreAtRules: [
18
- 'wv-keep-import',
19
18
  'apply',
19
+ 'config',
20
20
  'custom-variant',
21
21
  'layer',
22
22
  'responsive',
23
23
  'screen',
24
24
  'source',
25
25
  'tailwind',
26
+ 'utility',
26
27
  'variants',
28
+ 'wv-keep-import',
27
29
  ],
28
30
  },
29
31
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-move/stylelint-config",
3
- "version": "0.10.29",
3
+ "version": "0.11.0",
4
4
  "description": "A `stylelint` config created by personal preferences",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -29,7 +29,7 @@
29
29
  "main": "index.cjs",
30
30
  "type": "commonjs",
31
31
  "dependencies": {
32
- "postcss": "^8.5.12",
32
+ "postcss": "^8.5.26",
33
33
  "postcss-html": "^1.8.1",
34
34
  "postcss-less": "^6.0.0",
35
35
  "postcss-markdown": "^1.3.1",
@@ -37,13 +37,13 @@
37
37
  "settingz": "^0.2.0",
38
38
  "stylelint-config-standard": "^40.0.0",
39
39
  "stylelint-declaration-block-no-ignored-properties": "^3.0.0",
40
- "stylelint-scss": "^7.0.0"
40
+ "stylelint-scss": "^7.2.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "stylelint": "^17.9.0"
43
+ "stylelint": "^17.14.1"
44
44
  },
45
45
  "engines": {
46
- "node": ">=24.0.0 || ^22.18.0"
46
+ "node": ">=24.0.0"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public",