eslint-plugin-diff icon indicating copy to clipboard operation
eslint-plugin-diff copied to clipboard

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

Open Crazydogs opened this issue 2 years ago • 0 comments

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

Crazydogs avatar Nov 28 '23 07:11 Crazydogs