-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
false postive with names starting with a number using jsx-pascal-case #1336
Comments
… using jsx-pascal case jsx-eslint#1336 - false postive with names starting with a number using jsx-pascal [Can besaid it is fixed, but inside it is not accepted anyway. Seems just fixed the regex]
This seems fine to me, since those are invalid identifiers, they shouldn't work in the first place. |
True, but the regex, that is checking the IDs, is not covering this case. But somehow, in some place, it gives some error when linting, but not (i think) using methods within this project. I can close the issue, if you want. |
The jsx parser should be throwing on it because it's invalid JS. The regex for this rule shouldn't need to check it, because it should be impossible for it to receive that in the first place. |
That is reasonable. Thank you. |
… using jsx-pascal case jsx-eslint#1336 - false postive with names starting with a number using jsx-pascal [Can besaid it is fixed, but inside it is not accepted anyway. Seems just fixed the regex]
(Not directly about run. It is about the RegEx provided in the code.)
Using v7.1.0,
do not flag an error (e.g Contained JSX component MyComponent must not start with a number (react/jsx-pascal-case))
The text was updated successfully, but these errors were encountered: