-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
47 lines (47 loc) · 1.37 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 = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'next/core-web-vitals',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
],
rules: {
'@typescript-eslint/no-non-null-assertion': 2,
'@typescript-eslint/no-explicit-any': 2,
'@typescript-eslint/explicit-member-accessibility': 'error',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unnecessary-type-constraint': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@next/next/no-img-element': 'off',
'react-hooks/exhaustive-deps': 'off',
'import/order': [
'warn',
{
groups: ['external', 'builtin', 'internal', 'parent', 'sibling', 'index'],
'newlines-between': 'always',
pathGroups: [
{
pattern: '@/**',
group: 'parent',
},
],
pathGroupsExcludedImportTypes: [],
},
],
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'import/no-unresolved': 'off',
},
};