Skip to content

Commit

Permalink
build: pre-commit ignore js for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric Halbronn committed May 16, 2024
1 parent 88c4a82 commit f0e4128
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ repos:
rev: v4.4.0
hooks:
- id: check-added-large-files
# temp - because of already built .js and .cjs files in dist/ while testing CI
exclude: .cjs$
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
Expand All @@ -30,17 +32,24 @@ repos:
- id: detect-private-key
- id: end-of-file-fixer
exclude_types: [svg]
exclude: ^patches/.*\.patch$|\.scope$
# XXX - restore that
# exclude: ^patches/.*\.patch$|\.scope$
# temp - because of already built .js and .cjs files in dist/ while testing CI
exclude: .js$
- id: fix-byte-order-marker
- id: forbid-submodules
- id: mixed-line-ending
# temp - because of already built .js and .cjs files in dist/ while testing CI
exclude: .js$
- id: trailing-whitespace
# temp - because of already built .js and .cjs files in dist/ while testing CI
exclude: ^data/fixtures/recorded/.*/[^/]*\.yml$|\.scope$|/generated/|^patches/|.js$
# Trailing whitespace breaks yaml files if you use a multiline string
# with a line that has trailing white space. Many of our recorded
# tests use strings with trailing white space to represent the final
# document contents. For example
# data/fixtures/recorded/languages/ruby/changeCondition.yml
exclude: ^data/fixtures/recorded/.*/[^/]*\.yml$|\.scope$|/generated/|^patches/
# exclude: ^data/fixtures/recorded/.*/[^/]*\.yml$|\.scope$|/generated/|^patches/
- repo: local
hooks:
- id: eslint
Expand All @@ -57,6 +66,8 @@ repos:
language: system
entry: pnpm exec prettier
args: [--write, --list-different, --ignore-unknown]
# temp - because of already built .js and .cjs files in dist/ while testing CI
exclude: .js$
- repo: local
hooks:
- id: format-recorded-tests
Expand Down

0 comments on commit f0e4128

Please sign in to comment.