-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
39 lines (39 loc) · 1.22 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
34
35
36
37
38
39
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"jest": true
},
"extends": [ "airbnb-base" ],
"plugins": [ "mocha", "node"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"no-console": "off",
"linebreak-style": 0,
"comma-dangle": ["error", "never"],
"no-unused-vars": ["error", { "argsIgnorePattern": "^next" }],
"arrow-body-style": ["error", "as-needed", { "requireReturnForObjectLiteral": true }],
"operator-linebreak": ["error", "after", { "overrides": { "?": "ignore", ":": "ignore" } }],
"max-len": ["error", { "ignoreComments": true, "code": 140 }],
"object-shorthand": [2, "consistent"],
"global-require": "off",
"prefer-destructuring": ["error", {
"VariableDeclarator": {
"array": false,
"object": false
}
}],
"no-underscore-dangle": ["error", { "allow": ["_id"]}],
"object-curly-newline": 0,
"implicit-arrow-linebreak": 0,
"newline-per-chained-call": "off"
}
}