-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
enhancement: plugin rule optionNew rule option for an existing eslint-plugin ruleNew rule option for an existing eslint-plugin rulepackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
Repro
{
"rules": {
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": ["strictCamelCase"]
}
]
}
}
onComplete: (_id, name, responseJson) => {
// Using name and responseJson, but not id.
}
Expected Result
No error on _id
.
Actual Result
Error on _id
.
Additional Info
As mentioned here with Brad's response here.
When using the noUnusedParameters
compiler option, you have to use an underscore to suppress TypeScript's error. However, this shouldn't be done unless the parameter is actually unused.
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
2.16.0 |
@typescript-eslint/parser |
2.16.0 |
TypeScript |
3.7.5 |
ESLint |
6.8.0 |
node |
12.14.1 |
npm |
6.13.4 |
bradzacher, sindresorhus, G-Rath, mdtusz, MaceWindu and 12 more
Metadata
Metadata
Assignees
Labels
enhancement: plugin rule optionNew rule option for an existing eslint-plugin ruleNew rule option for an existing eslint-plugin rulepackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin