Skip to content

Commit

Permalink
Enable eslint caching
Browse files Browse the repository at this point in the history
This makes eslint ~5x faster when run locally.
  • Loading branch information
ssbarnea committed Nov 7, 2024
1 parent b54e651 commit 1fd208b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ test/testFixtures/diagnostics/yaml/invalid_yaml.yml
packages/ansible-language-server/test/fixtures/diagnostics/invalid_yaml.yml
!media/
docs/als/settings.md
.eslintcache
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ repos:
name: eslint
entry: npx eslint
language: system
verbose: true # do not remove, as this allows warnings to be displayed on GHA
args:
- --no-warn-ignored
- --color
- --format=gha
- --fix
# - --max-warnings
# - "0"
- --cache
- --max-warnings
- "0"
pass_filenames: false
files: \.m?[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
Expand Down

0 comments on commit 1fd208b

Please sign in to comment.