idok / eslint-plugin

ESLint plugin for intellij
http://plugins.jetbrains.com/plugin/7494
MIT License
151 stars 18 forks source link

Unable to use extends #60

Open nickcodefresh opened 7 years ago

nickcodefresh commented 7 years ago

In my package.json I have

  "eslintConfig": {
    "extends": "airbnb"
}

but IntelliJ shows me the warning

/home/nick/node-v6.9.2-linux-x64/bin/node /home/nick/Documents/trunk/microservices/flex-thesaurus-service/node_modules/eslint/bin/eslint.js --format=checkstyle --stdin --stdin-filename AcceptanceTests/features/step_definitions/addThesauri.steps.js
Cannot find module 'eslint-config-airbnb'
Referenced from: /home/nick/Documents/trunk/microservices/flex-thesaurus-service/AcceptanceTests/package.json
Error: Cannot find module 'eslint-config-airbnb'
Referenced from: /home/nick/Documents/trunk/microservices/flex-thesaurus-service/AcceptanceTests/package.json
    at ModuleResolver.resolve (/home/nick/Documents/trunk/microservices/flex-thesaurus-service/node_modules/eslint/lib/util/module-resolver.js:74:19)
    at resolve (/home/nick/Documents/trunk/microservices/flex-thesaurus-service/node_modules/eslint/lib/config/config-file.js:478:33)
    at load (/home/nick/Documents/trunk/microservices/flex-thesaurus-service/node_modules/eslint/lib/config/config-file.js:495:26)
    at configExtends.reduceRight.e (/home/nick/Documents/trunk/microservices/flex-thesaurus-service/node_modules/eslint/lib/config/config-file.js:391:36)
    at Array.reduceRight (native)
    at applyExtends (/home/nick/Documents/trunk/microservices/flex-thesaurus-service/node_modules/eslint/lib/config/config-file.js:362:28)
    at Object.load (/home/nick/Documents/trunk/microservices/flex-thesaurus-service/node_modules/eslint/lib/config/config-file.js:529:22)
    at loadConfig (/home/nick/Documents/trunk/microservices/flex-thesaurus-service/node_modules/eslint/lib/config.js:63:33)
    at getLocalConfig (/home/nick/Documents/trunk/microservices/flex-thesaurus-service/node_modules/eslint/lib/config.js:130:29)
    at Config.getConfig (/home/nick/Documents/trunk/microservices/flex-thesaurus-service/node_modules/eslint/lib/config.js:259:26)

Process finished with exit code 1

Obviously I have eslint-config-airbnb in package.json, and I've also tried adding it globally.