-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.yaml
82 lines (55 loc) · 1.3 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
---
extends: eslint:recommended
env:
es2020: true
parserOptions:
# ecmaVersion: 2020
sourceType: module
# parser: babel-eslint
rules:
# Best Practices
semi: [2, never]
curly: [2, multi-line]
comma-dangle: [2, always-multiline]
no-use-before-define: [2, nofunc]
no-loop-func: 1 # should allow arrow function
accessor-pairs: 2
complexity: [2, 32]
consistent-return: 2
default-case: 2
dot-notation: 2
eqeqeq: 2
no-else-return: 2
no-eval: 2
no-empty-label: 2
no-floating-decimal: 2
# Strict Mode
strict: [2, global]
global-strict: 0
# Consistence
quotes: [2, single, avoid-escape]
new-cap: [2, capIsNew: false]
no-underscore-dangle: 0
new-parens: 0
# ES6+
no-var: 2
prefer-const: 2
no-const-assign: 2
no-class-assign: 2
constructor-super: 2
no-this-before-super: 2
no-dupe-class-members: 2
prefer-arrow-callback: 2
prefer-spread: 2
prefer-reflect: 2
prefer-template: 2
object-shorthand: 1 # buggy
require-yield: 1
arrow-parens: [2, as-needed]
arrow-spacing: 2
generator-star-spacing: 1 # buggy for babel async
# Extra
no-proto: 1
no-constant-condition: 1
no-multiple-empty-lines: 2
indent: [2, tab]