This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +21
-21
lines changed
src/rules/typescript-eslint Expand file tree Collapse file tree 7 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 1
1
import type { RuleConfig } from '../rule-config' ;
2
2
3
3
/**
4
- * Require that member overloads be consecutive.
4
+ * Require that function overload signatures be consecutive.
5
5
*
6
6
* @see [adjacent-overload-signatures](https://typescript-eslint.io/rules/adjacent-overload-signatures)
7
7
*/
8
8
export type AdjacentOverloadSignaturesRuleConfig = RuleConfig < [ ] > ;
9
9
10
10
/**
11
- * Require that member overloads be consecutive.
11
+ * Require that function overload signatures be consecutive.
12
12
*
13
13
* @see [adjacent-overload-signatures](https://typescript-eslint.io/rules/adjacent-overload-signatures)
14
14
*/
15
15
export interface AdjacentOverloadSignaturesRule {
16
16
/**
17
- * Require that member overloads be consecutive.
17
+ * Require that function overload signatures be consecutive.
18
18
*
19
19
* @see [adjacent-overload-signatures](https://typescript-eslint.io/rules/adjacent-overload-signatures)
20
20
*/
Original file line number Diff line number Diff line change @@ -15,20 +15,20 @@ export interface ArrayTypeOption {
15
15
export type ArrayTypeOptions = [ ArrayTypeOption ?] ;
16
16
17
17
/**
18
- * Require using either `T[]` or `Array<T>` for arrays.
18
+ * Require consistently using either `T[]` or `Array<T>` for arrays.
19
19
*
20
20
* @see [array-type](https://typescript-eslint.io/rules/array-type)
21
21
*/
22
22
export type ArrayTypeRuleConfig = RuleConfig < ArrayTypeOptions > ;
23
23
24
24
/**
25
- * Require using either `T[]` or `Array<T>` for arrays.
25
+ * Require consistently using either `T[]` or `Array<T>` for arrays.
26
26
*
27
27
* @see [array-type](https://typescript-eslint.io/rules/array-type)
28
28
*/
29
29
export interface ArrayTypeRule {
30
30
/**
31
- * Require using either `T[]` or `Array<T>` for arrays.
31
+ * Require consistently using either `T[]` or `Array<T>` for arrays.
32
32
*
33
33
* @see [array-type](https://typescript-eslint.io/rules/array-type)
34
34
*/
Original file line number Diff line number Diff line change @@ -41,20 +41,20 @@ export interface BanTsCommentOption {
41
41
export type BanTsCommentOptions = [ BanTsCommentOption ?] ;
42
42
43
43
/**
44
- * Disallow `@ts-<directive>` comments or require descriptions after directive .
44
+ * Disallow `@ts-<directive>` comments or require descriptions after directives .
45
45
*
46
46
* @see [ban-ts-comment](https://typescript-eslint.io/rules/ban-ts-comment)
47
47
*/
48
48
export type BanTsCommentRuleConfig = RuleConfig < BanTsCommentOptions > ;
49
49
50
50
/**
51
- * Disallow `@ts-<directive>` comments or require descriptions after directive .
51
+ * Disallow `@ts-<directive>` comments or require descriptions after directives .
52
52
*
53
53
* @see [ban-ts-comment](https://typescript-eslint.io/rules/ban-ts-comment)
54
54
*/
55
55
export interface BanTsCommentRule {
56
56
/**
57
- * Disallow `@ts-<directive>` comments or require descriptions after directive .
57
+ * Disallow `@ts-<directive>` comments or require descriptions after directives .
58
58
*
59
59
* @see [ban-ts-comment](https://typescript-eslint.io/rules/ban-ts-comment)
60
60
*/
Original file line number Diff line number Diff line change 1
1
import type { RuleConfig } from '../rule-config' ;
2
2
3
3
/**
4
- * Disallow extra non-null assertion .
4
+ * Disallow extra non-null assertions .
5
5
*
6
6
* @see [no-extra-non-null-assertion](https://typescript-eslint.io/rules/no-extra-non-null-assertion)
7
7
*/
8
8
export type NoExtraNonNullAssertionRuleConfig = RuleConfig < [ ] > ;
9
9
10
10
/**
11
- * Disallow extra non-null assertion .
11
+ * Disallow extra non-null assertions .
12
12
*
13
13
* @see [no-extra-non-null-assertion](https://typescript-eslint.io/rules/no-extra-non-null-assertion)
14
14
*/
15
15
export interface NoExtraNonNullAssertionRule {
16
16
/**
17
- * Disallow extra non-null assertion .
17
+ * Disallow extra non-null assertions .
18
18
*
19
19
* @see [no-extra-non-null-assertion](https://typescript-eslint.io/rules/no-extra-non-null-assertion)
20
20
*/
Original file line number Diff line number Diff line change @@ -20,20 +20,20 @@ export interface NoNamespaceOption {
20
20
export type NoNamespaceOptions = [ NoNamespaceOption ?] ;
21
21
22
22
/**
23
- * Disallow custom TypeScript modules and namespaces.
23
+ * Disallow TypeScript namespaces.
24
24
*
25
25
* @see [no-namespace](https://typescript-eslint.io/rules/no-namespace)
26
26
*/
27
27
export type NoNamespaceRuleConfig = RuleConfig < NoNamespaceOptions > ;
28
28
29
29
/**
30
- * Disallow custom TypeScript modules and namespaces.
30
+ * Disallow TypeScript namespaces.
31
31
*
32
32
* @see [no-namespace](https://typescript-eslint.io/rules/no-namespace)
33
33
*/
34
34
export interface NoNamespaceRule {
35
35
/**
36
- * Disallow custom TypeScript modules and namespaces.
36
+ * Disallow TypeScript namespaces.
37
37
*
38
38
* @see [no-namespace](https://typescript-eslint.io/rules/no-namespace)
39
39
*/
Original file line number Diff line number Diff line change 1
1
import type { RuleConfig } from '../rule-config' ;
2
2
3
3
/**
4
- * Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects .
4
+ * Enforce using concise optional chain expressions instead of chained logical ands.
5
5
*
6
6
* @see [prefer-optional-chain](https://typescript-eslint.io/rules/prefer-optional-chain)
7
7
*/
8
8
export type PreferOptionalChainRuleConfig = RuleConfig < [ ] > ;
9
9
10
10
/**
11
- * Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects .
11
+ * Enforce using concise optional chain expressions instead of chained logical ands.
12
12
*
13
13
* @see [prefer-optional-chain](https://typescript-eslint.io/rules/prefer-optional-chain)
14
14
*/
15
15
export interface PreferOptionalChainRule {
16
16
/**
17
- * Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects .
17
+ * Enforce using concise optional chain expressions instead of chained logical ands.
18
18
*
19
19
* @see [prefer-optional-chain](https://typescript-eslint.io/rules/prefer-optional-chain)
20
20
*/
Original file line number Diff line number Diff line change @@ -20,21 +20,21 @@ export interface RestrictPlusOperandsOption {
20
20
export type RestrictPlusOperandsOptions = [ RestrictPlusOperandsOption ?] ;
21
21
22
22
/**
23
- * Require both operands of addition to have type ` number` or `string`.
23
+ * Require both operands of addition to be the same type and be `bigint`, ` number`, or `string`.
24
24
*
25
25
* @see [restrict-plus-operands](https://typescript-eslint.io/rules/restrict-plus-operands)
26
26
*/
27
27
export type RestrictPlusOperandsRuleConfig =
28
28
RuleConfig < RestrictPlusOperandsOptions > ;
29
29
30
30
/**
31
- * Require both operands of addition to have type ` number` or `string`.
31
+ * Require both operands of addition to be the same type and be `bigint`, ` number`, or `string`.
32
32
*
33
33
* @see [restrict-plus-operands](https://typescript-eslint.io/rules/restrict-plus-operands)
34
34
*/
35
35
export interface RestrictPlusOperandsRule {
36
36
/**
37
- * Require both operands of addition to have type ` number` or `string`.
37
+ * Require both operands of addition to be the same type and be `bigint`, ` number`, or `string`.
38
38
*
39
39
* @see [restrict-plus-operands](https://typescript-eslint.io/rules/restrict-plus-operands)
40
40
*/
You can’t perform that action at this time.
0 commit comments