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 @@ -16,6 +16,7 @@ import type { PreferNullishCoalescingRule } from './prefer-nullish-coalescing';
16
16
import type { PreferOptionalChainRule } from './prefer-optional-chain' ;
17
17
import type { PreferReadonlyRule } from './prefer-readonly' ;
18
18
import type { RestrictTemplateExpressionsRule } from './restrict-template-expressions' ;
19
+ import type { SemiRule } from './semi' ;
19
20
import type { TypedefRule } from './typedef' ;
20
21
21
22
/**
@@ -39,4 +40,5 @@ export type TypeScriptEslintRules = AdjacentOverloadSignaturesRule &
39
40
PreferOptionalChainRule &
40
41
PreferReadonlyRule &
41
42
RestrictTemplateExpressionsRule &
43
+ SemiRule &
42
44
TypedefRule ;
Original file line number Diff line number Diff line change
1
+ import type { SemiOptions } from '../eslint/semi' ;
2
+ import type { RuleConfig } from '../rule-config' ;
3
+
4
+ /**
5
+ * Require or disallow semicolons instead of ASI.
6
+ *
7
+ * @see [semi](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md)
8
+ */
9
+ export type SemiRuleConfig = RuleConfig < SemiOptions > ;
10
+
11
+ /**
12
+ * Require or disallow semicolons instead of ASI.
13
+ *
14
+ * @see [semi](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md)
15
+ */
16
+ export interface SemiRule {
17
+ /**
18
+ * Require or disallow semicolons instead of ASI.
19
+ *
20
+ * @see [semi](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md)
21
+ */
22
+ '@typescript-eslint/semi' : SemiRuleConfig ;
23
+ }
You can’t perform that action at this time.
0 commit comments