File tree 2 files changed +27
-11
lines changed
2 files changed +27
-11
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import { dirname } from "path" ;
2
+ import { fileURLToPath } from "url" ;
3
+ import { FlatCompat } from "@eslint/eslintrc" ;
4
+
5
+ const __filename = fileURLToPath ( import . meta. url ) ;
6
+ const __dirname = dirname ( __filename ) ;
7
+
8
+ const compat = new FlatCompat ( {
9
+ baseDirectory : __dirname ,
10
+ } ) ;
11
+
12
+ const eslintConfig = [
13
+ ...compat . config ( {
14
+ extends : [ "next/core-web-vitals" , "next/typescript" ] ,
15
+ rules : {
16
+ "react/no-unescaped-entities" : "off" ,
17
+ "@typescript-eslint/no-explicit-any" : "off" ,
18
+ "@typescript-eslint/no-unused-vars" : "off" ,
19
+ "react/display-name" : "off" ,
20
+ "@typescript-eslint/ban-ts-comment" : "off" ,
21
+ "@typescript-eslint/no-empty-object-type" : "off" ,
22
+ "@typescript-eslint/prefer-as-const" : "off" ,
23
+ } ,
24
+ } ) ,
25
+ ] ;
26
+
27
+ export default eslintConfig ;
You can’t perform that action at this time.
0 commit comments