-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
41 lines (41 loc) · 1.28 KB
/
.eslintrc
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
{
"extends": "airbnb-base",
"env": {
"node": true,
"mocha": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": "latest"
},
"plugins": ["chai-friendly"],
"rules": {
"array-bracket-spacing": [1, "never"],
"camelcase": [1],
"class-methods-use-this": 0, // We want to allow helper functions that don't use 'this' in classes
"linebreak-style": 0,
"max-len": [0, 80, 4],
"no-console": [0],
"no-else-return": [0],
"no-multi-spaces": [0],
"no-multiple-empty-lines": [0], // allow indented comments (like this one)
"no-plusplus": [0],
"no-underscore-dangle": [0],
"object-curly-newline": 0,
"object-curly-spacing": [1,
"always", {
"arraysInObjects": false,
"objectsInObjects": true
}
],
"operator-linebreak": [1, "after"],
"padded-blocks": [1],
"prefer-destructuring": 1,
"quotes": [1, "single", "avoid-escape"],
"radix": 0, // Dec 2018: We always use base 10, so specifying it each time seems excessive
"space-before-function-paren": [1, {"anonymous": "always", "named": "always"}],
"space-in-parens": [1],
"template-curly-spacing": ["warn", "never"],
"chai-friendly/no-unused-expressions": 2
}
}