Skip to content

Commit

Permalink
ci: only target js and ts files for eslint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Perrotta committed Oct 25, 2023
1 parent 8289bd5 commit 2275974
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,10 @@ repos:
entry: 'npx eslint --fix'
language: system
verbose: true
files: \.[jt]s$
types: [file]
types: [javascript, ts]
# ESLint may update code style (formatting) so keep prettier last.
- id: prettier
name: prettier
entry: 'npx prettier --write --ignore-unknown --check .'
language: system
files: \.[jt]s$
types: [text]

0 comments on commit 2275974

Please sign in to comment.