mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +00:00
[ci] Optimize ESLint performance with caching and generated file exclusion
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -14,7 +14,10 @@ export default [
|
|||||||
ignores: [
|
ignores: [
|
||||||
'src/scripts/*',
|
'src/scripts/*',
|
||||||
'src/extensions/core/*',
|
'src/extensions/core/*',
|
||||||
'src/types/vue-shim.d.ts'
|
'src/types/vue-shim.d.ts',
|
||||||
|
// Generated files that don't need linting
|
||||||
|
'src/types/comfyRegistryTypes.ts',
|
||||||
|
'src/types/generatedManagerTypes.ts'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,8 +21,9 @@
|
|||||||
"test:component": "vitest run src/components/",
|
"test:component": "vitest run src/components/",
|
||||||
"prepare": "husky || true",
|
"prepare": "husky || true",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"lint": "eslint src",
|
"lint": "eslint src --cache",
|
||||||
"lint:fix": "eslint src --fix",
|
"lint:fix": "eslint src --cache --fix",
|
||||||
|
"lint:no-cache": "eslint src",
|
||||||
"knip": "knip",
|
"knip": "knip",
|
||||||
"locale": "lobe-i18n locale",
|
"locale": "lobe-i18n locale",
|
||||||
"collect-i18n": "playwright test --config=playwright.i18n.config.ts",
|
"collect-i18n": "playwright test --config=playwright.i18n.config.ts",
|
||||||
|
|||||||
Reference in New Issue
Block a user