-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
73 lines (73 loc) · 1.79 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
'next',
'next/core-web-vitals',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'react',
'@typescript-eslint',
],
rules: {
'eol-last': 'off',
'@typescript-eslint/no-redeclare': ['error'],
'@typescript-eslint/no-unused-vars': [
'error', {
argsIgnorePattern: '_',
varsIgnorePattern: '_',
},
],
'@typescript-eslint/no-use-before-define': ['error', {
functions: false,
}],
'import/extensions': ['error', { json: 'always', tsx: 'never' }],
'import/no-cycle': 'off',
'import/prefer-default-export': 0,
'jsx-a11y/anchor-is-valid': ['error', {
components: ['Link'],
specialLink: ['hrefLeft', 'hrefRight'],
aspects: ['invalidHref', 'preferButton'],
}],
'lines-between-class-members': 0,
'max-len': ['error', 140, {
ignoreStrings: true,
}],
'@next/next/no-img-element': 'off',
'@next/next/no-page-custom-font': 'off',
'no-param-reassign': 0,
'no-redeclare': 0,
'no-undef': 0,
'no-unused-expressions': 0,
'no-unused-vars': 0,
'no-use-before-define': 0,
'object-curly-newline': ['error', {
consistent: true,
}],
radix: 0,
'react/destructuring-assignment': 0,
'react-hooks/exhaustive-deps': 'off',
'react/jsx-filename-extension': [2, { extensions: ['.tsx'] }],
'react/jsx-props-no-spreading': 0,
'react/jsx-sort-props': [2, { reservedFirst: false }],
'react/require-default-props': 0,
},
settings: {
'import/resolver': {
typescript: {},
},
},
};