question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add property to know. (no-unknown-property)

See original GitHub issue

Is it possible to make property known? I’m using class-to-classname package that allows use class instead of className in jsx.

How to say eslint that class is allowed?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ljharbcommented, Oct 17, 2017

This isn’t eslint-plugin-mithril or eslint-plugin-hyperapp tho; it’s eslint-plugin-react.

0reactions
jseminckcommented, Nov 19, 2017

I’m also -1.

Besides, you can already use this plugin to auto fix from class to className anyway. I use ESLint plugin with auto fix on save and even if I would copy paste JSX (or even HTML) with the property class in it it, then will be auto fixed to className without any manual intervention.

Just my 2 cents on this topic 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint-plugin-react/no-unknown-property.md at master
Disallow usage of unknown DOM property ( react/no-unknown-property ) ... This rule is enabled in the ☑️ recommended config. This rule is automatically ......
Read more >
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 >
css/no-unknown-property | eslint-plugin-css
Rule Details. This rule reports an unknown CSS property. This rule was inspired by Stylelint's property-no-unknown rule (opens new window).
Read more >
property-no-unknown
property -no-unknown ... Disallow unknown properties. ... This rule considers properties defined in the CSS Specifications and browser specific properties to be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found