-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4057 from aloisklink/chore/cache-eslint-in-pre-co…
…mmit Cache `eslint` in pre-commit script (makes `git commit` 5x faster)
- Loading branch information
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
export default { | ||
'!(docs/**/*)*.{ts,js,json,html,md,mts}': ['eslint --fix', 'prettier --write'], | ||
'!(docs/**/*)*.{ts,js,json,html,md,mts}': [ | ||
'eslint --cache --cache-strategy content --fix', | ||
// don't cache prettier yet, since we use `prettier-plugin-jsdoc`, | ||
// and prettier doesn't invalidate cache on plugin updates" | ||
// https://prettier.io/docs/en/cli.html#--cache | ||
'prettier --write', | ||
], | ||
'cSpell.json': ['ts-node-esm scripts/fixCSpell.ts'], | ||
'**/*.jison': ['pnpm -w run lint:jison'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters