@icebreakers/stylelint-config 4.0.1 → 4.0.3
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/README.md +2 -4
- package/README.zh.md +2 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -57,9 +57,7 @@ export default createStylelintConfig({
|
|
|
57
57
|
units: ['upx'], // replace default list
|
|
58
58
|
addAtRules: ['tailwind'],
|
|
59
59
|
},
|
|
60
|
-
extends: [
|
|
61
|
-
'@acme/stylelint-config',
|
|
62
|
-
],
|
|
60
|
+
extends: ['@acme/stylelint-config'],
|
|
63
61
|
overrides: [
|
|
64
62
|
{
|
|
65
63
|
files: ['**/*.html'],
|
|
@@ -205,7 +203,7 @@ That adds these Tailwind-only rules on top of the default policy:
|
|
|
205
203
|
- `tailwindcss/no-import-directive`
|
|
206
204
|
- `tailwindcss/no-css-layer`
|
|
207
205
|
|
|
208
|
-
The underlying plugin supports both Tailwind CSS v3 and v4, and switches automatically based on the installed `tailwindcss` major version in the consuming project.
|
|
206
|
+
The underlying plugin supports both Tailwind CSS v3 and v4, and switches automatically based on the installed `tailwindcss` major version in the consuming project. UnoCSS rules discover the nearest `uno.config.*` or `unocss.config.*` and validate with the official generator. Runtime-dependent rules do not guess from class-name prefixes when the corresponding Tailwind runtime or UnoCSS config is unavailable, so semantic names such as `.table-and-form` and `.flex-layout` remain valid. If both runtimes recognize the same selector, the combined preset reports it once.
|
|
209
207
|
|
|
210
208
|
## Recommended Scripts
|
|
211
209
|
|
package/README.zh.md
CHANGED
|
@@ -55,9 +55,7 @@ export default createStylelintConfig({
|
|
|
55
55
|
units: ['upx'], // 覆盖默认单位白名单
|
|
56
56
|
addAtRules: ['tailwind'],
|
|
57
57
|
},
|
|
58
|
-
extends: [
|
|
59
|
-
'@acme/stylelint-config',
|
|
60
|
-
],
|
|
58
|
+
extends: ['@acme/stylelint-config'],
|
|
61
59
|
overrides: [
|
|
62
60
|
{
|
|
63
61
|
files: ['**/*.html'],
|
|
@@ -201,7 +199,7 @@ export default createStylelintConfig({
|
|
|
201
199
|
- `tailwindcss/no-import-directive`
|
|
202
200
|
- `tailwindcss/no-css-layer`
|
|
203
201
|
|
|
204
|
-
底层插件同时兼容 Tailwind CSS v3 和 v4,会根据使用方项目实际安装的 `tailwindcss` 主版本自动切换检测逻辑。
|
|
202
|
+
底层插件同时兼容 Tailwind CSS v3 和 v4,会根据使用方项目实际安装的 `tailwindcss` 主版本自动切换检测逻辑。UnoCSS 规则会查找最近的 `uno.config.*` 或 `unocss.config.*`,并通过官方 generator 校验。缺少对应 Tailwind runtime 或 UnoCSS 配置时,依赖运行时的规则不会根据类名前缀猜测,因此 `.table-and-form`、`.flex-layout` 等语义类名可以正常使用;两个 runtime 同时识别同一选择器时,双开 preset 也只报告一次。
|
|
205
203
|
|
|
206
204
|
## 推荐脚本
|
|
207
205
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/stylelint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.3",
|
|
5
5
|
"description": "Stylelint preset from Icebreaker's dev-configs",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"stylelint-config-recommended-vue": "^1.6.1",
|
|
53
53
|
"stylelint-config-standard-scss": "^17.0.0",
|
|
54
54
|
"stylelint-order": "^8.1.1",
|
|
55
|
-
"stylelint-plugin-tailwindcss": "2.0.
|
|
55
|
+
"stylelint-plugin-tailwindcss": "2.0.7"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public",
|