-
Notifications
You must be signed in to change notification settings - Fork 29
/
.eslintrc.js
45 lines (45 loc) · 1008 Bytes
/
.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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
reportUnusedDisableDirectives: true,
plugins: [
'@typescript-eslint',
'react',
'prettier',
'jest',
'react-hooks',
'testing-library',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:jest/recommended',
'plugin:testing-library/react',
],
env: {
browser: true,
jest: true,
node: true,
es6: true,
},
rules: {
'jest/valid-title': 'off',
'jest/expect-expect': 'off',
'jest/no-disabled-tests': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'testing-library/render-result-naming-convention': 'off',
},
overrides: [
{
files: ['*/__tests__/**/*'],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
},
],
};