Eslint config file from codacy
Asked Answered
P

2

9

I'm using codacy to monitor code quality, but it would be nice to see what codacy will catch before a push. I see that it uses eslint and several other tools to decide what to catch. Is there a way to generate a .eslintrc config file from codacy? That way I can use this config in Webstorm and make any necessary changes before pushing any code.

Patrizia answered 18/2, 2016 at 19:49 Comment(0)
A
3

Unfortunately, it's not possible at this moment to generate a .eslintrc or JHint/JSLint file from Codacy itself. You can import those config files in Codacy but not export them.

Affettuoso answered 19/2, 2016 at 8:59 Comment(0)
A
5

2 years later Codacy still doesn't provide an export tool. So the best approach seems to be mimic Codacy configuration on ESLint demo (https://eslint.org/demo/) then click "Download .eslintrc.json file with this configuration" at the bottom of the page. You will need to check/uncheck rules again, but at least you will get a configuration file for future use.

Arawn answered 27/2, 2018 at 13:29 Comment(0)
A
3

Unfortunately, it's not possible at this moment to generate a .eslintrc or JHint/JSLint file from Codacy itself. You can import those config files in Codacy but not export them.

Affettuoso answered 19/2, 2016 at 8:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.