2

I'm using Visual Studio Code with the vscode-eslint extension but I'm getting warnings for the webpack.config.js file itself, as shown below.

enter image description here

How can I disable the eslint verification for this file specifically and in my own workspace (that is, without adding an .eslintignore file to the repo that would affect other devs)?

2 Answers 2

9

Add these lines to the VSCode settings.json:

"eslint.options": {
    "ignorePattern": "webpack.config.js",
}
Sign up to request clarification or add additional context in comments.

Comments

0

create a file called ".eslintignore" under your root directoy and add the file you want to ignore in it.

cd /path/to/project

touch .eslintignore
echo "webpack.config.js" >> .eslintignore

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.