-
-
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": [1,
{ "selector": "variable", "format": ["camelCase", "PascalCase"] },
// { "selector": "variable", "modifiers": "const", "format": ["camelCase", "PascalCase", "UPPER_CASE"] }
]
}
}
const CONSTANT_NUMBER = 1;
Expected Result
I should be able to allow UPPER_CASE
for const
s only.
Actual Result
I can't narrow down the variable
selector.
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
2.19.2 |
@typescript-eslint/parser |
2.19.2 |
TypeScript |
3.7.5 |
ESLint |
6.8.0 |
node |
13.8.0 |
npm |
6.13.7 |
nickineering, glen-84, cherryblossom000, B4nan, lwyj123 and 4 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