@@ -64,7 +64,7 @@ export default ESLintUtils.RuleCreator(getDocsUrl)<Options, MessageIds>({
64
64
if (
65
65
isObjectPattern ( node . id ) &&
66
66
node . id . properties . some (
67
- property =>
67
+ ( property ) =>
68
68
isProperty ( property ) &&
69
69
isIdentifier ( property . key ) &&
70
70
property . key . name === 'debug'
@@ -84,7 +84,7 @@ export default ESLintUtils.RuleCreator(getDocsUrl)<Options, MessageIds>({
84
84
const { arguments : args } = node . parent as TSESTree . CallExpression ;
85
85
86
86
const literalNodeScreenModuleName = args . find (
87
- args =>
87
+ ( args ) =>
88
88
isLiteral ( args ) &&
89
89
typeof args . value === 'string' &&
90
90
LIBRARY_MODULES . includes ( args . value )
@@ -100,7 +100,7 @@ export default ESLintUtils.RuleCreator(getDocsUrl)<Options, MessageIds>({
100
100
hasImportedScreen =
101
101
isObjectPattern ( declaratorNode . id ) &&
102
102
declaratorNode . id . properties . some (
103
- property =>
103
+ ( property ) =>
104
104
isProperty ( property ) &&
105
105
isIdentifier ( property . key ) &&
106
106
property . key . name === 'screen'
@@ -114,7 +114,7 @@ export default ESLintUtils.RuleCreator(getDocsUrl)<Options, MessageIds>({
114
114
}
115
115
116
116
hasImportedScreen = node . specifiers . some (
117
- s => isImportSpecifier ( s ) && s . imported . name === 'screen'
117
+ ( s ) => isImportSpecifier ( s ) && s . imported . name === 'screen'
118
118
) ;
119
119
} ,
120
120
// checks if import has shape:
@@ -171,11 +171,11 @@ export default ESLintUtils.RuleCreator(getDocsUrl)<Options, MessageIds>({
171
171
}
172
172
} ,
173
173
'Program:exit' ( ) {
174
- renderVariableDeclarators . forEach ( renderVar => {
174
+ renderVariableDeclarators . forEach ( ( renderVar ) => {
175
175
const renderVarReferences = context
176
176
. getDeclaredVariables ( renderVar ) [ 0 ]
177
177
. references . slice ( 1 ) ;
178
- renderVarReferences . forEach ( ref => {
178
+ renderVarReferences . forEach ( ( ref ) => {
179
179
const parent = ref . identifier . parent ;
180
180
if (
181
181
isMemberExpression ( parent ) &&
0 commit comments