forked from mayeaux/nodetube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
53 lines (53 loc) · 1.47 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
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"node": true,
"mocha": true,
"jquery": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018
},
"rules": {
"indent": [
"error",
2
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"no-multiple-empty-lines": [
"error",
{ "max": 1, "maxEOF": 1}
],
"keyword-spacing": ["error", { "before": false, "after": false , "overrides": {
"else": { "before": true, "after": true },
"try": { "before": true, "after": true },
"catch": { "before": true, "after": false },
"const": { "before": true, "after": true }
} }],
"space-before-function-paren": ["error", "never"],
"space-before-blocks": ["error", "never"],
"operator-assignment": ["error", "never"],
"spaced-comment": ["error", "always", { "exceptions": ["*"], "block": { "balanced": true } }],
"comma-dangle": ["error", "never"],
"no-useless-escape": 0,
"no-console": 0,
"no-unused-vars": 1,
"no-undef": 0,
"no-redeclare": 0,
"no-unreachable": 0
}
};