codefactor-io / codefactor

Automated static analysis for C#, C++, Java, CSS, JS, Go, Python, Ruby, TypeScript, Scala, CoffeeScript, Groovy, C, SCSS, Less, PHP, Dockerfile, Bash, YAML and Swift.
https://www.codefactor.io
62 stars 31 forks source link

Monorepo multiple eslint config #45

Closed alenkis closed 2 years ago

alenkis commented 2 years ago

Hi everyone!

We're using codefactor in our monorepo where we have project specific eslint config files. We're getting ...is not supported for all of them except for a single one (root level, least specific), but that introduces a lot of false negatives.

Does codefactor support multiple Eslint configs in a project?

cordis-dev commented 2 years ago

@alenkis thanks for reporting. I do not want to reveal any specifics since you have a private repository, but if you have ESLint config file which extends a private package then CodeFactor will not be able to use your config and will fallback to its own defaults. E.g.:

module.exports = {
  extends: ['@org/private-package/config'],
...

To resolve it, this extends entry should be either made public at https://www.npmjs.com or removed/updated. Please write to us directly at https://www.codefactor.io/contact if you'd like to provide specific details.

We do support multiple ESLint configs in a project.