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 var declarations be placed at the top of their containing scope
Require for-in loops to include an if statement
Enforce the use of variables within the scope they are defined
Require grouped accessor pairs in object literals and classes