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 +27
-10
lines changed
src/rules/typescript-eslint Expand file tree Collapse file tree 3 files changed +27
-10
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,30 @@ import type { RuleConfig } from '../rule-config';
4
4
* Option.
5
5
*/
6
6
export interface RestrictPlusOperandsOption {
7
- /**
8
- * Whether to check compound assignments such as `+=`.
9
- */
10
- checkCompoundAssignments ?: boolean ;
11
7
/**
12
8
* Whether to allow `any` typed values.
13
9
*/
14
10
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 ;
15
31
}
16
32
17
33
/**
Original file line number Diff line number Diff line change @@ -5,21 +5,21 @@ import type { RuleConfig } from '../rule-config';
5
5
*/
6
6
export interface RestrictTemplateExpressionsOption {
7
7
/**
8
- * Whether to allow `number ` typed values in template expressions.
8
+ * Whether to allow `any ` typed values in template expressions.
9
9
*/
10
- allowNumber ?: boolean ;
10
+ allowAny ?: boolean ;
11
11
/**
12
12
* Whether to allow `boolean` typed values in template expressions.
13
13
*/
14
14
allowBoolean ?: boolean ;
15
- /**
16
- * Whether to allow `any` typed values in template expressions.
17
- */
18
- allowAny ?: boolean ;
19
15
/**
20
16
* Whether to allow `nullish` typed values in template expressions.
21
17
*/
22
18
allowNullish ?: boolean ;
19
+ /**
20
+ * Whether to allow `number` typed values in template expressions.
21
+ */
22
+ allowNumber ?: boolean ;
23
23
/**
24
24
* Whether to allow `regexp` typed values in template expressions.
25
25
*/
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export type SemiOption =
18
18
'always' ,
19
19
{
20
20
omitLastInOneLineBlock ?: boolean ;
21
+ omitLastInOneLineClassBody ?: boolean ;
21
22
} ,
22
23
] ;
23
24
You can’t perform that action at this time.
0 commit comments