git-hooks.nix
git-hooks.nix copied to clipboard
How to use ESLint plugins?
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