JS.TS.INDENT

Enforce consistent indentation

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

Copy
{
  // 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).

The content on this page is adapted from the ESLint User Guide. Copyright © OpenJS Foundation and other contributors, www.openjsf.org. All rights reserved. https://eslint.org/docs/rules/