Skip to content

Commit a0b88b3

Browse files
authored
chore: enable import/no-duplicates eslint rule (#8199)
1 parent f8ce783 commit a0b88b3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.eslintrc.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ module.exports = defineConfig({
8989
{ prefer: 'type-imports' }
9090
],
9191

92+
'import/no-duplicates': 'error',
9293
'import/order': 'error',
9394
'sort-imports': [
9495
'error',

packages/plugin-vue/src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import fs from 'fs'
22
import type { Plugin, ViteDevServer } from 'vite'
33
import { createFilter } from '@rollup/pluginutils'
4+
/* eslint-disable import/no-duplicates */
45
import type {
56
SFCBlock,
67
SFCScriptCompileOptions,
78
SFCStyleCompileOptions,
89
SFCTemplateCompileOptions
910
} from 'vue/compiler-sfc'
1011
import type * as _compiler from 'vue/compiler-sfc'
12+
/* eslint-enable import/no-duplicates */
1113
import { resolveCompiler } from './compiler'
1214
import { parseVueRequest } from './utils/query'
1315
import { getDescriptor, getSrcDescriptor } from './utils/descriptorCache'

0 commit comments

Comments
 (0)