`no-unknown-property` doesn't prevent use of unknown properties?
See original GitHub issueToday React gave me an āunknown propā warning:
In this example, I gave my
div
element an abc
attribute, which is obviously invalid HTML.
I was surprised that my linter didnāt pick up on this. Looking at the documentation, the name and description of the no-unknown-property
rule lead me to believe that this should be caught, but that doesnāt appear to be the case.
So, I suppose this is a feature request: add a rule to catch invalid DOM properties.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
no-unknown-property doesn't prevent use of ... - GitHub
Today React gave me an "unknown prop" warning: In this example, I gave my div element an abc attribute, which is obviously invalid...
Read more >property-no-unknown | Stylelint
Disallow unknown properties. This rule considers properties defined in the CSS Specifications and browser specific properties to be known. This rule ignores:
Read more >next.js - unknown property key found react/no-unknown-propert
This is an ESLint error, you can disable this specific check. Checkout my eslint config, I disabled this rule. //.eslintrc.js module.exportsĀ ...
Read more >react/no-unknown-property - Magestore Dev Docs - GitLab
Prevent usage of unknown DOM property (react/no-unknown-property) In JSX all DOM properties and attributes should be camelCased to be consistent with standardĀ ...
Read more >JS.REACT.NO.UNKNOWN.PROPERTY
Prevent usage of unknown DOM property (react/no-unknown-property) ... In JSX all DOM properties and attributes should be camelCased to be consistent with standardĀ ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Phew. This issue looked like ānice and smallā, but well, was more detective work than I expected š
If anyone has more use cases than
<div abc="foo" />
, feel free to read through and comment on the PR #3377Thatās awesome, thanks @sjarva!