-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
74 lines (53 loc) · 1.69 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
parserOptions:
ecmaVersion: 2018
sourceType: module
extends :
- airbnb-base
rules:
# Airbnb has this to guard against hoisting bugs, personally I think this is
# rare and preventing it makes code less readable
no-use-before-define: off
# Airbnb disallows syntax like for..in dues to browser polyfill issues
no-restricted-syntax: off
# Can be useful for only loading a module after a condition
global-require: off
# Usually intentional if used
no-await-in-loop: off
no-loop-func: off
# Valid uses for writing to properties of function params: The page object
# is passed around and built up by various functions
# Also using [].reduce to build up a map
# We want to be able to do opts => { opts = opts || {}; ...}
no-param-reassign: off
default-case: off
radix: off
# This rule is too strict and applies to objects you didn't create
no-underscore-dangle: off
no-return-assign: error
# Swtich off array asignment requirement as it triggers for things like:
# const x = someArray[12]
prefer-destructuring:
- error
- AssignmentExpression:
array: false
# Needed to map operation to service file
import/no-dynamic-require: off
# I think this makes sense but would be cusing to add it in for modules
# that are already exporting in another way
import/prefer-default-export: off
# Just annoying
guard-for-in: off
no-plusplus: off
import/no-extraneous-dependencies:
- warn
- devDependencies:
- test/**/*.js
- script/**/*.js
# Prettier normalises this on push and this is annoying for windows dev
linebreak-style: off
no-console: off
overrides:
- files:
- test/**/*.js
env:
mocha: true