mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 07:29:31 +08:00
36 lines
863 B
Text
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>
|