Skip to content

Commit

Permalink
return "private" type
Browse files Browse the repository at this point in the history
  • Loading branch information
evless committed Nov 23, 2018
1 parent 34bd4d4 commit 28ba389
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/rules/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import importType from '../core/importType'
import isStaticRequire from '../core/staticRequire'
import docsUrl from '../docsUrl'

const defaultGroups = ['builtin', 'external', 'private', 'absolute', 'sibling', 'index']
const defaultGroups = ['builtin', 'external', 'private', 'absolute', 'parent', 'sibling', 'index']

// REPORTING AND FIXING

Expand Down Expand Up @@ -259,7 +259,16 @@ function isInVariableDeclarator(node) {
(node.type === 'VariableDeclarator' || isInVariableDeclarator(node.parent))
}

const types = ['builtin', 'external', 'private', 'internal', 'parent', 'sibling', 'index', 'absolute']
const types = [
'builtin',
'external',
'private',
'internal',
'parent',
'sibling',
'index',
'absolute',
]

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

0 comments on commit 28ba389

Please sign in to comment.