jsx-quotes
eslint
Safe autofix
eslint.config.js
export default [
{
rules: {
"jsx-quotes": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
Enforce the consistent use of either double or single quotes in JSX attributes
<a b='c' />;<a b="c" />;<a b="c" />;
<a b='"' />;<a b='c' />;
<a b="'" />;Examples from the ESLint documentation.
jsx-quotes
eslint
export default [
{
rules: {
"jsx-quotes": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Disallow equal signs explicitly at the beginning of regular expressions
Disallow calls to the Object constructor without an argument
Enforce a maximum depth that callbacks can be nested
Enforce a maximum cyclomatic complexity allowed in a program
Enforce the use of u or v flag on regular expressions
Disallow use of Object.prototype.hasOwnProperty.call() and prefer use of Object.hasOwn()