🔧 This rule is automatically fixable by the --fix
CLI option.
💼 This rule is enabled in the following configs: all
.
🔧 This rule is automatically fixable using the --fix
flag on the command line.
This rule will enforce one or the other to keep consistency in your code.
Fixable: This rule is automatically fixable using the --fix
flag on the command line.
This rule has a string option:
- className: (default) enforces the use of 'className' instead of 'class' in JSX attributes.
...
"inferno/jsx-props-class-name": [<enabled>, "className"]
...
- class: enforces the use of 'class' instead of 'className' in JSX attributes.
...
"inferno/jsx-props-class-name": [<enabled>, "class"]
...
If you want to allow both className
and class
attributes