添加
"@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} 不应该有额外的属性。
提及此规则的选项的正确方法是什么?