@typescript-eslint/init-declarations
@typescript-eslint/eslint-plugin
No autofix
eslint.config.js
Require or disallow initialization in variable declarations
No code example for this rule
The linters' documentation does not include one we could extract.
@typescript-eslint/init-declarations
@typescript-eslint/eslint-plugin
Oxlint does not have this rule.
Biome does not have this rule.
Require or disallow initialization in variable declarations
Enforce that class methods utilize this
Require destructuring from arrays and/or objects
Enforce a maximum number of parameters in function definitions
Require a consistent member declaration order
import tseslint from "typescript-eslint";
export default [
{
plugins: { "@typescript-eslint": tseslint.plugin },
rules: {
"@typescript-eslint/init-declarations": "error",
},
},
];