Skip to content

Commit 28ba389

Browse files
committed
return "private" type
1 parent 34bd4d4 commit 28ba389

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/rules/order.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import importType from '../core/importType'
44
import isStaticRequire from '../core/staticRequire'
55
import docsUrl from '../docsUrl'
66

7-
const defaultGroups = ['builtin', 'external', 'private', 'absolute', 'sibling', 'index']
7+
const defaultGroups = ['builtin', 'external', 'private', 'absolute', 'parent', 'sibling', 'index']
88

99
// REPORTING AND FIXING
1010

@@ -259,7 +259,16 @@ function isInVariableDeclarator(node) {
259259
(node.type === 'VariableDeclarator' || isInVariableDeclarator(node.parent))
260260
}
261261

262-
const types = ['builtin', 'external', 'private', 'internal', 'parent', 'sibling', 'index', 'absolute']
262+
const types = [
263+
'builtin',
264+
'external',
265+
'private',
266+
'internal',
267+
'parent',
268+
'sibling',
269+
'index',
270+
'absolute',
271+
]
263272

264273
// Creates an object with type-rank pairs.
265274
// Example: { index: 0, sibling: 1, parent: 1, external: 1, builtin: 2, internal: 2 }

0 commit comments

Comments
 (0)