-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
31 lines (31 loc) · 1.14 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
{
"root": true,
"extends": "airbnb-base",
"env": {
"node": true,
"es6": true,
"mocha": true
},
"rules": {
"arrow-parens": ["error", "as-needed"],
"arrow-body-style": ["warn", "as-needed", { "requireReturnForObjectLiteral": true }],
"comma-dangle": ["warn", "only-multiline"],
"global-require": ["warn"],
"func-names": ["off"],
"max-len": ["warn", 120, 2],
"new-cap": ["off", { "capIsNewExceptions": [ "Router" ] }],
"no-param-reassign": ["error", { "props": false }],
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"no-underscore-dangle": ["off", { "allowAfterThis": true }],
"no-unused-expressions": ["error", { "allowShortCircuit": true }],
"no-unused-vars": ["warn", { "vars": "all", "args": "none", "caughtErrors": "none" }],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"object-shorthand": ["warn"],
"padded-blocks": ["error", "never"],
"prefer-template": ["off"],
"class-methods-use-this": ["off"],
"quote-props": ["error", "consistent-as-needed", { "keywords": true }],
"semi": ["error", "never"],
"no-console": ["off"],
}
}