Skip to content
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

forbid-dom-props: support JSXNamespacedName #2961

Merged
merged 1 commit into from Apr 7, 2021
Merged

forbid-dom-props: support JSXNamespacedName #2961

merged 1 commit into from Apr 7, 2021

Conversation

mrtnzlml
Copy link
Contributor

@mrtnzlml mrtnzlml commented Apr 6, 2021

This rather strange pattern is common in FBT and valid according to JSX (see JSXNamespacedName). Without this change the rule fails on the following error:

TypeError: Cannot read property 'toUpperCase' of undefined

See: adeira/universe#2005

This rather strange pattern is common in [FBT](https://facebook.github.io/fbt/docs/params) and valid according to [JSX](http://facebook.github.io/jsx/) (see `JSXNamespacedName`). Without this change the rule fails on the following error:

```
TypeError: Cannot read property 'toUpperCase' of undefined
```

See: adeira/universe#2005
@AriPerkkio
Copy link
Contributor

Related crashes also spotted here AriPerkkio/eslint-remote-tester#29 (comment).

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ljharb ljharb merged commit 2f376e0 into jsx-eslint:master Apr 7, 2021
@mrtnzlml mrtnzlml deleted the forbid-dom-props_fix_jsx_namespaced_name branch April 7, 2021 20:09
mrtnzlml added a commit to adeira/universe that referenced this pull request Apr 9, 2021
kodiakhq bot pushed a commit to adeira/universe that referenced this pull request Apr 9, 2021
adeira-github-bot pushed a commit to adeira/eslint-config-adeira that referenced this pull request Apr 9, 2021
It's been fixed in jsx-eslint/eslint-plugin-react#2961 and upgraded in adeira/universe#2172

adeira-source-id: 4acf0ad103fe31649d3e9c0d406b91fa9592ac0a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants