This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
src/rules/typescript-eslint Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ import type { IndentOptions } from '../eslint/indent' ;
2
+ import type { RuleConfig } from '../rule-config' ;
3
+
4
+ /**
5
+ * Enforce consistent indentation.
6
+ *
7
+ * @see [indent](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/indent.md)
8
+ */
9
+ export type IndentRuleConfig = RuleConfig < IndentOptions > ;
10
+
11
+ /**
12
+ * Enforce consistent indentation.
13
+ *
14
+ * @see [indent](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/indent.md)
15
+ */
16
+ export interface IndentRule {
17
+ /**
18
+ * Enforce consistent indentation.
19
+ *
20
+ * @see [indent](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/indent.md)
21
+ */
22
+ '@typescript-eslint/indent' : IndentRuleConfig ;
23
+ }
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import type { BanTsCommentRule } from './ban-ts-comment';
5
5
import type { BanTypesRule } from './ban-types' ;
6
6
import type { ConsistentTypeAssertionsRule } from './consistent-type-assertions' ;
7
7
import type { ExplicitFunctionReturnTypeRule } from './explicit-function-return-type' ;
8
+ import type { IndentRule } from './indent' ;
8
9
import type { InterfaceNamePrefixRule } from './interface-name-prefix' ;
9
10
import type { MemberOrderingRule } from './member-ordering' ;
10
11
import type { NoExplicitAnyRule } from './no-explicit-any' ;
@@ -29,6 +30,7 @@ export type TypeScriptEslintRules = AdjacentOverloadSignaturesRule &
29
30
BanTypesRule &
30
31
ConsistentTypeAssertionsRule &
31
32
ExplicitFunctionReturnTypeRule &
33
+ IndentRule &
32
34
InterfaceNamePrefixRule &
33
35
MemberOrderingRule &
34
36
NoExplicitAnyRule &
You can’t perform that action at this time.
0 commit comments