indent
danger
This rule will soon be moved to eslint-stylistic. See What About Formatting? for more information.
Enforce consistent indentation.
🔧
Some problems reported by this rule are automatically fixable by the --fix
ESLint command line option.
Warning
danger
Please read Issue #1824: Problems with the indent rule before using this rule!
This rule extends the base eslint/indent
rule.
It adds support for TypeScript nodes.
How to Use
.eslintrc.cjs
module.exports = {
"rules": {
// Note: you must disable the base rule as it can report incorrect errors
"indent": "off",
"@typescript-eslint/indent": "error"
}
};
Options
Resources
Taken with ❤️ from ESLint core