Ask Your Question
1

How can I prevent eslint from linting node_modules and stop receiving errors?

asked 2023-07-08 06:26:21 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-07-08 06:48:02 +0000

devzero gravatar image

You can add the following settings to your ESLint configuration file:

{
  "ignorePatterns": ["node_modules/"]
}

This tells ESLint to ignore all files and directories located in the node_modules directory. This way, your code will not be linted and you will no longer receive errors from files in this directory.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-08 06:26:21 +0000

Seen: 20 times

Last updated: Jul 08 '23