This repository has been archived by the owner on Jul 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
61 lines (61 loc) · 1.54 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
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"page": true,
"browser": true,
"context": true
},
"parserOptions": {
"ecmaVersion": 7,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"globalReturn": true,
"jsx": true
},
"sourceType": "module"
},
"settings": {"react": {"version": "16.12.0"}},
"rules": {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-unused-vars": [
2,
{"argsIgnorePattern": "^_.*", "varsIgnorePattern": "^_.*"}
],
"max-len": [2, {"code": 80, "ignorePattern": "^(im|ex)ports?\\W.*"}],
"no-var": 2,
"no-console": 2,
"object-curly-spacing": [2, "never"],
"comma-dangle": [
2,
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}
],
"indent": 0,
"no-empty": [2, {"allowEmptyCatch": true}],
"linebreak-style": [2, "unix"],
"space-infix-ops": 2,
"quotes": [2, "single", {"allowTemplateLiterals": true}],
"semi": [2, "always"],
"sort-keys": 0,
"sort-imports": 2,
"no-multiple-empty-lines": [2, {"max": 1}]
}
}