-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
124 lines (124 loc) · 3.25 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
module.exports = {
env: {
browser: true,
node: true,
es6: true,
jest: true,
},
extends: [
'airbnb',
'airbnb/hooks',
'react-app',
'react-app/jest',
'prettier',
'plugin:prettier/recommended',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
createDefaultProgram: true,
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2019,
sourceType: 'module',
project: './tsconfig.json',
},
plugins: [
'import',
'jsx-a11y',
'react-hooks',
'@typescript-eslint',
'simple-import-sort',
'prettier',
],
overrides: [
{
files: '*.js',
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
],
rules: {
'testing-testing-library/prefer-screen-queries': 'off',
'testing-library/no-unnecessary-act': 'off',
'testing-library/render-result-naming-convention': 'off',
'testing-library/no-node-access': 'off',
'testing-library/no-container': 'off',
'testing-library/prefer-screen-queries': 'off',
'testing-library/prefer-presence-queries': 'off',
'jest/no-conditional-expect': 'off',
'jest/no-mocks-import': 'off',
'jest/no-identical-title': 'off',
'jest/valid-expect': 'off',
'react/no-unstable-nested-components': 'off',
'default-param-last': 'off',
'prettier/prettier': [
'error',
{},
{
usePrettierrc: true,
},
],
'func-names': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'quote-props': ['error', 'consistent-as-needed'],
'react/prop-types': 'off',
'react/destructuring-assignment': 'off',
'react/jsx-filename-extension': ['error', { extensions: ['.jsx', '.tsx'] }],
'react/jsx-props-no-spreading': 'off',
'react/state-in-constructor': 'off',
'react/static-property-placement': 'off',
'react/require-extension': 'off',
'sort-imports': 'off',
'import/export': 'off',
'import/named': 'off',
'import/order': 'off',
'import/first': 'error',
'import/newline-after-import': 'error',
'import/no-duplicates': 'error',
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'simple-import-sort/imports': 'error',
'import/no-cycle': 'off',
'no-unused-vars': 'error',
'no-restricted-syntax': 'off',
'consistent-return': 'off',
'no-unused-expressions': 'off',
'react/no-array-index-key': 'off',
'no-shadow': 'off',
'no-plusplus': 'off',
'react-hooks/exhaustive-deps': 'off',
'default-case': 'off',
'no-continue': 'off',
'for-direction': 'off',
'no-constant-condition': 'off',
'react/require-default-props': 'off',
'no-param-reassign': 'off',
'react/function-component-definition': 'off',
'react/no-unused-prop-types': 'off',
'jsx-a11y/label-has-associated-control': [
'error',
{
required: {
some: ['nesting', 'id'],
},
},
],
'jsx-a11y/label-has-for': [
'error',
{
required: {
some: ['nesting', 'id'],
},
},
],
},
};