Skip to content

Commit

Permalink
refactor: use default import for typescript-eslint, and other small c…
Browse files Browse the repository at this point in the history
…hanges
  • Loading branch information
haoqunjiang committed Feb 9, 2025
1 parent 15a8613 commit dd01589
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/configs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import tseslint, { config } from 'typescript-eslint'
import tseslint from 'typescript-eslint'
import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'

const CONFIG_NAMES = [
Expand Down
2 changes: 1 addition & 1 deletion src/createConfig.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This is a compatibility layer for the `createConfig` function in <= 14.2.0
// Will be removed in 15.0.0

import * as tseslint from 'typescript-eslint'
import tseslint from 'typescript-eslint'
import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'

import {
Expand Down
2 changes: 1 addition & 1 deletion src/internals.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as tseslint from 'typescript-eslint'
import tseslint from 'typescript-eslint'
import vueParser from 'vue-eslint-parser'
import pluginVue from 'eslint-plugin-vue'
import type { Parser } from '@typescript-eslint/utils/ts-eslint'
Expand Down
4 changes: 2 additions & 2 deletions src/utilities.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import process from 'node:process'
import * as tseslint from 'typescript-eslint'
import tseslint from 'typescript-eslint'
import type { TSESLint } from '@typescript-eslint/utils'

import { TsEslintConfigForVue } from './configs'
Expand Down Expand Up @@ -80,7 +80,7 @@ export function defineConfigWithVueTs(
flattenConfigs,
insertAndReorderConfigs,
resolveVueTsConfigs,
tseslint.config,
tseslint.config, // this might not be necessary, but it doesn't hurt to keep it
)
}

Expand Down

0 comments on commit dd01589

Please sign in to comment.