在 Visual Studio 代码上为 webpack.config.js 文件禁用 ESLint
Disable ESLint for webpack.config.js file on Visual Studio Code
我正在使用带有 vscode-eslint
扩展名的 Visual Studio 代码,但我收到了 webpack.config.js
文件本身的警告,如下所示。
如何在我自己的工作区中专门禁用此文件的 eslint 验证(也就是说,不向回购添加 .eslintignore
文件会影响其他开发人员)?
将这些行添加到 VSCode settings.json
:
"eslint.options": {
"ignorePattern": "webpack.config.js",
}
我正在使用带有 vscode-eslint
扩展名的 Visual Studio 代码,但我收到了 webpack.config.js
文件本身的警告,如下所示。
如何在我自己的工作区中专门禁用此文件的 eslint 验证(也就是说,不向回购添加 .eslintignore
文件会影响其他开发人员)?
将这些行添加到 VSCode settings.json
:
"eslint.options": {
"ignorePattern": "webpack.config.js",
}