This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Original file line number Diff line number Diff line change 1
1
import type { EslintRules } from './eslint' ;
2
2
import type { RuleConfig } from './rule-config' ;
3
+ import type { TypeScriptEslintRules } from './typescript-eslint' ;
3
4
4
5
/**
5
6
* Rules.
6
7
*
7
8
* @see [Rules](https://eslint.org/docs/user-guide/configuring/rules)
8
9
*/
9
- export type Rules = Partial < EslintRules > & Partial < Record < string , RuleConfig > > ;
10
+ export type Rules = Partial < EslintRules & TypeScriptEslintRules & Record < string , RuleConfig > > ;
Original file line number Diff line number Diff line change
1
+ import type { RuleConfig } from '../rule-config' ;
2
+
3
+ /**
4
+ * Option.
5
+ */
6
+ export type BanTsCommentOption = {
7
+ 'ts-expect-error' ?: boolean | 'allow-with-description' ;
8
+ 'ts-ignore' ?: boolean | 'allow-with-description' ;
9
+ 'ts-nocheck' ?: boolean | 'allow-with-description' ;
10
+ 'ts-check' ?: boolean | 'allow-with-description' ;
11
+ minimumDescriptionLength ?: number ;
12
+ } ;
13
+
14
+ /**
15
+ * Options.
16
+ */
17
+ export type BanTsCommentOptions = [ BanTsCommentOption ?] ;
18
+
19
+ /**
20
+ * Bans `@ts-<directive>` comments from being used or requires descriptions after directive.
21
+ *
22
+ * @see [ban-ts-comment](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-ts-comment.md)
23
+ */
24
+ export type BanTsCommentRuleConfig = RuleConfig < BanTsCommentOptions > ;
25
+
26
+ /**
27
+ * Bans `@ts-<directive>` comments from being used or requires descriptions after directive.
28
+ *
29
+ * @see [ban-ts-comment](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-ts-comment.md)
30
+ */
31
+ export interface BanTsCommentRule {
32
+ /**
33
+ * Bans `@ts-<directive>` comments from being used or requires descriptions after directive.
34
+ *
35
+ * @see [ban-ts-comment](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-ts-comment.md)
36
+ */
37
+ '@typescript-eslint/ban-ts-comment' : BanTsCommentRuleConfig ;
38
+ }
Original file line number Diff line number Diff line change
1
+ import type { BanTsCommentRule } from './ban-ts-comment' ;
2
+
3
+ /**
4
+ * All @typescript-eslint rules.
5
+ */
6
+ export type TypeScriptEslintRules = BanTsCommentRule ;
You can’t perform that action at this time.
0 commit comments