Skip to content

Commit 612d5c4

Browse files
sukvvondai-shi
andauthored
chore(eslint.config): replace deprecated 'tseslint.config' with 'defineConfig' (#3231)
Co-authored-by: Daishi Kato <[email protected]>
1 parent fd1ea8c commit 612d5c4

File tree

3 files changed

+148
-41
lines changed

3 files changed

+148
-41
lines changed

eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import eslint from '@eslint/js'
22
import vitest from '@vitest/eslint-plugin'
3+
import { defineConfig } from 'eslint/config'
34
import importPlugin from 'eslint-plugin-import'
45
import jestDom from 'eslint-plugin-jest-dom'
56
import react from 'eslint-plugin-react'
67
import reactHooks from 'eslint-plugin-react-hooks'
78
import testingLibrary from 'eslint-plugin-testing-library'
89
import tseslint from 'typescript-eslint'
910

10-
export default tseslint.config(
11+
export default defineConfig(
1112
{
1213
ignores: ['dist/', 'examples/'],
1314
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"shx": "^0.4.0",
153153
"tslib": "^2.8.1",
154154
"typescript": "^5.9.2",
155-
"typescript-eslint": "^8.40.0",
155+
"typescript-eslint": "^8.43.0",
156156
"use-sync-external-store": "^1.5.0",
157157
"vitest": "^3.2.4"
158158
},

0 commit comments

Comments
 (0)