Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Error generated when pre-commit hook triggers on a javaScript file
Error: Cannot find module 'eslint-config-airbnb'
Referenced from: /home/dev-dan/websites/qc-website/querycache-website/.eslintrc.json
    at ModuleResolver.resolve (/home/dev-dan/.cache/pre-commit/repo87bozx_4/node_env-system/lib/node_modules/eslint/lib/util/module-resolver.js:74:19)
    at resolve (/home/dev-dan/.cache/pre-commit/repo87bozx_4/node_env-system/lib/node_modules/eslint/lib/config/config-file.js:471:25)
    at load (/home/dev-dan/.cache/pre-commit/repo87bozx_4/node_env-system/lib/node_modules/eslint/lib/config/config-file.js:542:26)
    at /home/dev-dan/.cache/pre-commit/repo87bozx_4/node_env-system/lib/node_modules/eslint/lib/config/config-file.js:421:36
    at Array.reduceRight (<anonymous>)
    at applyExtends (/home/dev-dan/.cache/pre-commit/repo87bozx_4/node_env-system/lib/node_modules/eslint/lib/config/config-file.js:403:28)
    at loadFromDisk (/home/dev-dan/.cache/pre-commit/repo87bozx_4/node_env-system/lib/node_modules/eslint/lib/config/config-file.js:514:22)
    at Object.load (/home/dev-dan/.cache/pre-commit/repo87bozx_4/node_env-system/lib/node_modules/eslint/lib/config/config-file.js:550:20)
    at Config.getLocalConfigHierarchy (/home/dev-dan/.cache/pre-commit/repo87bozx_4/node_env-system/lib/node_modules/eslint/lib/config.js:228:44)
    at Config.getConfigHierarchy (/home/dev-dan/.cache/pre-commit/repo87bozx_4/node_env-system/lib/node_modules/eslint/lib/config.js:180:43)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment