-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
101 lines (101 loc) · 2.08 KB
/
.eslintrc.json
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
{
"parser": "@typescript-eslint/parser",
"plugins": [
"react",
"@typescript-eslint",
"prettier",
"simple-import-sort"
],
"env": {
"jasmine": true,
"jest": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"airbnb-typescript",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:@next/next/recommended"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"project": "./tsconfig.json"
},
"rules": {
"curly": 2,
"prettier/prettier": [2],
"no-console": 1,
"eqeqeq": 2,
"react/prop-types": 0,
"@typescript-eslint/prefer-interface": 0,
"@typescript-eslint/no-empty-interface": 1,
"@typescript-eslint/consistent-type-definitions": 1,
"react/react-in-jsx-scope": "off",
"@typescript-eslint/naming-convention": [
1,
{
"selector": "class",
"format": [
"PascalCase"
]
},
{
"selector": "interface",
"format": [
"PascalCase"
],
"custom": {
"regex": "^I[A-Z]",
"match": false
}
}
],
"@typescript-eslint/no-unused-vars": [
2,
{
"argsIgnorePattern": "^_"
}
],
"simple-import-sort/imports": 1,
"require-atomic-updates": 1,
"newline-after-var": 2,
"newline-before-return": 2,
"import/no-cycle": [2, { "maxDepth": 2 }]
},
"overrides": [
{
"files": ["**/__tests__/**"],
"rules": {
"@typescript-eslint/no-explicit-any": 0
}
}
],
"settings": {
"react": {
"version": "detect"
}
},
"globals": {
"Promise": true,
"Headers": true,
"module": true,
"window": true,
"setTimeout": true,
"clearTimeout": true,
"Set": true,
"XMLHttpRequest": true,
"console": true,
"global": true,
"fetch": true,
"__DEV__": true
}
}