-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
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
Error if element name is capitalised #623
Comments
Rich-Harris
changed the title
Warn if element name is capitalised
Warn (or error) if element name is capitalised
Jun 7, 2017
I like this idea, it seems like a tidy solution to this problem. I think the main bump I see here is that making this an outright error would probably be a breaking change. A sane and likely desirable change, but probably a breaking one. Not sure whether that influences how you want this handled. |
Good point. Let's make it a warning for now, with a |
Rich-Harris
added a commit
that referenced
this issue
Jun 11, 2017
Rich-Harris
changed the title
Warn (or error) if element name is capitalised
Error if element name is capitalised
Jun 13, 2017
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I keep writing
<SomeNewComponent/>
and forgetting to importSomeNewComponent
and add it tocomponents
. I could save myself some time if the compiler printed a warning (or maybe if it errored?) on encountering a capitalised tag that doesn't correspond to a known component.The text was updated successfully, but these errors were encountered: