-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
89 lines (85 loc) · 1.53 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
root: true
env:
browser: true
node: true
es6: true
parser: babel-eslint
parserOptions:
ecmaVersion: 2018
sourceType: module
extends:
- eslint:recommended
# TODO: enable when eslint-import-resolver-webpack is fixed
# - plugin:import/errors
# - plugin:import/warnings
rules:
quotes:
- error
- single
- avoidEscape: true
object-curly-spacing:
- error
- always
space-before-function-paren:
- error
- never
semi:
- error
- always
object-curly-newline: 0
arrow-body-style:
- 2
- as-needed
arrow-parens:
- 0
- as-needed
no-console: 0
no-alert: 0
no-trailing-spaces:
- error
no-return-assign: 0
no-param-reassign:
- 2
- props: false
no-underscore-dangle: 0
no-unused-vars:
- error
- argsIgnorePattern: ^_
varsIgnorePattern: ^_
no-use-before-define: 0
no-mixed-operators: 0
no-new: 0
no-debugger: 0
function-paren-newline: 0
comma-dangle:
- warn
- never
max-len:
- warn
- 100
- ignoreComments: true
ignoreUrls: true
ignorePattern: "^\\s*<|^\\$|\\s*background|\\s*transition|\\s*\\+|\\s*\\$"
indent:
- error
- 2
- ignoreComments: true
SwitchCase: 1
linebreak-style:
- error
- unix
func-names: 0
implicit-arrow-linebreak: 0
prefer-template: 0
class-methods-use-this: 0
radix: 0
operator-linebreak:
- 2
- after
- overrides:
'|>': 'before'
keyword-spacing:
- error
- after: true
before: true
lines-between-class-members: 0