This repository has been archived by the owner on Dec 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
65 lines (65 loc) · 1.63 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/react',
'prettier/@typescript-eslint',
'plugin:jest/recommended',
],
plugins: ['jest', '@typescript-eslint'],
env: {
browser: true,
node: true,
},
settings: {
react: {
version: 'detect',
},
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
rules: {
'@typescript-eslint/no-undef': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/spaced-comment': 'off',
'@typescript-eslint/no-restricted-globals': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/class-name-casing': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/prefer-interface': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
},
},
{
files: ['**/__tests__/**', '**/__mocks__/**'],
globals: {
mockData: true,
},
env: {
jest: true,
},
},
],
globals: {
fetch: true,
__DEV__: true,
window: true,
FormData: true,
XMLHttpRequest: true,
requestAnimationFrame: true,
cancelAnimationFrame: true,
page: true,
browser: true,
jestPuppeteer: true,
},
};