Skip to content

Commit 3140ab7

Browse files
authored
style: add new eslint rule import/no-duplicates (minio#1190)
* add-eslint-rule * Update client.ts
1 parent 0251b3d commit 3140ab7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ module.exports = {
101101
fixStyle: 'separate-type-imports',
102102
},
103103
],
104+
'import/no-duplicates': 'error',
104105
'unused-imports/no-unused-imports': 'error',
105106
'import/no-amd': 'error',
106107
},

src/internal/client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ import type {
4444
IRequest,
4545
RequestHeaders,
4646
ResponseHeader,
47+
StatObjectOpts,
4748
Transport,
4849
} from './type.ts'
49-
import type { StatObjectOpts } from './type.ts'
5050
import type { UploadedPart } from './xml-parser.ts'
5151
import * as xmlParsers from './xml-parser.ts'
5252

0 commit comments

Comments
 (0)