forked from LiskHQ/lisk-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
119 lines (116 loc) · 3.25 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:react/recommended"
],
"plugins": [
"import",
"babel",
"jest"
],
"globals": {
"describe": true,
"it": true,
"beforeEach": true,
"afterEach": true,
"ipc": true,
"jest": true,
"expect": true,
"PRODUCTION": true
},
"env": {
"es2020": true,
"browser": true,
"node": true
},
"settings": {
"import/resolver" : {
"alias" : {
"map" : [
["@store", "./src/store"],
["@utils", "./src/utils/"],
["@api", "./src/utils/api/"],
["@actions", "./src/store/actions"],
["@constants", "./src/constants/"],
["@shared", "./src/components/shared"],
["@screens", "./src/components/screens/"],
["@toolbox", "./src/components/toolbox/"],
["@src", "./src"],
["@fixtures", "./test/constants/"]
],
"extensions": [".js"]
}
}
},
"rules": {
"arrow-parens": "off",
"react/jsx-props-no-spreading": "off",
"jsx-a11y/control-has-associated-label": "off",
"import/no-cycle": "off",
"import/named": "off",
"jsx-a11y/alt-text": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/heading-has-content": "off",
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/button-has-type": "off",
"react/default-props-match-prop-types": "off",
"react/destructuring-assignment": "off",
"react/forbid-prop-types": "off",
"react/jsx-filename-extension": "off",
"react/jsx-no-bind": "off",
"react/jsx-no-target-blank": "off",
"react/no-access-state-in-setstate": "off",
"react/no-array-index-key": "off",
"react/no-did-mount-set-state": "off",
"react/no-did-update-set-state": "off",
"react/no-multi-comp": "off",
"react/no-unused-prop-types": "off",
"react/no-unused-state": "off",
"react/prefer-stateless-function": "off",
"react/require-default-props": "off",
"react/sort-comp": "off",
"react/display-name": "off",
"implicit-arrow-linebreak": "off",
"react/jsx-closing-tag-location": "off",
"jest/no-focused-tests": "error",
"prefer-destructuring": "off",
"prefer-object-spread": 2,
"func-names": "off",
"global-require": "off",
"new-cap": ["error", {
"newIsCapExceptions": ["mnemonic"]
}],
"react/prop-types": "off",
"no-plusplus": "off",
"no-underscore-dangle": "off",
"import/no-extraneous-dependencies": "off",
"linebreak-style": 0,
"no-param-reassign": "off",
"complexity": ["error", 10],
"max-depth": ["error", 3],
"max-nested-callbacks": ["error", 3],
"max-statements": ["error", 10],
"max-lines": ["error", 300]
},
"overrides": [
{
"files": [
"*.test.js",
"*.spec.js"
],
"rules": {
"max-depth": ["error", 2],
"max-nested-callbacks": ["error", 4],
"max-statements": ["error", 30],
"max-lines": ["error", 500]
}
}
]
}