Skip to content

Commit

Permalink
Enable eslint caching (#1647)
Browse files Browse the repository at this point in the history
Co-authored-by: alisonlhart <alhart@redhat.com>
  • Loading branch information
ssbarnea and alisonlhart authored Nov 8, 2024
1 parent b54e651 commit 6cb4894
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .config/dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ envdir
envrc
eqeqeq
esbenp
eslintcache
extest
extester
fgierlinger
Expand Down
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 6cb4894

Please sign in to comment.