зеркало из https://github.com/mozilla/bedrock.git
Ensure pre-commit uses LTS version of node
Since Node 23 came out, fresh installs or updates to our pre-commit hooks will fail for eslint. This is because pre-commit will pick the very new version of Node, because we haven't told it not to. This change tells pre-commit to use the LTS version installed on the system, which will match what we use for main Bedrock
This commit is contained in:
Родитель
08b97b9711
Коммит
5fc9c8d17d
|
@ -8,6 +8,10 @@ exclude: >
|
|||
| bedrock/externalfiles/files_cache
|
||||
| git-repos
|
||||
)
|
||||
|
||||
default_language_version:
|
||||
node: lts
|
||||
|
||||
repos:
|
||||
# Note: hooks that add content must run before ones which check formatting, lint, etc
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
|
|
Загрузка…
Ссылка в новой задаче