mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 10:59:53 +00:00
## Summary Applied stylelint auto-fixes and resolved manual CSS issues across 25 files to achieve full compliance with stylelint rules. ## Changes - **What**: Auto-fixed 68 CSS issues (legacy color functions, font-weight keywords, shorthand properties, pseudo-element notation) and manually resolved 6 remaining issues (duplicate selectors, vendor prefix duplicates, font fallbacks, Vue v-bind whitelisting) - **Config**: Disabled `no-descending-specificity` rule (43 warnings require architectural CSS refactor) ## Review Focus Verify no visual regressions from modernized CSS syntax: - Modern [color function notation](https://www.w3.org/TR/css-color-4/#funcdef-rgb): `rgba(0, 0, 0, 0.5)` → `rgb(0 0 0 / 50%)` - Numeric font weights: `bold`/`normal` → `700`/`400` - Pseudo-element double colons: `:before` → `::before ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5940-apply-stylelint-auto-fixes-2846d73d365081ee8031c212a69a4bd4) by [Unito](https://www.unito.io) --------- Co-authored-by: DrJKL <DrJKL0424@gmail.com>
75 lines
1.8 KiB
JSON
75 lines
1.8 KiB
JSON
{
|
|
"extends": [],
|
|
"overrides": [
|
|
{
|
|
"files": ["*.vue", "**/*.vue"],
|
|
"customSyntax": "postcss-html"
|
|
}
|
|
],
|
|
"rules": {
|
|
"import-notation": "string",
|
|
"font-family-no-missing-generic-family-keyword": true,
|
|
"declaration-property-value-no-unknown": [
|
|
true,
|
|
{
|
|
"ignoreProperties": {
|
|
"speak": ["none"],
|
|
"app-region": ["drag", "no-drag"],
|
|
"/^(width|height)$/": ["/^v-bind/"]
|
|
}
|
|
}
|
|
],
|
|
"color-function-notation": "modern",
|
|
"shorthand-property-no-redundant-values": true,
|
|
"selector-pseudo-element-colon-notation": "double",
|
|
"no-duplicate-selectors": true,
|
|
"font-weight-notation": "numeric",
|
|
"length-zero-no-unit": true,
|
|
"color-no-invalid-hex": true,
|
|
"number-max-precision": 4,
|
|
"property-no-vendor-prefix": true,
|
|
"value-no-vendor-prefix": true,
|
|
"selector-no-vendor-prefix": true,
|
|
"media-feature-name-no-vendor-prefix": true,
|
|
"selector-max-universal": 1,
|
|
"selector-max-type": 2,
|
|
"declaration-block-no-duplicate-properties": true,
|
|
"block-no-empty": true,
|
|
"no-descending-specificity": null,
|
|
"no-duplicate-at-import-rules": true,
|
|
"at-rule-no-unknown": [
|
|
true,
|
|
{
|
|
"ignoreAtRules": [
|
|
"tailwind",
|
|
"apply",
|
|
"layer",
|
|
"config",
|
|
"theme",
|
|
"reference",
|
|
"plugin",
|
|
"custom-variant",
|
|
"utility"
|
|
]
|
|
}
|
|
],
|
|
"function-no-unknown": [
|
|
true,
|
|
{
|
|
"ignoreFunctions": [
|
|
"theme",
|
|
"v-bind"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"ignoreFiles": [
|
|
"node_modules/**",
|
|
"dist/**",
|
|
"playwright-report/**",
|
|
"public/**",
|
|
"src/lib/litegraph/**"
|
|
],
|
|
"files": ["**/*.css", "**/*.vue"]
|
|
}
|