Skip to content

Commit a87045a

Browse files
authored
chore(eslint.config): replace deprecated 'tseslint.config' with 'defineConfig' (#3144)
1 parent a2d0c19 commit a87045a

File tree

3 files changed

+134
-44
lines changed

3 files changed

+134
-44
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/', 'website/'],
1314
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
"shx": "^0.4.0",
175175
"ts-expect": "^1.3.0",
176176
"typescript": "^5.9.2",
177-
"typescript-eslint": "^8.42.0",
177+
"typescript-eslint": "^8.43.0",
178178
"vitest": "^3.2.4",
179179
"wonka": "^6.3.5"
180180
},

pnpm-lock.yaml

Lines changed: 131 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)