forked from rethinkdb/horizon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
97 lines (96 loc) · 3.27 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
const OFF = 0;
const WARN = 1;
const ERROR = 2;
module.exports = {
extends: "eslint:recommended",
rules: {
"arrow-body-style": [ERROR, "as-needed"],
"array-bracket-spacing": [ ERROR, "always" ],
"arrow-parens": [ ERROR, "always" ],
"arrow-spacing": [ ERROR ],
"block-spacing": [ ERROR, "always" ],
"brace-style": [ ERROR, "1tbs", { "allowSingleLine": true } ],
"comma-dangle": [ ERROR, "always-multiline" ],
"comma-spacing": [ ERROR ],
"comma-style": [ ERROR, "last" ],
"constructor-super": [ ERROR ],
"curly": [ ERROR, "all" ],
"dot-notation": [ ERROR ],
"eqeqeq": [ ERROR, "allow-null" ],
"func-style": [ ERROR, "declaration", { "allowArrowFunctions": true} ],
"indent": [ ERROR, 2 ],
"key-spacing": [ ERROR ],
"keyword-spacing": [ ERROR ],
"linebreak-style": [ ERROR, "unix" ],
"new-parens": [ ERROR ],
"max-len": [ ERROR, 80 ],
"no-array-constructor": [ ERROR ],
"no-case-declarations": [ ERROR ],
"no-class-assign": [ ERROR ],
"no-confusing-arrow": [ ERROR ],
"no-console": [ OFF ],
"no-const-assign": [ ERROR ],
"no-constant-condition": [ ERROR ],
"no-dupe-class-members": [ ERROR ],
"no-eval": [ ERROR ],
"no-extend-native": [ ERROR ],
"no-extra-semi": [ ERROR ],
"no-floating-decimal": [ ERROR ],
"no-implicit-coercion": [ ERROR ],
"no-implied-eval": [ ERROR ],
"no-invalid-this": [ ERROR ],
"no-labels": [ ERROR ],
"no-lonely-if": [ ERROR ],
"no-mixed-requires": [ ERROR ],
"no-multi-spaces": [ ERROR ],
"no-multi-str": [ ERROR ],
"no-multiple-empty-lines": [ ERROR, { "max": 2, "maxEOF": 1 } ],
"no-native-reassign": [ ERROR ],
"no-new-func": [ ERROR ],
"no-new-object": [ ERROR ],
"no-new-require": [ ERROR ],
"no-new-wrappers": [ ERROR ],
"no-param-reassign": [ ERROR ],
"no-proto": [ ERROR ],
"no-return-assign": [ ERROR ],
"no-self-compare": [ ERROR ],
"no-sequences": [ ERROR ],
"no-shadow": [ ERROR ],
"no-shadow-restricted-names": [ ERROR ],
"no-this-before-super": [ ERROR ],
"no-throw-literal": [ ERROR ],
"no-trailing-spaces": [ ERROR ],
"no-unexpected-multiline": [ ERROR ],
"no-unneeded-ternary": [ ERROR ],
"no-unreachable": [ ERROR ],
"no-use-before-define": [ ERROR, "nofunc" ],
"no-var": [ ERROR ],
"no-void": [ ERROR ],
"no-with": [ ERROR ],
"object-curly-spacing": [ ERROR, "always" ],
"one-var": [ ERROR, { "uninitialized": "always", "initialized": "never" } ],
"operator-assignment": [ ERROR, "always" ],
"operator-linebreak": [ ERROR, "after" ],
"padded-blocks": [ ERROR, "never" ],
"prefer-const": [ ERROR ],
"prefer-template": [ ERROR ],
"quote-props": [ ERROR, "as-needed" ],
"quotes": [ ERROR, "single", "avoid-escape" ],
"semi": [ ERROR, "always" ],
"semi-spacing": [ ERROR ],
"space-before-blocks": [ ERROR, "always" ],
"space-before-function-paren": [ ERROR, "never" ],
"space-in-parens": [ ERROR, "never" ],
"space-infix-ops": [ ERROR ],
"space-unary-ops": [ ERROR ],
"spaced-comment": [ ERROR, "always" ],
"strict": [ ERROR, "global" ],
"wrap-iife": [ ERROR, "inside" ],
"yoda": [ ERROR, "never" ],
},
env: {
"es6": true,
"node": true,
"mocha": true,
},
};