-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
93 lines (80 loc) · 1.28 KB
/
.eslintrc.yaml
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
---
extends:
- eslint:recommended
- plugin:flowtype/recommended
- plugin:import/errors
- plugin:import/warnings
- plugin:promise/recommended
parser: babel-eslint
parserOptions:
ecmaVersion: 2018
env:
browser: true
es6: true
node: true
plugins:
- babel
- flowtype
- import
- promise
rules:
func-names: 0
import/no-extraneous-dependencies: 0
import/no-named-as-default: 0
import/no-unresolved:
- error
- {}
indent:
- error
- 2
- SwitchCase: 1
ignoredNodes:
- ConditionalExpression
- TemplateLiteral
linebreak-style:
- error
- unix
max-len:
- 1
- code: 80
comments: 80
ignoreUrls: true
max-statements:
- warn
- 40
no-console: 1
no-loop-func: 2
no-sequences: 2
no-trailing-spaces: 0
no-use-before-define:
- 'off'
- functions: false
classes: false
quotes:
- error
- single
- allowTemplateLiterals: true
avoidEscape: true
semi: 0
space-in-parens:
- 1
- always
- exceptions:
- "{}"
- "()"
- "[]"
- empty
# Babel
babel/new-cap: 1
babel/object-curly-spacing:
- 0 # Disable until there is a setting for parenthesis
- always
- arraysInObjects: false
objectsInObjects: false
babel/no-invalid-this: 0
babel/semi:
- 1
- never
settings:
import/ignore:
- node_modules