-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
69 lines (63 loc) · 1.42 KB
/
.eslintrc.yml
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
extends:
- eslint:recommended
- plugin:import/errors
- plugin:import/warnings
- plugin:inferno/recommended
- plugin:react/recommended
- google
plugins:
- babel
- require-jsdoc-except
rules:
# Disabled rules
no-console: off
comma-dangle: off
arrow-parens: off
space-before-function-paren: off
object-curly-spacing: off
padded-blocks: off
camelcase: off
require-jsdoc: off
no-invalid-this: off
# Enabled rules
babel/no-invalid-this: 2
curly: [2, "all"]
indent: [2, 4, { SwitchCase: 1, ignoredNodes: ["JSXElement *"]}]
space-infix-ops: 2
prefer-template: 2
valid-jsdoc: [2, { prefer: { return: "returns"}, requireReturn: false, requireReturnDescription: false }]
max-len: [2, {
code: 130,
tabWidth: 2,
ignoreUrls: true,
}]
max-lines-per-function: [2, 60]
max-lines: [2, {
max: 600,
skipComments: true,
skipBlankLines: true
}]
require-jsdoc-except/require-jsdoc: ["error", {
require: {
FunctionDeclaration: true,
MethodDefinition: true,
FunctionExpression: true,
},
ignore: ["constructor", "componentDidMount", "componentDidUpdate", "componentWillUnmount", "render"]
}]
parser: babel-eslint
parserOptions:
ecmaVersion: 8
env:
browser: true
node: true
globals:
Promise: true
describe: true
beforeAll: true
afterAll: true
it: true
expect: true
jest: true
afterEach: true
beforeEach: true