Configuration Options
eslint.enable
: enable/diable eslint. Is enabled by default.eslint.options
: an option bag as defined by the ESLint API here. Defaults to an empty option bag.
我不知道在哪里配置eslint扩展名?在命令中搜索
configure
不会产生任何结果。
最佳答案
您可以在VSCode settings.json
文件中添加扩展级别的配置。通过命令面板打开它:
根据ESLint documentation,将规则添加到
eslint.options
中:// Place your settings in this file to overwrite the default settings
{
"eslint.options": {
"rules": {
"quotes": [2, "double"]
}
}
}
您可以通过命令面板打开“工作区设置”,将其添加到工作区级配置中。这将在您的项目中创建一个
./vscode/settings.json
文件。
关于visual-studio-code - 如何在vscode中配置eslint扩展?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35737094/