diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 7491306..f29549a 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -103,6 +103,7 @@ entry: cspell-cli language: node types: [text] + additional_dependencies: ["--globalconfig=\"./.npmrc\""] args: - --no-must-find-files - --no-progress diff --git a/hooks/cspell/index.js b/hooks/cspell/index.js index 323a5c9..f23cc70 100644 --- a/hooks/cspell/index.js +++ b/hooks/cspell/index.js @@ -1,3 +1,4 @@ #!/usr/bin/env node +process.env.NPM_CONFIG_GLOBALCONFIG = "../../.npmrc"; import "cspell/bin";