-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.4 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
48
module.exports = {
extends: ['next', 'prettier'],
plugins: [
'@typescript-eslint',
'ban',
'import',
'no-restricted-imports',
'react-hooks',
'react',
'simple-import-sort',
],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-var-requires': 'off',
'@next/next/no-html-link-for-pages': 'off',
'@next/next/no-page-custom-font': 'off',
eqeqeq: 'error',
'import/no-default-export': 'error',
'no-console': 'error',
'no-duplicate-imports': 'error',
'no-implicit-globals': 'error',
'react/display-name': 'off',
'react/prop-types': 'off',
'react/jsx-key': 'off',
'react/no-unescaped-entities': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'no-restricted-imports': [
'error',
{
paths: [
{
name: 'lodash',
message: 'Import [module] from lodash/[module] instead',
},
],
},
],
'valid-typeof': 'error',
},
};