forked from F5Networks/f5-declarative-onboarding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
69 lines (55 loc) · 1.48 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
extends: airbnb-base
parserOptions:
ecmaVersion: 6
sourceType: script
env:
mocha: true
rules:
# This looks better when multiple functions are
# chained together (unless they are all one-liners)
arrow-body-style:
- error
- always
# Trailing commas look bad
comma-dangle: off
# ES6 provides names where possible
func-names:
- error
- as-needed
# 'multiline' is the default, but that does not allow us to have just one parameter
# on a line by itself, so let's just be consistent
function-paren-newline:
- error
- consistent
# Haven't found a work-around for this yet
import/no-dynamic-require: off
# Just because
indent:
- error
- 4
max-len:
- error
- 110
# Beacuse, I mean, really...
no-plusplus:
- error
- allowForLoopAfterthoughts: true
# Allow function declarations at the bottom of a file. They are hoisted in ES6.
no-use-before-define:
- error
- functions: false
variables: true
classes: true
# Allow updating propertes of function parameters. This is the eslint default
# but AirBnb overrides it
no-param-reassign:
- error
- props: false
# node 4 does not support destructuring
prefer-destructuring:
- error
- array: false
object: false
# node 4 does not support rest params
prefer-rest-params:
- off