Skip to content

Commit

Permalink
style: one element per line
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed May 15, 2020
1 parent 87cc7b2 commit 68f2395
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rules/arrayStyle/needWrap.js
@@ -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);
Expand Down

0 comments on commit 68f2395

Please sign in to comment.