-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
60 lines (56 loc) · 1.62 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
parser: babel-eslint
plugins:
- jest
extends:
- airbnb
- plugin:jest/recommended
env:
es6: true
browser: true
node: true
jest/globals: true
rules:
array-bracket-spacing: [error]
global-require: off
semi: [error, never]
comma-dangle: [error, never]
comma-style: [error, last]
computed-property-spacing: [error, never]
func-call-spacing: [error, never]
id-length: [error, { "exceptions": ["_"] }]
class-methods-use-this: off
key-spacing: [error]
consistent-return: off
no-underscore-dangle: off
no-multi-assign: off
no-param-reassign: off
no-magic-numbers: [error]
no-constant-condition: [error]
no-inline-comments: [error]
no-lonely-if: [error]
no-mixed-operators: [error]
no-unneeded-ternary: [error]
no-else-return: [error]
no-confusing-arrow: off
no-unused-expressions: [error, {allowShortCircuit: true}]
yoda: [error]
complexity: [error, 5]
max-depth: [error, 1]
max-lines: [error, 300]
max-nested-callbacks: [error, 3]
max-params: [error, 4]
newline-per-chained-call: [error]
react/prefer-stateless-function: off
react/jsx-filename-extension: [1, { "extensions": [".spec.js", ".jsx"] }]
react/forbid-prop-types: off
react/require-default-props: off
react/no-find-dom-node: off
react/no-array-index-key: off
import/no-extraneous-dependencies: [error, {devDependencies: true, packageDir: ['./', '../../']}]
import/prefer-default-export: off
import/no-named-as-default: off
import/no-named-as-default-member: off
jsx-a11y/no-static-element-interactions: off
jsx-a11y/href-no-hash: off
jsx-a11y/label-has-for: off
jsx-a11y/interactive-supports-focus: off