This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
75 lines (70 loc) · 2.2 KB
/
.eslintrc
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
{
"plugins": [
"@typescript-eslint",
"react",
"import"
],
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"airbnb-typescript",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"globals": {
"manywho": false,
"$": false,
"ga": false,
"module": false,
"jest": false,
"expect": false,
"test": false,
"beforeEach": false,
"describe": false
},
"rules": {
// "off" or 0 - turn the rule off
// "warn" or 1 - turn the rule on as a warning (doesn't affect exit code)
// "error" or 2 - turn the rule on as an error (exit code will be 1)
"semi": 2,
"indent": [2, 4],
"max-len": [2, 150],
"no-trailing-spaces": 0,
"brace-style": [ 2, "1tbs", { "allowSingleLine": true }],
"import/order": 0,
"padded-blocks": 0,
"class-methods-use-this": 0,
"operator-linebreak": 0,
"no-confusing-arrow": 0,
"object-curly-newline": 0,
"no-param-reassign": ["error", { "props": false }],
"linebreak-style": 0,
"no-nested-ternary": 0,
"import/prefer-default-export": 0,
"import/no-named-as-default": 0,
"react/jsx-uses-vars": [2],
"react/jsx-no-undef": [2, { "allowGlobals": true }],
"react/prop-types": [0],
"react/destructuring-assignment": 0,
"react/jsx-filename-extension": 0,
"react/jsx-indent": [2, 4],
"react/jsx-indent-props": [2, 4],
"react/jsx-props-no-spreading": 0,
"react/no-unescaped-entities": 0,
"react/no-access-state-in-setstate": 0,
"react/button-has-type": 0,
"react/no-array-index-key": 0,
"react/no-string-refs": 0,
"@typescript-eslint/indent": [2, 4, { "SwitchCase": 1 }],
"@typescript-eslint/no-unused-vars": 2,
"jsx-a11y/label-has-associated-control": 0,
"jsx-a11y/label-has-for": 0
}
}