Urara-Blog/node_modules/.pnpm-store/v3/files/54/496c6d5de70b5ba8a3b8cd1d5a8b4b973ba920593bfe3830ed637ed55d64ea08be2d7831da84ecc01ee81654c5fd9685b383c912ce41deb9b04bc1b91ff6fe
2022-08-14 01:14:53 +08:00

36 lines
863 B
Text

---
description: 'Enforce consistent indentation.'
---
> 🛑 This file is source code, not the primary documentation location! 🛑
>
> See **https://typescript-eslint.io/rules/indent** for documentation.
## Warning
PLEASE READ THIS ISSUE BEFORE USING THIS RULE [#1824](https://github.com/typescript-eslint/typescript-eslint/issues/1824)
## Rule Details
This rule extends the base [`eslint/indent`](https://eslint.org/docs/rules/indent) rule.
It adds support for TypeScript nodes.
## How to Use
```jsonc
{
// note you must disable the base rule as it can report incorrect errors
"indent": "off",
"@typescript-eslint/indent": ["error"]
}
```
## Options
See [`eslint/indent` options](https://eslint.org/docs/rules/indent#options).
<sup>
Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/indent.md)
</sup>