yield-star-spacing
eslint
Safe autofix
eslint.config.js
export default [
{
rules: {
"yield-star-spacing": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
Require or disallow spacing around the * in yield* expressions
The documentation shows no incorrect example for this rule.
function* generator() {
yield* other();
}function *generator() {
yield *other();
}function * generator() {
yield * other();
}Examples from the ESLint documentation.
yield-star-spacing
eslint
export default [
{
rules: {
"yield-star-spacing": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce the use of variables within the scope they are defined
Require for-in loops to include an if statement
Require var declarations be placed at the top of their containing scope
Disallow the use of alert, confirm, and prompt