Compare commits

...

5 Commits

Author SHA1 Message Date
bymyself
41f5998f68 [ci] Add lint:fix:no-cache script for consistency
- Add lint:fix:no-cache to match the existing script naming pattern
- Update workflows to use lint:fix:no-cache instead of lint:no-cache -- --fix
2025-08-12 11:46:34 -07:00
bymyself
b4788d7cb2 [ci] Add lint:no-cache npm script and update workflows
- Add lint:no-cache script to package.json for linting without cache
- Update workflow files to use npm script instead of npx eslint --no-ignore
- Add .eslintcache to .gitignore
2025-08-11 22:11:55 -07:00
bymyself
a6691aa00f ci: Add auto-fix linting step for generated API types
- Add ESLint validation with auto-fix to registry and manager type generation workflows
- Ensures generated files meet code standards and automatically fixes any issues
- Uses --no-ignore --fix flags to lint and fix specific files despite ESLint ignore patterns

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2025-08-11 21:27:52 -07:00
bymyself
8852563f40 ci: Add linting step for generated API types
- Add ESLint validation to registry and manager type generation workflows
- Ensures generated files meet code standards even though they're ignored in regular lint runs
- Uses --no-ignore flag to lint specific files despite ESLint ignore patterns

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2025-08-11 21:27:52 -07:00
bymyself
dbdef501e4 [ci] Optimize ESLint performance with caching and generated file exclusion
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2025-08-11 21:27:52 -07:00
5 changed files with 21 additions and 3 deletions

View File

@@ -61,6 +61,11 @@ jobs:
exit 1
fi
- name: Lint generated types
run: |
echo "Linting generated ComfyUI-Manager API types..."
npm run lint:fix:no-cache -- ./src/types/generatedManagerTypes.ts
- name: Check for changes
id: check-changes
run: |

View File

@@ -61,6 +61,11 @@ jobs:
exit 1
fi
- name: Lint generated types
run: |
echo "Linting generated Comfy Registry API types..."
npm run lint:fix:no-cache -- ./src/types/comfyRegistryTypes.ts
- name: Check for changes
id: check-changes
run: |

3
.gitignore vendored
View File

@@ -7,6 +7,9 @@ yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
# ESLint cache
.eslintcache
node_modules
dist
dist-ssr

View File

@@ -14,7 +14,10 @@ export default [
ignores: [
'src/scripts/*',
'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'
]
},
{

View File

@@ -21,8 +21,10 @@
"test:component": "vitest run src/components/",
"prepare": "husky || true",
"preview": "vite preview",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"lint": "eslint src --cache",
"lint:fix": "eslint src --cache --fix",
"lint:no-cache": "eslint src",
"lint:fix:no-cache": "eslint src --fix",
"knip": "knip",
"locale": "lobe-i18n locale",
"collect-i18n": "playwright test --config=playwright.i18n.config.ts",