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>
This commit is contained in:
bymyself
2025-08-11 16:50:15 -07:00
parent 8852563f40
commit a6691aa00f
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ jobs:
- name: Lint generated types
run: |
echo "Linting generated ComfyUI-Manager API types..."
npx eslint --no-ignore ./src/types/generatedManagerTypes.ts
npx eslint --no-ignore --fix ./src/types/generatedManagerTypes.ts
- name: Check for changes
id: check-changes

View File

@@ -64,7 +64,7 @@ jobs:
- name: Lint generated types
run: |
echo "Linting generated Comfy Registry API types..."
npx eslint --no-ignore ./src/types/comfyRegistryTypes.ts
npx eslint --no-ignore --fix ./src/types/comfyRegistryTypes.ts
- name: Check for changes
id: check-changes