-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
41 lines (41 loc) · 1.39 KB
/
.eslintrc.js
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
module.exports = {
/* Extend airbnb's style-guide enforcement */
"extends": "eslint-config-airbnb/base",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
},
"env": {
"es6": true,
"node": true,
"browser": true
},
"rules": {
"import/no-unresolved": 0,
"brace-style": [2, "stroustrup", { "allowSingleLine": true }],
/* Warn about long line */
"max-len": [1, 100, 2],
/* Warn about use of console */
"no-console": [1],
/* Warn about use of debugger */
"no-debugger": [1],
/* Allow nested ternaries */
"no-nested-ternary": 0,
/* Warn when declaring a variable with a name that already exists in the containing scope */
"no-shadow": [1],
/* Forbid referencing a variable before it is defined, but allow using declared functions */
"no-use-before-define": [2, "nofunc"],
/* Warn when referencing an undefined variable */
"no-undef": [1],
/* Forbid expressions that are never used */
"no-unused-expressions": [2, { allowShortCircuit: true, allowTernary: true }],
/* Warn when declaring a variable without using it */
"no-unused-vars": [1, {"vars": "local", "args": "none"}],
"no-warning-comments": [1, {"terms": ["fixme", "todo"], "location": "start"}],
"valid-jsdoc": [2, {
"requireReturn": false,
"requireParamDescription": false,
"requireReturnDescription": false
}],
},
}