File tree 5 files changed +3986
-3985
lines changed
5 files changed +3986
-3985
lines changed Original file line number Diff line number Diff line change 6
6
matrix :
7
7
- ESLINT=5
8
8
- ESLINT=6
9
+ - ESLINT=7
9
10
10
11
node_js :
11
12
- 10.12
22
23
- stage : release
23
24
if : branch = master AND type != pull_request AND fork = false
24
25
node_js : 14
25
- env : ESLINT=6
26
+ env : ESLINT=7
26
27
script : npm run build
27
28
deploy :
28
29
provider : script
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ import {
13
13
} from '../node-utils' ;
14
14
15
15
export const RULE_NAME = 'no-debug' ;
16
+ export type MessageIds = 'noDebug' ;
17
+ type Options = [
18
+ { renderFunctions ?: string [ ] ; }
19
+ ] ;
16
20
17
21
function isRenderVariableDeclarator (
18
22
node : TSESTree . VariableDeclarator ,
@@ -45,7 +49,7 @@ function hasTestingLibraryImportModule(
45
49
return LIBRARY_MODULES . some ( module => module === literal . value ) ;
46
50
}
47
51
48
- export default ESLintUtils . RuleCreator ( getDocsUrl ) ( {
52
+ export default ESLintUtils . RuleCreator ( getDocsUrl ) < Options , MessageIds > ( {
49
53
name : RULE_NAME ,
50
54
meta : {
51
55
type : 'problem' ,
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ import {
12
12
13
13
export const RULE_NAME = 'no-render-in-setup' ;
14
14
export type MessageIds = 'noRenderInSetup' ;
15
+ type Options = [
16
+ { renderFunctions ?: string [ ] ; allowTestingFrameworkSetupHook ?: string }
17
+ ] ;
15
18
16
19
export function findClosestBeforeHook (
17
20
node : TSESTree . Node ,
@@ -29,7 +32,7 @@ export function findClosestBeforeHook(
29
32
return findClosestBeforeHook ( node . parent , testingFrameworkSetupHooksToFilter ) ;
30
33
}
31
34
32
- export default ESLintUtils . RuleCreator ( getDocsUrl ) ( {
35
+ export default ESLintUtils . RuleCreator ( getDocsUrl ) < Options , MessageIds > ( {
33
36
name : RULE_NAME ,
34
37
meta : {
35
38
type : 'problem' ,
You can’t perform that action at this time.
0 commit comments