Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Why would .gitignore-ing node_modules/ in the .husky directory (where it isn't anyway) help? If you run the linting without Husky does it exclude node_modules/? Commented Oct 16, 2023 at 10:24
  • @jonrsharpe I do have node_modules specified in the .gitignore in the root directory of my project, but that doesn't seem to be helping in this case. Yes, the linter ignores node_modules without Husky. Commented Oct 16, 2023 at 10:34
  • And have you told ESLint to use that? It's not in the command Husky is running. Give a minimal reproducible example. Commented Oct 16, 2023 at 10:35