template-curly-spacing
eslint
Safe autofix
eslint.config.js
export default [
{
rules: {
"template-curly-spacing": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
Require or disallow spacing around embedded expressions of template strings
`hello, ${ people.name}!`;
`hello, ${people.name }!`;
`hello, ${ people.name }!`;`hello, ${ people.name}!`;
`hello, ${people.name }!`;
`hello, ${people.name}!`;`hello, ${people.name}!`;
`hello, ${
people.name
}!`;`hello, ${ people.name }!`;
`hello, ${
people.name
}!`;Examples from the ESLint documentation.
template-curly-spacing
eslint
export default [
{
rules: {
"template-curly-spacing": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Require or disallow spacing around embedded expressions of template strings in <template>
Require for-in loops to include an if statement
Require var declarations be placed at the top of their containing scope
Require grouped accessor pairs in object literals and classes
Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead