-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
34 lines (32 loc) · 1.02 KB
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { FlatCompat } from '@eslint/eslintrc';
const config = [
...new FlatCompat().extends('next/core-web-vitals'),
{
files: ['**/*.{js,jsx,ts,tsx}'],
ignores: ['**/node_modules/**', '**/public/**', '**/.next/**'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
window: 'readonly',
document: 'readonly',
navigator: 'readonly',
process: 'readonly',
__dirname: 'readonly',
require: 'readonly',
module: 'readonly',
exports: 'readonly',
},
},
rules: {
'@next/next/no-img-element': 'off',
'import/no-unresolved': 'off',
'no-empty': 'off',
'no-undef': 'warn',
'react-hooks/exhaustive-deps': 'warn',
'react-hooks/rules-of-hooks': 'error',
'react/display-name': 'off',
},
},
];
export default config;