diff --git a/.lintstagedrc.json b/.lintstagedrc.json index e626b461c..10899e59d 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,4 +1,4 @@ { "!(docs/**/*)*.{ts,js,json,html,md,mts}": ["eslint --fix", "prettier --write"], - "cSpell.json": ["ts-node-esm bin/checkCSpell.ts"] + "cSpell.json": ["ts-node-esm bin/fixCSpell.ts"] } diff --git a/bin/checkCSpell.ts b/bin/fixCSpell.ts similarity index 100% rename from bin/checkCSpell.ts rename to bin/fixCSpell.ts diff --git a/package.json b/package.json index 15bfcbada..20c8acba4 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "dev": "concurrently \"pnpm build:vite --watch\" \"ts-node-esm .vite/server.ts\"", "release": "pnpm build", "lint": "eslint --cache --ignore-path .gitignore . && pnpm --filter mermaid run lint:jison && prettier --check .", - "lint:fix": "eslint --fix --ignore-path .gitignore . && prettier --write .", + "lint:fix": "eslint --fix --ignore-path .gitignore . && prettier --write . && ts-node-esm bin/fixCSpell.ts", "cypress": "cypress run", "cypress:open": "cypress open", "e2e": "start-server-and-test dev http://localhost:9000/ cypress",