Closed davehenton closed 6 years ago
I have the same issue with eslint-plugin-prettier
my .eslintrc
file contains :
"plugins": [
"prettier"
],
"extends": [
"plugin:prettier/recommended"
]
error report from https://codeclimate.com :
/usr/src/app/lib/validate_config.js:18
throw e;
^
TypeError: Cannot read property 'recommended' of undefined
Referenced from: /code/.eslintrc
at loadConfigFile (/usr/local/node_modules/eslint/lib/config/config-file.js:211:40)
at loadFromDisk (/usr/local/node_modules/eslint/lib/config/config-file.js:486:18)
at load (/usr/local/node_modules/eslint/lib/config/config-file.js:550:20)
at configExtends.reduceRight.e (/usr/local/node_modules/eslint/lib/config/config-file.js:421:36)
at Array.reduceRight (native)
at applyExtends (/usr/local/node_modules/eslint/lib/config/config-file.js:403:28)
at loadFromDisk (/usr/local/node_modules/eslint/lib/config/config-file.js:514:22)
at Object.load (/usr/local/node_modules/eslint/lib/config/config-file.js:550:20)
at Config.getLocalConfigHierarchy (/usr/local/node_modules/eslint/lib/config.js:228:44)
at Config.getConfigHierarchy (/usr/local/node_modules/eslint/lib/config.js:180:43)
@davehenton - I had a conversation with another customer and found that using channel: "eslint-4
resolves that type error 👍
@guillaumearm
Can you test that out with your repo and let us know what you get? To do that, you'll add the channel specification in your .codeclimate.yml:
Let me know if you need any help!
@efueger :
My actual .codeclimate.yml
file is : https://github.com/char0n/ramda-adjunct/blob/master/.codeclimate.yml
I succeed to get codeclimate working with eslint-plugin-prettier
in this PR : https://github.com/char0n/ramda-adjunct/pull/388
Thanks for the update @guillaumearm - glad you got that to work!
I'm working with a customer who is running into an error surrounding eslint-plugin-security
When the user has the following configuration in their
.eslintrc.json
:They run into the following error:
When the 'plugin:' flag is removed, they receive a different error:
This is an OSS repository, which you can check out here.
I'm not sure exactly what's going on here. Is it possible that it's related to 9771 or 9767?