Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code ESLint Extension: Use .gitignore as .eslintignore?

Is it possible to use .gitignore instead of .eslintignore, in the ESLint Visual Studio Code extension?

I know it is possible when using eslint from the command line:

eslint --ignore-path .gitignore

I am just wondering if it is possible to do the same in the ESLint VSC extension.

like image 637
Magnus Avatar asked Nov 28 '25 19:11

Magnus


1 Answers

You could add this setting on vsCode settings by adding:

"eslint.options": {
    "ignorePath": ".gitignore"
}

To your user settings.

like image 82
Wayrex Avatar answered Dec 01 '25 17:12

Wayrex



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!