Commit 07bf082
committed
Scope format and lint scripts to ./src
`npm run format` and `npm run lint:eslint` traverse the whole repo by
default, which fails on systems where `test/environment/docker-dev-volumes`
contains directories owned by container users (e.g. solr/data) and is
not readable by the developer's UID. The pre-commit hook then aborts.
Narrowing the globs to `./src` keeps the formatters and linters running
on what we actually care about — application source — and lets the
pre-commit hook succeed regardless of how container volumes are
provisioned.1 parent f29ad91 commit 07bf082
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments