1
- import { defineConfig } from " eslint/config" ;
2
- import path from " node:path" ;
3
- import { fileURLToPath } from " node:url" ;
4
- import js from " @eslint/js" ;
5
- import { FlatCompat } from " @eslint/eslintrc" ;
1
+ import { defineConfig } from ' eslint/config' ;
2
+ import path from ' node:path' ;
3
+ import { fileURLToPath } from ' node:url' ;
4
+ import js from ' @eslint/js' ;
5
+ import { FlatCompat } from ' @eslint/eslintrc' ;
6
6
7
7
const __filename = fileURLToPath ( import . meta. url ) ;
8
8
const __dirname = path . dirname ( __filename ) ;
9
9
const compat = new FlatCompat ( {
10
- baseDirectory : __dirname ,
11
- recommendedConfig : js . configs . recommended ,
12
- allConfig : js . configs . all
10
+ baseDirectory : __dirname ,
11
+ recommendedConfig : js . configs . recommended ,
12
+ allConfig : js . configs . all
13
13
} ) ;
14
14
15
- export default defineConfig ( [ {
16
- extends : compat . extends ( "next/core-web-vitals" ) ,
15
+ export default defineConfig ( [
16
+ {
17
+ extends : compat . extends ( 'next/core-web-vitals' ) ,
17
18
18
19
rules : {
19
- "@next/next/no-img-element" : 0 ,
20
- } ,
21
- } ] ) ;
20
+ '@next/next/no-img-element' : 0 ,
21
+ 'react/no-unescaped-entities' : 0
22
+ }
23
+ }
24
+ ] ) ;
0 commit comments