paleite / eslint-plugin-diff

Run ESLint on your changes only
https://npm.im/eslint-plugin-diff
MIT License
172 stars 13 forks source link

Keep tracked files instead of refreshing list of untracked files #61

Open thatsmydoing opened 6 months ago

thatsmydoing commented 6 months ago

https://github.com/paleite/eslint-plugin-diff/pull/27 introduced a massive performance regression with the recommended diff/diff setup. It effectively refreshes the list of untracked files for every unchanged file in the project.

Instead of constantly refreshing the tracked file list, it's better to get the list of tracked files once and we can simply check that a file is not in the list.

TylerNRobertson commented 2 months ago

Yeah noticing this as well, it makes the initial lint take really long to run, even when there is nothing to lint