-
Notifications
You must be signed in to change notification settings - Fork 248
Closed
Labels
package: eslint-pluginAngular-specific TypeScript rulesAngular-specific TypeScript rulestriageThis issue needs to be looked at and categorized by a maintainerThis issue needs to be looked at and categorized by a maintainer
Description
Description and reproduction of the issue
This rule should allow something like this:
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "testLib",
"style": "camelCase"
},
{
"type": "element",
"prefix": "test-lib",
"style": "kebab-case"
}
],we need to use directives in our project as an attribute AND as an element. Currently we have to use something like this:
"@angular-eslint/directive-selector": [
"error",
{
"type": ["element", "attribute"],
"prefix": ["testLib", "test-lib"]
"style": ???
}
],but now the style property doesn't make sense, and of course this approach doesn't checks the prefix validity by usage
evgeniyefimov, thigrand, marcomeyer, oliP7, 11mb and 3 more
Metadata
Metadata
Assignees
Labels
package: eslint-pluginAngular-specific TypeScript rulesAngular-specific TypeScript rulestriageThis issue needs to be looked at and categorized by a maintainerThis issue needs to be looked at and categorized by a maintainer