git-hooks.nix icon indicating copy to clipboard operation
git-hooks.nix copied to clipboard

How to use ESLint plugins?

Open GGORG0 opened this issue 10 months ago • 0 comments

Because node_modules is in .gitignore, Nix doesn't copy it to the check environment. How can I use plugins within ESLint, which need to be loaded from node_modules?

Using ./node_modules/.bin/eslint as the binary path as per the docs doesn't work, as Nix says:

error: path '/nix/store/sq44vqyhwg2cmx2bk4m3i5jsa8hsfwxx-source/node_modules/.bin/eslint' does not exist

GGORG0 avatar Dec 19 '24 07:12 GGORG0