@@ -117,9 +117,9 @@ module.exports = {
117117 */
118118 function flowCheck ( prop ) {
119119 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
123123 ) ;
124124 }
125125
@@ -131,9 +131,9 @@ module.exports = {
131131 function regularCheck ( prop ) {
132132 const propKey = getPropKey ( prop ) ;
133133 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
137137 ) ;
138138 }
139139
@@ -144,8 +144,8 @@ module.exports = {
144144 */
145145 function nestedPropTypes ( prop ) {
146146 return (
147- prop . type === 'Property' &&
148- prop . value . type === 'CallExpression'
147+ prop . type === 'Property'
148+ && prop . value . type === 'CallExpression'
149149 ) ;
150150 }
151151
@@ -222,9 +222,9 @@ module.exports = {
222222 return ;
223223 }
224224 if (
225- node . value &&
226- node . value . type === 'CallExpression' &&
227- propWrapperUtil . isPropWrapperFunction (
225+ node . value
226+ && node . value . type === 'CallExpression'
227+ && propWrapperUtil . isPropWrapperFunction (
228228 context ,
229229 context . getSourceCode ( ) . getText ( node . value . callee )
230230 )
@@ -249,8 +249,8 @@ module.exports = {
249249 }
250250 const right = node . parent . right ;
251251 if (
252- right . type === 'CallExpression' &&
253- propWrapperUtil . isPropWrapperFunction (
252+ right . type === 'CallExpression'
253+ && propWrapperUtil . isPropWrapperFunction (
254254 context ,
255255 context . getSourceCode ( ) . getText ( right . callee )
256256 )
@@ -292,10 +292,10 @@ module.exports = {
292292 Object . keys ( list ) . forEach ( ( component ) => {
293293 // If this is a functional component that uses a global type, check it
294294 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
299299 ) {
300300 const typeNode = list [ component ] . node . params [ 0 ] . typeAnnotation ;
301301 const annotation = typeNode . typeAnnotation ;
0 commit comments