Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 5df5650

Browse files
committed
Add rule @typescript-eslint/semi
1 parent fb2c886 commit 5df5650

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/rules/typescript-eslint/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import type { PreferNullishCoalescingRule } from './prefer-nullish-coalescing';
1616
import type { PreferOptionalChainRule } from './prefer-optional-chain';
1717
import type { PreferReadonlyRule } from './prefer-readonly';
1818
import type { RestrictTemplateExpressionsRule } from './restrict-template-expressions';
19+
import type { SemiRule } from './semi';
1920
import type { TypedefRule } from './typedef';
2021

2122
/**
@@ -39,4 +40,5 @@ export type TypeScriptEslintRules = AdjacentOverloadSignaturesRule &
3940
PreferOptionalChainRule &
4041
PreferReadonlyRule &
4142
RestrictTemplateExpressionsRule &
43+
SemiRule &
4244
TypedefRule;

src/rules/typescript-eslint/semi.d.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
}

0 commit comments

Comments
 (0)