[英]How to turn off eslint rule?
How do you turn off an eslint rule, for example no-inferrable-types which comes from the extension "eslint:recommended"?您如何关闭 eslint 规则,例如来自扩展名“eslint:recommended”的 no-inferrable-types?
For example if my.eslintrc.json contains:例如,如果 my.eslintrc.json 包含:
"extends": [
"eslint:recommended",
.....
"@typescript-eslint/no-inferrable-types": [
"error",
{
"ignoreParameters": false,
"ignoreProperties": false
}
],
Set the value to "off", as described here: https://eslint.org/docs/latest/user-guide/configuring/rules将值设置为“关闭”,如下所述: https://eslint.org/docs/latest/user-guide/configuring/rules
For example:例如:
"@typescript-eslint/no-inferrable-types": "off",
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.