-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
47 lines (47 loc) · 1.33 KB
/
.eslintrc.js
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
35
36
37
38
39
40
41
42
43
44
45
46
47
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
jest: true,
},
extends: [
'eslint:recommended',
'next',
'next/core-web-vitals',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
},
plugins: ['react', '@typescript-eslint'],
rules: {
'no-var': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': 'off',
'no-unused-expressions': 'off',
'@typescript-eslint/no-unused-expressions': ['error'],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'react/react-in-jsx-scope': 'off',
'react/jsx-handler-names': [
'off',
{
checkLocalVariables: true,
checkInlineFunction: true,
},
],
'@typescript-eslint/explicit-module-boundary-types': 'off',
'no-undef': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'react/display-name': 'off',
'react/prop-types': 'off',
},
}