-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
35 lines (35 loc) · 1.04 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
module.exports = {
"extends": "standard",
"env": {
"node": true
},
"globals": {
"describe": false,
"afterEach": false,
"beforeEach": false,
"it": false
},
"rules": {
"camelcase": [0, {"properties": "always"}],
"max-len": [2, {"code": 150} ],
"no-var": "error",
"prefer-const": "error",
"semi": ["error", "always"],
"indent": ["error", 4],
"no-duplicate-imports":"error",
"import/order": ["error", {"newlines-between": "ignore"}],
"object-curly-spacing": ["error", "always"],
"space-infix-ops": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-unused-vars": "error",
"no-param-reassign": "error",
"arrow-body-style": ["error", "as-needed"],
"no-useless-constructor": "error",
"no-useless-return": "error",
"import/prefer-default-export": "error",
},
"parserOptions": {
"ecmaVersion": 2018,
"impliedStrict": true
}
};