File tree Expand file tree Collapse file tree 4 files changed +367
-484
lines changed Expand file tree Collapse file tree 4 files changed +367
-484
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import react from "eslint-plugin-react" ;
2
+ import typescriptEslint from "@typescript-eslint/eslint-plugin" ;
3
+ import globals from "globals" ;
4
+ import tsParser from "@typescript-eslint/parser" ;
5
+ import path from "node:path" ;
6
+ import { fileURLToPath } from "node:url" ;
7
+ import js from "@eslint/js" ;
8
+ import { FlatCompat } from "@eslint/eslintrc" ;
9
+
10
+ const __filename = fileURLToPath ( import . meta. url ) ;
11
+ const __dirname = path . dirname ( __filename ) ;
12
+ const compat = new FlatCompat ( {
13
+ baseDirectory : __dirname ,
14
+ recommendedConfig : js . configs . recommended ,
15
+ allConfig : js . configs . all
16
+ } ) ;
17
+
18
+ export default [ ...compat . extends (
19
+ "eslint:recommended" ,
20
+ "plugin:react/recommended" ,
21
+ "plugin:@typescript-eslint/recommended" ,
22
+ ) , {
23
+ plugins : {
24
+ react,
25
+ "@typescript-eslint" : typescriptEslint ,
26
+ } ,
27
+
28
+ languageOptions : {
29
+ globals : {
30
+ ...globals . browser ,
31
+ } ,
32
+
33
+ parser : tsParser ,
34
+ ecmaVersion : "latest" ,
35
+ sourceType : "module" ,
36
+ } ,
37
+
38
+ settings : {
39
+ react : {
40
+ version : "detect" ,
41
+ } ,
42
+ } ,
43
+
44
+ rules : { } ,
45
+ } ] ;
You can’t perform that action at this time.
0 commit comments