-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
73 lines (73 loc) · 2.27 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 = {
extends: ['airbnb-typescript-prettier', 'prettier'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2021,
},
env: {
commonjs: true,
es6: true,
node: true,
},
rules: {
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
'react/function-component-definition': [
2,
{
namedComponents: 'arrow-function',
unnamedComponents: 'arrow-function',
},
],
'class-methods-use-this': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'jsx-a11y/control-has-associated-label': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/ban-types': 'off',
'no-plusplus': 'off',
'no-await-in-loop': 'off',
'lines-between-class-members': 'off',
'no-restricted-syntax': 'off',
radix: 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'no-empty': 'off',
'no-console': 'off',
'consistent-return': 'off',
'no-restricted-globals': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'react/button-has-type': 'off',
'no-use-before-define': 'off',
'react/jsx-filename-extension': 'off',
'react/prop-types': 'off',
'jsx-a11y/alt-text': 'off',
'react/jsx-props-no-spreading': 'off',
'comma-dangle': 'off',
'consistent-this': [0, 'component'],
'@typescript-eslint/no-this-alias': 'off',
'react/forbid-prop-types': 'off',
'no-self-compare': 'off',
'react/require-default-props': 'off',
'no-return-assign': 'off',
'react/destructuring-assignment': 'off',
camelcase: 'off',
'jsx-a11y/label-has-associated-control': 'off',
'prefer-destructuring': 'off',
'react-hooks/exhaustive-deps': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'no-throw-literal': 'off',
'no-mixed-spaces-and-tabs': 'off',
'no-tabs': 'off',
'react/no-unescaped-entities': 'off',
'no-underscore-dangle': 'off',
'import/no-cycle': 'off',
'max-len': [2, 175, 2],
'@typescript-eslint/no-empty-function': 'off',
},
};