-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.json
33 lines (32 loc) · 1.16 KB
/
.eslintrc.json
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
{
"extends": "airbnb-base",
"env": {
"es6": true,
"node": true,
"mocha": true
},
"plugins": [
"import",
"node",
"promise"
],
"rules": {
"comma-dangle": ["error", "never"],
"max-len": ["error", {"code": 120, "tabWidth": 4, "ignoreUrls": true}],
"indent": [ "warn", 2, { "SwitchCase": 1} ],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"no-underscore-dangle": ["off"],
"no-console": "error",
"valid-jsdoc": "warn",
"object-curly-spacing": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"computed-property-spacing": ["error", "never"],
"prefer-arrow-callback": ["error", { "allowNamedFunctions": true }],
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"one-var": ["error", { "initialized": "never" }],
"one-var-declaration-per-line": ["error", "initializations"],
"func-names": ["error", "as-needed"],
"object-shorthand": "off",
"no-unused-expressions": "off"
}
}