mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 07:30:11 +00:00
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:
2
.github/workflows/update-manager-types.yaml
vendored
2
.github/workflows/update-manager-types.yaml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/update-registry-types.yaml
vendored
2
.github/workflows/update-registry-types.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user