support linting on file basis not on project level ( not like affected lint currently works ) #28095
demike
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To my understanding eslint works on single files.
That means changing one file should result in linting only one file.
So when linting my change(s)
nx affected -t lint
comes into mind.But in the case of linting this might be a huge waste of resources.
Example:
Change an index.ts file in a (base) util library that is used by lets say 40 other libraries.
when running affected lint, affected finds the project the file belongs to and then marks the lib and all libs / apps
that depend on it for linting.
This means instead of linting 1 file, 41 libraries with potentially hundreds of files are linted
It would be really usefull if NX provides a way to do linting of affected files (not just projects)
Beta Was this translation helpful? Give feedback.
All reactions