@@ -117,9 +117,9 @@ module.exports = {
117
117
*/
118
118
function flowCheck ( prop ) {
119
119
return (
120
- prop . type === 'ObjectTypeProperty' &&
121
- prop . value . type === 'BooleanTypeAnnotation' &&
122
- rule . test ( getPropName ( prop ) ) === false
120
+ prop . type === 'ObjectTypeProperty'
121
+ && prop . value . type === 'BooleanTypeAnnotation'
122
+ && rule . test ( getPropName ( prop ) ) === false
123
123
) ;
124
124
}
125
125
@@ -131,9 +131,9 @@ module.exports = {
131
131
function regularCheck ( prop ) {
132
132
const propKey = getPropKey ( prop ) ;
133
133
return (
134
- propKey &&
135
- propTypeNames . indexOf ( propKey ) >= 0 &&
136
- rule . test ( getPropName ( prop ) ) === false
134
+ propKey
135
+ && propTypeNames . indexOf ( propKey ) >= 0
136
+ && rule . test ( getPropName ( prop ) ) === false
137
137
) ;
138
138
}
139
139
@@ -144,8 +144,8 @@ module.exports = {
144
144
*/
145
145
function nestedPropTypes ( prop ) {
146
146
return (
147
- prop . type === 'Property' &&
148
- prop . value . type === 'CallExpression'
147
+ prop . type === 'Property'
148
+ && prop . value . type === 'CallExpression'
149
149
) ;
150
150
}
151
151
@@ -222,9 +222,9 @@ module.exports = {
222
222
return ;
223
223
}
224
224
if (
225
- node . value &&
226
- node . value . type === 'CallExpression' &&
227
- propWrapperUtil . isPropWrapperFunction (
225
+ node . value
226
+ && node . value . type === 'CallExpression'
227
+ && propWrapperUtil . isPropWrapperFunction (
228
228
context ,
229
229
context . getSourceCode ( ) . getText ( node . value . callee )
230
230
)
@@ -249,8 +249,8 @@ module.exports = {
249
249
}
250
250
const right = node . parent . right ;
251
251
if (
252
- right . type === 'CallExpression' &&
253
- propWrapperUtil . isPropWrapperFunction (
252
+ right . type === 'CallExpression'
253
+ && propWrapperUtil . isPropWrapperFunction (
254
254
context ,
255
255
context . getSourceCode ( ) . getText ( right . callee )
256
256
)
@@ -292,10 +292,10 @@ module.exports = {
292
292
Object . keys ( list ) . forEach ( ( component ) => {
293
293
// If this is a functional component that uses a global type, check it
294
294
if (
295
- list [ component ] . node . type === 'FunctionDeclaration' &&
296
- list [ component ] . node . params &&
297
- list [ component ] . node . params . length &&
298
- list [ component ] . node . params [ 0 ] . typeAnnotation
295
+ list [ component ] . node . type === 'FunctionDeclaration'
296
+ && list [ component ] . node . params
297
+ && list [ component ] . node . params . length
298
+ && list [ component ] . node . params [ 0 ] . typeAnnotation
299
299
) {
300
300
const typeNode = list [ component ] . node . params [ 0 ] . typeAnnotation ;
301
301
const annotation = typeNode . typeAnnotation ;
0 commit comments