Skip to content

Commit dd01589

Browse files
committed
refactor: use default import for typescript-eslint, and other small changes
1 parent 15a8613 commit dd01589

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/configs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import tseslint, { config } from 'typescript-eslint'
1+
import tseslint from 'typescript-eslint'
22
import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'
33

44
const CONFIG_NAMES = [

src/createConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is a compatibility layer for the `createConfig` function in <= 14.2.0
22
// Will be removed in 15.0.0
33

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

77
import {

src/internals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as tseslint from 'typescript-eslint'
1+
import tseslint from 'typescript-eslint'
22
import vueParser from 'vue-eslint-parser'
33
import pluginVue from 'eslint-plugin-vue'
44
import type { Parser } from '@typescript-eslint/utils/ts-eslint'

src/utilities.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import process from 'node:process'
2-
import * as tseslint from 'typescript-eslint'
2+
import tseslint from 'typescript-eslint'
33
import type { TSESLint } from '@typescript-eslint/utils'
44

55
import { TsEslintConfigForVue } from './configs'
@@ -80,7 +80,7 @@ export function defineConfigWithVueTs(
8080
flattenConfigs,
8181
insertAndReorderConfigs,
8282
resolveVueTsConfigs,
83-
tseslint.config,
83+
tseslint.config, // this might not be necessary, but it doesn't hurt to keep it
8484
)
8585
}
8686

0 commit comments

Comments
 (0)