paleite / eslint-plugin-diff

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

Can you add a parameter to specify certain rules to not validate within the diff scope? #58

Open Crazydogs opened 9 months ago

Crazydogs commented 9 months ago

In my case, when linting with the react-hooks/exhaustive-deps rule, if I only modify the code within the function of the useCallback hook without modifying the dependencies array, this error should be excluded.

Can you provide a method to achieve a similar effect as shown below?

https://github.com/paleite/eslint-plugin-diff/compare/main...Crazydogs:eslint-plugin-diff:patch-1

image