File tree Expand file tree Collapse file tree 3 files changed +45
-16
lines changed Expand file tree Collapse file tree 3 files changed +45
-16
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import { defineConfig } from "eslint/config" ;
2
+ import typescriptEslint from "@typescript-eslint/eslint-plugin" ;
3
+ import _import from "eslint-plugin-import" ;
4
+ import { fixupPluginRules } from "@eslint/compat" ;
5
+ import globals from "globals" ;
6
+ import tsParser from "@typescript-eslint/parser" ;
7
+ import path from "node:path" ;
8
+ import { fileURLToPath } from "node:url" ;
9
+ import js from "@eslint/js" ;
10
+ import { FlatCompat } from "@eslint/eslintrc" ;
11
+
12
+ const __filename = fileURLToPath ( import . meta. url ) ;
13
+ const __dirname = path . dirname ( __filename ) ;
14
+ const compat = new FlatCompat ( {
15
+ baseDirectory : __dirname ,
16
+ recommendedConfig : js . configs . recommended ,
17
+ allConfig : js . configs . all
18
+ } ) ;
19
+
20
+ export default defineConfig ( [ {
21
+ extends : compat . extends ( "eslint:recommended" , "plugin:@typescript-eslint/recommended" ) ,
22
+
23
+ plugins : {
24
+ "@typescript-eslint" : typescriptEslint ,
25
+ import : fixupPluginRules ( _import ) ,
26
+ } ,
27
+
28
+ languageOptions : {
29
+ globals : {
30
+ ...globals . node ,
31
+ ...globals . sourceType ,
32
+ } ,
33
+
34
+ parser : tsParser ,
35
+ ecmaVersion : "latest" ,
36
+ sourceType : "module" ,
37
+ } ,
38
+
39
+ rules : {
40
+ "import/no-duplicates" : "error" ,
41
+ } ,
42
+ } ] ) ;
Original file line number Diff line number Diff line change 7
7
"lint:fix" : " eslint ./workbench/resources/js --ext .ts,.tsx --fix"
8
8
},
9
9
"devDependencies" : {
10
+ "@eslint/compat" : " ^1.3.0" ,
11
+ "@eslint/js" : " ^9.29.0" ,
10
12
"@types/node" : " ^22.7.5" ,
11
13
"@typescript-eslint/eslint-plugin" : " ^8.34.1" ,
12
14
"@typescript-eslint/parser" : " ^8.34.1" ,
13
15
"eslint" : " ^9.29.0" ,
14
16
"eslint-plugin-import" : " ^2.31.0" ,
17
+ "globals" : " ^16.2.0" ,
15
18
"happy-dom" : " ^18.0.1" ,
16
19
"vitest" : " ^3.2.3"
17
20
}
You can’t perform that action at this time.
0 commit comments