Skip to content

Commit 51b41b1

Browse files
committed
refactor: replace deprecated tseslint.config with defineConfig
The tseslint.config() function was deprecated in favor of ESLint's native defineConfig() from eslint/config (introduced in ESLint v9.22.0). Co-Authored-By: Claude
1 parent afb2e1a commit 51b41b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
import { defineConfig } from 'eslint/config';
12
import js from '@eslint/js';
23
import globals from 'globals';
34
import reactHooks from 'eslint-plugin-react-hooks';
45
import reactRefresh from 'eslint-plugin-react-refresh';
56
import tseslint from 'typescript-eslint';
67

7-
export default tseslint.config(
8+
export default defineConfig(
89
{ ignores: ['dist'] },
910
{
1011
extends: [js.configs.recommended, ...tseslint.configs.recommended],

0 commit comments

Comments
 (0)