-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
65 lines (65 loc) · 1.68 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"project": "./tsconfig.json"
},
"ignorePatterns": [
"node_modules/",
"functions/node_modules/",
"functions/dist/",
"functions/generated/",
"app/node_modules/",
"app/dist/"
],
"env": {
"node": true,
"es6": true
},
"plugins": [
"@typescript-eslint",
"prettier",
"react",
"react-hooks",
"header"
],
"rules": {
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^unused" }
],
"react/jsx-uses-vars": "warn",
"react/jsx-uses-react": "warn",
"react-hooks/rules-of-hooks": "warn",
"react-hooks/exhaustive-deps": "warn",
"prettier/prettier": "warn",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-alert": "warn",
"no-debugger": "warn",
"no-var": "warn",
"prefer-const": "warn",
"prefer-rest-params": "warn",
"prefer-spread": "warn",
"eqeqeq": "warn",
"@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/no-for-in-array": "warn",
"@typescript-eslint/no-misused-promises": "warn",
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
"@typescript-eslint/prefer-includes": "warn",
"@typescript-eslint/prefer-string-starts-ends-with": "warn",
"header/header": [
"warn",
"block",
[
"*",
" * @license",
" * Copyright 2019 Google LLC",
" *",
" * Use of this source code is governed by an MIT-style license that can be",
" * found in the LICENSE file or at https://opensource.org/licenses/MIT.",
" "
]
]
}
}