Skip to content

Commit f75f982

Browse files
committed
✨ 添加 @btmuli/stylelint-plugin-color 插件并更新样式lint规则
1 parent 22aea89 commit f75f982

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.stylelintrc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ plugins:
88
- stylelint-scss
99
- stylelint-prettier
1010
- stylelint-order
11+
- "@btmuli/stylelint-plugin-color"
1112
rules:
1213
property-no-vendor-prefix:
1314
- true
1415
- ignoreProperties: [backdrop-filter]
1516
color-hex-length: long
1617
prettier/prettier: true
18+
color/format:
19+
- true
20+
- hexa

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
"xml-js": "^1.6.11"
104104
},
105105
"devDependencies": {
106+
"@btmuli/stylelint-plugin-color": "^0.1.0",
106107
"@eslint/eslintrc": "^3.3.1",
107108
"@eslint/js": "^9.26.0",
108109
"@tauri-apps/cli": "2.5.0",

pnpm-lock.yaml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)