因此,如果不使用函数参数,我希望允许对它们进行_。
我编辑了我的回避规则:
"@typescript-eslint/naming-convention"
使用
{
"selector": "parameter",
"modifiers": ["unused"],
"trailingUnderscore": "require"
},
```
Following the guide
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/naming-convention.md#individual-selectors
This sould work, but I get the following error : Value {"selector":"parameter","modifiers":["unused"],"trailingUnderscore":"require"} should have required property 'format'.
Value {"selector":"parameter","modifiers":["unused"],"trailingUnderscore":"require"} should match exactly one schema in oneOf.发布于 2022-02-07 17:32:50
必须将规则的format属性作为数组或空值包括在内,例如:
{
"format": null,
"selector": "parameter",
"modifiers": ["unused"],
"trailingUnderscore": "require"
}或者:
{
"format": ["PascalCase"],
...
}https://stackoverflow.com/questions/70416658
复制相似问题