cli icon indicating copy to clipboard operation
cli copied to clipboard

Make `eslintConfigFromNxProjects` more flexible

Open getlarge opened this issue 1 year ago • 0 comments

User story

Thanks to @matejchalk, i was able to integrate code-pushup in my Nx workspace. But i had to tweak some Nx project configuration to make it work. Since i am using a workspace project at the root of the repository, i had to create a dummy lint target to avoid inadvertently running all lint targets twice (when running nx run-many --targets=lint for instance). It seems that when using eslintConfigFromNxProjects, ALL projects should contain an ESlint configuration (options.eslintConfig) when a lint target is present.

As a user, i would like to filter out some projects from eslintConfigFromNxProjects.

Acceptance criteria

  • [ ] Update eslintConfigFromNxProjects interface to receive { options: { exclude?: string[] } }.
  • [ ] Update implementation to support filtering from project graph

Implementation details

No response

getlarge avatar Feb 13 '24 07:02 getlarge