-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
31 lines (31 loc) · 938 Bytes
/
.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
{
extends: "nava",
env: {
mocha: true
},
parserOptions: {
ecmaVersion: 2017
},
rules: {
comma-dangle: ["error", "always-multiline"],
indent: ["error", 2, {"CallExpression": {"arguments": 2},
"FunctionDeclaration": {"parameters": 2}}],
max-len: ["error", {"code": 100}],
multiline-comment-style: ["error", "separate-lines"],
no-extra-semi: "error",
// we rely on the side effect of constructors throwing on invalid props
no-new: "off",
// we use es6 and eslint-config-nava is not es6 only yet
prefer-const: "error",
no-var: "error",
"promise/no-native": "error",
"promise/catch-or-return": "error",
"promise/no-return-wrap": "error",
"promise/valid-params": "error",
"quotes": ["error", "double", {"allowTemplateLiterals": true}],
"space-before-function-paren": ["error", "never"]
},
globals: {
"rootRequire": true
}
}