-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.yml
160 lines (139 loc) · 1.93 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
---
env:
node: true
es6: true
parser: "babel-eslint"
parserOptions:
sourceType: module
rules:
indent:
- 2
- 2
- SwitchCase: 1
no-mixed-spaces-and-tabs:
- 1
max-len:
- 1
- 80
- 4
# - ignoreComments: true
# ignoreUrls: true
no-extra-semi: 2
semi-spacing:
- 2
- before: false
after: true
semi:
- 2
- always
no-extra-boolean-cast: 2
radix: 2
wrap-iife:
- 2
- inside
yoda: 2
quotes:
- 2
- single
# Variables
no-shadow: 2
no-delete-var: 2
no-label-var: 2
no-shadow-restricted-names: 2
no-undef-init: 2
no-undef:
- 2
- typeof: true
no-unused-vars:
- 2
- vars: all
args: none
no-use-before-define:
- 2
- nofunc
# Node.js
no-path-concat: 2
no-restricted-modules:
- 2
- domain
- freelist
- smalloc
- sys
# Stylistic Issues
brace-style:
- 2
- 1tbs
- allowSingleLine: false
camelcase:
- 2
- properties: always
comma-spacing:
- 2
- before: false
after: true
comma-style:
- 2
- last
comma-dangle:
- 2
- never
no-unreachable: 2
no-var: 2
default-case: 2
# Checking
eqeqeq:
- 2
- always
use-isnan: 2
# Spaces
array-bracket-spacing:
- 2
- never
eol-last: 2
no-multiple-empty-lines:
- 2
- max: 2
linebreak-style:
- 2
- unix
keyword-spacing:
- 2
- before: true
after: true
space-before-blocks:
- 2
- always
space-before-function-paren:
- 2
- anonymous: always
named: never
space-in-parens:
- 2
- never
space-infix-ops: 2
space-unary-ops: 2
# JSDOC
require-jsdoc: 1
# valid-jsdoc:
# - 2
# - requireReturn: false
# prefer:
# returns: return
new-parens: 2
# ES2015
arrow-parens:
- 2
- always
arrow-spacing:
- 2
- before: true
after: true
constructor-super: 2
generator-star-spacing:
- 2
- both
no-class-assign: 2
no-const-assign: 2
no-dupe-class-members: 2
no-this-before-super: 2
...