Skip to content
Permalink
Browse files
style: one element per line
  • Loading branch information
gajus committed May 15, 2020
1 parent 87cc7b2 commit 68f23955403b6d4e8c76bf84988e15ead763f92a
Showing 1 changed file with 4 additions and 1 deletion.
@@ -1,6 +1,9 @@
import isSimpleType from './isSimpleType';

const complexTypesWithoutWrap = ['TupleTypeAnnotation', 'ObjectTypeAnnotation'];
const complexTypesWithoutWrap = [
'TupleTypeAnnotation',
'ObjectTypeAnnotation',
];

export default (node) => {
return !isSimpleType(node) && !complexTypesWithoutWrap.includes(node.type);

0 comments on commit 68f2395

Please sign in to comment.