nrwl / nx-console

Nx Console is the user interface for Nx & Lerna.
https://nx.dev
MIT License
1.31k stars 213 forks source link

feat: Implemented VSCode lint problem matching #2277

Closed GrumpyMeow closed 20 hours ago

GrumpyMeow commented 1 month ago

With this PR i propose to have VSCode automatically take the output of NX-linting tasks and present the issues as VSCode problems. This PR implements the matching at:

A known issue is that the default ESLint-formatter which is used by NX will report with absolute filepaths. The absolute filepaths might not align with the current environment as NX-caching does not take the root-folder in account.

In the future this feature might be extended to also work for Stylelint and others.

@MaxKless Would you like to check this PR?

MaxKless commented 1 month ago

Can you elaborate on a few things?

We should probably have another solution that checks the executor or makes sure that the targets where created by the @nx/eslint plugin to make sure we don't cause any issues.