-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
56 lines (55 loc) · 1.12 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
"use strict";
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8
},
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"object-curly-spacing": [
"error",
"always"
],
"strict": [2, "global"],
"global-strict": [0, "always"],
"prefer-const": "error",
"no-var": "error",
"no-const-assign": "error",
"camelcase": "error",
"space-before-function-paren": "error",
"object-curly-newline": "error",
"brace-style": "error",
"comma-dangle": "error",
"comma-spacing": ["error", {before: false, after: true}],
"no-multi-spaces": "error",
"no-unreachable": "error",
"no-unused-expressions": "error",
"space-infix-ops": "error",
"keyword-spacing": ["error", {before: true, after: true}],
"key-spacing": "error",
"space-unary-ops": "error",
"max-len": ["error", 150], // max line width.
"max-lines": ["error", 250], // max lines per file.
"spaced-comment": "error"
}
};