Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable ESLint for webpack.config.js file on Visual Studio Code

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)?

like image 332
Guilherme Lemmi Avatar asked Nov 23 '25 03:11

Guilherme Lemmi


1 Answers

Add these lines to the VSCode settings.json:

"eslint.options": {
    "ignorePattern": "webpack.config.js",
}
like image 92
Alex Avatar answered Nov 24 '25 22:11

Alex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!