forked from weapp-socketio/wxapp-socket-io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.yml
51 lines (47 loc) · 1.34 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
# Support ES2016 features
extends: airbnb
parser: babel-eslint
# plugins: [
# "babel"
# ]
parserOptions:
sourceType: module
rules:
strict: 0
arrow-parens: 0
# babel/arrow-parens: 1
# babel/generator-star-spacing: 1
# babel/new-cap: 1
# babel/array-bracket-spacing: 1
# babel/object-curly-spacing: [1, "always"]
# babel/object-shorthand: 1
# babel/no-await-in-loop: 1
# babel/flow-object-type: 1
no-console: 0
spaced-comment: [2, "always", { exceptions: ["-"]}]
eqeqeq: 0
no-return-assign: 0 # fails for arrow functions
no-var: 2
semi: [2, never]
space-before-function-paren: [2, "never"]
yoda: 0
arrow-spacing: 2
dot-location: [2, "property"]
prefer-arrow-callback: 2
keyword-spacing: [2, { after: true, before: true }]
indent: [2, 2]
camelcase: 0
key-spacing: [1, { beforeColon: false, afterColon: true, mode: "minimum" }]
space-in-parens: [1, "never"]
arrow-body-style: [1, "as-needed"]
no-param-reassign: 0
no-unused-vars: [1, {"vars": "local", "args": "none"}]
no-unused-expressions: ["error", { "allowShortCircuit": true }]
no-restricted-syntax: 0
new-cap: ["error", { "capIsNew": false }]
# new-cap: [2, {"capIsNewExceptions": ["Immutable.Map", "Immutable.Set", "Immutable.List"]}]
no-underscore-dangle: 0
no-use-before-define: 0
func-names: 0
no-cond-assign: 0
default-case: 0