This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,25 @@ export interface LinesBetweenClassMembersConfig {
10
10
/**
11
11
* Option.
12
12
*/
13
- export type LinesBetweenClassMembersOption = 'always' | 'never' ;
13
+ export type LinesBetweenClassMembersOption =
14
+ | {
15
+ /**
16
+ * @minItems 1
17
+ */
18
+ enforce : [
19
+ {
20
+ blankLine : 'always' | 'never' ;
21
+ prev : 'method' | 'field' | '*' ;
22
+ next : 'method' | 'field' | '*' ;
23
+ } ,
24
+ ...{
25
+ blankLine : 'always' | 'never' ;
26
+ prev : 'method' | 'field' | '*' ;
27
+ next : 'method' | 'field' | '*' ;
28
+ } [ ] ,
29
+ ] ;
30
+ }
31
+ | ( 'always' | 'never' ) ;
14
32
15
33
/**
16
34
* Options.
Original file line number Diff line number Diff line change 1
1
import type { RuleConfig } from '../rule-config' ;
2
2
3
+ /**
4
+ * Option.
5
+ */
6
+ export interface NoPromiseExecutorReturnOption {
7
+ allowVoid ?: boolean ;
8
+ }
9
+
10
+ /**
11
+ * Options.
12
+ */
13
+ export type NoPromiseExecutorReturnOptions = [ NoPromiseExecutorReturnOption ?] ;
14
+
3
15
/**
4
16
* Disallow returning values from Promise executor functions.
5
17
*
6
18
* @see [no-promise-executor-return](https://eslint.org/docs/latest/rules/no-promise-executor-return)
7
19
*/
8
- export type NoPromiseExecutorReturnRuleConfig = RuleConfig < [ ] > ;
20
+ export type NoPromiseExecutorReturnRuleConfig =
21
+ RuleConfig < NoPromiseExecutorReturnOptions > ;
9
22
10
23
/**
11
24
* Disallow returning values from Promise executor functions.
You can’t perform that action at this time.
0 commit comments