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

Commit fdb2408

Browse files
committed
Update ts rules
1 parent ff2af94 commit fdb2408

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

src/rules/typescript-eslint/adjacent-overload-signatures.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import type { RuleConfig } from '../rule-config';
22

33
/**
4-
* Require that member overloads be consecutive.
4+
* Require that function overload signatures be consecutive.
55
*
66
* @see [adjacent-overload-signatures](https://typescript-eslint.io/rules/adjacent-overload-signatures)
77
*/
88
export type AdjacentOverloadSignaturesRuleConfig = RuleConfig<[]>;
99

1010
/**
11-
* Require that member overloads be consecutive.
11+
* Require that function overload signatures be consecutive.
1212
*
1313
* @see [adjacent-overload-signatures](https://typescript-eslint.io/rules/adjacent-overload-signatures)
1414
*/
1515
export interface AdjacentOverloadSignaturesRule {
1616
/**
17-
* Require that member overloads be consecutive.
17+
* Require that function overload signatures be consecutive.
1818
*
1919
* @see [adjacent-overload-signatures](https://typescript-eslint.io/rules/adjacent-overload-signatures)
2020
*/

src/rules/typescript-eslint/array-type.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ export interface ArrayTypeOption {
1515
export type ArrayTypeOptions = [ArrayTypeOption?];
1616

1717
/**
18-
* Require using either `T[]` or `Array<T>` for arrays.
18+
* Require consistently using either `T[]` or `Array<T>` for arrays.
1919
*
2020
* @see [array-type](https://typescript-eslint.io/rules/array-type)
2121
*/
2222
export type ArrayTypeRuleConfig = RuleConfig<ArrayTypeOptions>;
2323

2424
/**
25-
* Require using either `T[]` or `Array<T>` for arrays.
25+
* Require consistently using either `T[]` or `Array<T>` for arrays.
2626
*
2727
* @see [array-type](https://typescript-eslint.io/rules/array-type)
2828
*/
2929
export interface ArrayTypeRule {
3030
/**
31-
* Require using either `T[]` or `Array<T>` for arrays.
31+
* Require consistently using either `T[]` or `Array<T>` for arrays.
3232
*
3333
* @see [array-type](https://typescript-eslint.io/rules/array-type)
3434
*/

src/rules/typescript-eslint/ban-ts-comment.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@ export interface BanTsCommentOption {
4141
export type BanTsCommentOptions = [BanTsCommentOption?];
4242

4343
/**
44-
* Disallow `@ts-<directive>` comments or require descriptions after directive.
44+
* Disallow `@ts-<directive>` comments or require descriptions after directives.
4545
*
4646
* @see [ban-ts-comment](https://typescript-eslint.io/rules/ban-ts-comment)
4747
*/
4848
export type BanTsCommentRuleConfig = RuleConfig<BanTsCommentOptions>;
4949

5050
/**
51-
* Disallow `@ts-<directive>` comments or require descriptions after directive.
51+
* Disallow `@ts-<directive>` comments or require descriptions after directives.
5252
*
5353
* @see [ban-ts-comment](https://typescript-eslint.io/rules/ban-ts-comment)
5454
*/
5555
export interface BanTsCommentRule {
5656
/**
57-
* Disallow `@ts-<directive>` comments or require descriptions after directive.
57+
* Disallow `@ts-<directive>` comments or require descriptions after directives.
5858
*
5959
* @see [ban-ts-comment](https://typescript-eslint.io/rules/ban-ts-comment)
6060
*/

src/rules/typescript-eslint/no-extra-non-null-assertion.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import type { RuleConfig } from '../rule-config';
22

33
/**
4-
* Disallow extra non-null assertion.
4+
* Disallow extra non-null assertions.
55
*
66
* @see [no-extra-non-null-assertion](https://typescript-eslint.io/rules/no-extra-non-null-assertion)
77
*/
88
export type NoExtraNonNullAssertionRuleConfig = RuleConfig<[]>;
99

1010
/**
11-
* Disallow extra non-null assertion.
11+
* Disallow extra non-null assertions.
1212
*
1313
* @see [no-extra-non-null-assertion](https://typescript-eslint.io/rules/no-extra-non-null-assertion)
1414
*/
1515
export interface NoExtraNonNullAssertionRule {
1616
/**
17-
* Disallow extra non-null assertion.
17+
* Disallow extra non-null assertions.
1818
*
1919
* @see [no-extra-non-null-assertion](https://typescript-eslint.io/rules/no-extra-non-null-assertion)
2020
*/

src/rules/typescript-eslint/no-namespace.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ export interface NoNamespaceOption {
2020
export type NoNamespaceOptions = [NoNamespaceOption?];
2121

2222
/**
23-
* Disallow custom TypeScript modules and namespaces.
23+
* Disallow TypeScript namespaces.
2424
*
2525
* @see [no-namespace](https://typescript-eslint.io/rules/no-namespace)
2626
*/
2727
export type NoNamespaceRuleConfig = RuleConfig<NoNamespaceOptions>;
2828

2929
/**
30-
* Disallow custom TypeScript modules and namespaces.
30+
* Disallow TypeScript namespaces.
3131
*
3232
* @see [no-namespace](https://typescript-eslint.io/rules/no-namespace)
3333
*/
3434
export interface NoNamespaceRule {
3535
/**
36-
* Disallow custom TypeScript modules and namespaces.
36+
* Disallow TypeScript namespaces.
3737
*
3838
* @see [no-namespace](https://typescript-eslint.io/rules/no-namespace)
3939
*/

src/rules/typescript-eslint/prefer-optional-chain.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import type { RuleConfig } from '../rule-config';
22

33
/**
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.
55
*
66
* @see [prefer-optional-chain](https://typescript-eslint.io/rules/prefer-optional-chain)
77
*/
88
export type PreferOptionalChainRuleConfig = RuleConfig<[]>;
99

1010
/**
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.
1212
*
1313
* @see [prefer-optional-chain](https://typescript-eslint.io/rules/prefer-optional-chain)
1414
*/
1515
export interface PreferOptionalChainRule {
1616
/**
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.
1818
*
1919
* @see [prefer-optional-chain](https://typescript-eslint.io/rules/prefer-optional-chain)
2020
*/

src/rules/typescript-eslint/restrict-plus-operands.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ export interface RestrictPlusOperandsOption {
2020
export type RestrictPlusOperandsOptions = [RestrictPlusOperandsOption?];
2121

2222
/**
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`.
2424
*
2525
* @see [restrict-plus-operands](https://typescript-eslint.io/rules/restrict-plus-operands)
2626
*/
2727
export type RestrictPlusOperandsRuleConfig =
2828
RuleConfig<RestrictPlusOperandsOptions>;
2929

3030
/**
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`.
3232
*
3333
* @see [restrict-plus-operands](https://typescript-eslint.io/rules/restrict-plus-operands)
3434
*/
3535
export interface RestrictPlusOperandsRule {
3636
/**
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`.
3838
*
3939
* @see [restrict-plus-operands](https://typescript-eslint.io/rules/restrict-plus-operands)
4040
*/

0 commit comments

Comments
 (0)