Skip to content

Commit 165d1e3

Browse files
authored
refactor: rename private-imports to private-import
1 parent 08e6b27 commit 165d1e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rules/order.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const categories = {
4646
type Category = keyof typeof categories
4747

4848
const defaultGroups = [
49-
'private-imports',
49+
'private-import',
5050
'builtin',
5151
'external',
5252
'parent',
@@ -825,7 +825,7 @@ function getRequireBlock(node: TSESTree.Node) {
825825
const types: ImportType[] = [
826826
'builtin',
827827
'external',
828-
'private-imports',
828+
'private-import',
829829
'internal',
830830
'unknown',
831831
'parent',

src/utils/import-type.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function typeTest(
163163
return 'builtin'
164164
}
165165
if (isPrivateImport(name)) {
166-
return 'private-imports'
166+
return 'private-import'
167167
}
168168
if (isRelativeToParent(name)) {
169169
return 'parent'

0 commit comments

Comments
 (0)