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

Commit e5ec0b7

Browse files
committed
Update typescript-eslint rules
1 parent 6dc2b57 commit e5ec0b7

File tree

3 files changed

+27
-10
lines changed

3 files changed

+27
-10
lines changed

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

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,30 @@ import type { RuleConfig } from '../rule-config';
44
* Option.
55
*/
66
export interface RestrictPlusOperandsOption {
7-
/**
8-
* Whether to check compound assignments such as `+=`.
9-
*/
10-
checkCompoundAssignments?: boolean;
117
/**
128
* Whether to allow `any` typed values.
139
*/
1410
allowAny?: boolean;
11+
/**
12+
* Whether to allow `boolean` typed values.
13+
*/
14+
allowBoolean?: boolean;
15+
/**
16+
* Whether to allow potentially `null` or `undefined` typed values.
17+
*/
18+
allowNullish?: boolean;
19+
/**
20+
* Whether to allow `bigint`/`number` typed values and `string` typed values to be added together.
21+
*/
22+
allowNumberAndString?: boolean;
23+
/**
24+
* Whether to allow `regexp` typed values.
25+
*/
26+
allowRegExp?: boolean;
27+
/**
28+
* Whether to check compound assignments such as `+=`.
29+
*/
30+
checkCompoundAssignments?: boolean;
1531
}
1632

1733
/**

src/rules/typescript-eslint/restrict-template-expressions.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ import type { RuleConfig } from '../rule-config';
55
*/
66
export interface RestrictTemplateExpressionsOption {
77
/**
8-
* Whether to allow `number` typed values in template expressions.
8+
* Whether to allow `any` typed values in template expressions.
99
*/
10-
allowNumber?: boolean;
10+
allowAny?: boolean;
1111
/**
1212
* Whether to allow `boolean` typed values in template expressions.
1313
*/
1414
allowBoolean?: boolean;
15-
/**
16-
* Whether to allow `any` typed values in template expressions.
17-
*/
18-
allowAny?: boolean;
1915
/**
2016
* Whether to allow `nullish` typed values in template expressions.
2117
*/
2218
allowNullish?: boolean;
19+
/**
20+
* Whether to allow `number` typed values in template expressions.
21+
*/
22+
allowNumber?: boolean;
2323
/**
2424
* Whether to allow `regexp` typed values in template expressions.
2525
*/

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export type SemiOption =
1818
'always',
1919
{
2020
omitLastInOneLineBlock?: boolean;
21+
omitLastInOneLineClassBody?: boolean;
2122
},
2223
];
2324

0 commit comments

Comments
 (0)