[英]How to turn off eslint rule?
您如何關閉 eslint 規則,例如來自擴展名“eslint:recommended”的 no-inferrable-types?
例如,如果 my.eslintrc.json 包含:
"extends": [
"eslint:recommended",
.....
"@typescript-eslint/no-inferrable-types": [
"error",
{
"ignoreParameters": false,
"ignoreProperties": false
}
],
將值設置為“關閉”,如下所述: https://eslint.org/docs/latest/user-guide/configuring/rules
例如:
"@typescript-eslint/no-inferrable-types": "off",
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.