File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
- import js from '@eslint/js' ;
2
- import tsparser from '@typescript-eslint/parser' ;
3
- import tseslint from '@typescript-eslint/eslint-plugin' ;
1
+ // @ts -check
2
+
3
+ import eslint from '@eslint/js' ;
4
+ import { defineConfig } from 'eslint/config' ;
5
+ import tseslint from 'typescript-eslint' ;
4
6
import globals from 'globals' ;
5
7
import importPlugin from 'eslint-plugin-import' ;
6
8
import react from 'eslint-plugin-react' ;
7
9
8
- export default tseslint . config (
9
10
// Global ignores (no changes here)
11
+ export default defineConfig (
10
12
{
11
13
ignores : [
12
14
'**/node_modules/**' ,
@@ -24,14 +26,13 @@ export default tseslint.config(
24
26
} ,
25
27
26
28
// Base recommended configurations
27
- js . configs . recommended ,
29
+ eslint . configs . recommended ,
28
30
...tseslint . configs . recommended ,
29
31
30
32
// Main configuration object
31
33
{
32
34
files : [ '**/*.ts' , '**/*.tsx' ] ,
33
35
languageOptions : {
34
- parser : tsparser ,
35
36
globals : { ...globals . node , ...globals . es2021 , ...globals . bun } ,
36
37
} ,
37
38
plugins : {
You can’t perform that action at this time.
0 commit comments