【发布时间】:2020-01-09 19:34:14
【问题描述】:
添加
"@typescript-eslint/strict-boolean-expressions": [
2,
{
"ignoreRhs": true,
"allow-boolean-or-undefined": true
}
],
到我的 eslintrc.json 给我以下错误错误:.eslintrc.json: 规则“@typescript-eslint/strict-boolean-expressions”的配置无效: 值 {"ignoreRhs":true,"allow-boolean-or-undefined":true} 不应具有其他属性。
提及此规则的选项的正确方法是什么?
【问题讨论】: