-
-
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
Currently, naming-convention
rule supports destructured
modifier only for variables. I propose to also support it for parameters.
Repro
{
"rules": {
"@typescript-eslint/naming-convention": ["error",
{
"selector": "parameter",
"modifiers": ["destructured"],
"format": ["camelCase"]
}
]
}
}
function foo({ aNameToBeChecked }: any) {
// ...
}
Expected Result
The identifier aNameToBeChecked
matches the rule.
Actual Result
The destructured
modifier isn't supported with selector: "parameter"
, so it doesn't work.
Versions
This issue is currently present in the master branch.
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