[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
This commit is contained in:
bymyself
2025-08-11 20:36:13 -07:00
parent a6691aa00f
commit b4788d7cb2
3 changed files with 5 additions and 2 deletions

View File

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

View File

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

3
.gitignore vendored
View File

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