We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm a fan of concise code and naming (not obscure acronyms , just short names). So I like to keep my component names short. For example:
@Component({ selector: 'transaction' })
This throws a no-kebab-case warning. IMO a simple string without any capitalisation or special characters should pass this rule and not fail.
@mgechev, bug or just different opinions?
The text was updated successfully, but these errors were encountered:
Yes, it should throw a warning. transaction is not a valid name for a custom Web Component.
transaction
Sorry, something went wrong.
in case anyone else stumbles over this: http://www.w3.org/TR/custom-elements/#valid-custom-element-name
custom element spec requires a hypen to "force-avoid" naming conflicts with other custom elements.
@mgechev how about an option that would allow names without a hyphen. Would be happy to make a PR if you are ok with it.
Since selectors without a dash are not valid I don't think we should consider them.
No branches or pull requests
I'm a fan of concise code and naming (not obscure acronyms , just short names). So I like to keep my component names short. For example:
This throws a no-kebab-case warning. IMO a simple string without any capitalisation or special characters should pass this rule and not fail.
@mgechev, bug or just different opinions?
The text was updated successfully, but these errors were encountered: