File tree Expand file tree Collapse file tree 5 files changed +3986
-3985
lines changed Expand file tree Collapse file tree 5 files changed +3986
-3985
lines changed Original file line number Diff line number Diff line change 66 matrix :
77 - ESLINT=5
88 - ESLINT=6
9+ - ESLINT=7
910
1011node_js :
1112 - 10.12
2223 - stage : release
2324 if : branch = master AND type != pull_request AND fork = false
2425 node_js : 14
25- env : ESLINT=6
26+ env : ESLINT=7
2627 script : npm run build
2728 deploy :
2829 provider : script
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ import {
1313} from '../node-utils' ;
1414
1515export const RULE_NAME = 'no-debug' ;
16+ export type MessageIds = 'noDebug' ;
17+ type Options = [
18+ { renderFunctions ?: string [ ] ; }
19+ ] ;
1620
1721function isRenderVariableDeclarator (
1822 node : TSESTree . VariableDeclarator ,
@@ -45,7 +49,7 @@ function hasTestingLibraryImportModule(
4549 return LIBRARY_MODULES . some ( module => module === literal . value ) ;
4650}
4751
48- export default ESLintUtils . RuleCreator ( getDocsUrl ) ( {
52+ export default ESLintUtils . RuleCreator ( getDocsUrl ) < Options , MessageIds > ( {
4953 name : RULE_NAME ,
5054 meta : {
5155 type : 'problem' ,
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ import {
1212
1313export const RULE_NAME = 'no-render-in-setup' ;
1414export type MessageIds = 'noRenderInSetup' ;
15+ type Options = [
16+ { renderFunctions ?: string [ ] ; allowTestingFrameworkSetupHook ?: string }
17+ ] ;
1518
1619export function findClosestBeforeHook (
1720 node : TSESTree . Node ,
@@ -29,7 +32,7 @@ export function findClosestBeforeHook(
2932 return findClosestBeforeHook ( node . parent , testingFrameworkSetupHooksToFilter ) ;
3033}
3134
32- export default ESLintUtils . RuleCreator ( getDocsUrl ) ( {
35+ export default ESLintUtils . RuleCreator ( getDocsUrl ) < Options , MessageIds > ( {
3336 name : RULE_NAME ,
3437 meta : {
3538 type : 'problem' ,
You can’t perform that action at this time.
0 commit comments