Skip to content

Commit

Permalink
chore: enable import/no-duplicates eslint rule (#8199)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 17, 2022
1 parent f8ce783 commit a0b88b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Expand Up @@ -89,6 +89,7 @@ module.exports = defineConfig({
{ prefer: 'type-imports' }
],

'import/no-duplicates': 'error',
'import/order': 'error',
'sort-imports': [
'error',
Expand Down
2 changes: 2 additions & 0 deletions packages/plugin-vue/src/index.ts
@@ -1,13 +1,15 @@
import fs from 'fs'
import type { Plugin, ViteDevServer } from 'vite'
import { createFilter } from '@rollup/pluginutils'
/* eslint-disable import/no-duplicates */
import type {
SFCBlock,
SFCScriptCompileOptions,
SFCStyleCompileOptions,
SFCTemplateCompileOptions
} from 'vue/compiler-sfc'
import type * as _compiler from 'vue/compiler-sfc'
/* eslint-enable import/no-duplicates */
import { resolveCompiler } from './compiler'
import { parseVueRequest } from './utils/query'
import { getDescriptor, getSrcDescriptor } from './utils/descriptorCache'
Expand Down

0 comments on commit a0b88b3

Please sign in to comment.