forked from retejs/rete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
86 lines (86 loc) · 1.93 KB
/
.eslintrc
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
{
"parser": "babel-eslint",
"ecmaFeatures": {
"modules": true
},
"globals": {
"document": true,
"alight": true,
"window": true,
"d3": true,
"console": true,
"uint8": true,
"Promise": true,
"HTMLElement": true,
"alert": true,
"prompt": true
},
"rules": {
"comma-dangle": [1, "never"],
"no-cond-assign": 1,
"no-console": 1,
"no-constant-condition": 1,
"sort-imports": "warn",
"no-duplicate-imports": "warn",
"no-control-regex": 1,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty-character-class": 1,
"no-empty": 1,
"no-extra-boolean-cast": 2,
"no-extra-semi": 1,
"no-func-assign": 2,
"no-inner-declarations": 1,
"no-negated-in-lhs": 1,
"no-sparse-arrays": 2,
"no-unreachable": 2,
"default-case": 1,
"eqeqeq": 1,
"no-caller": 2,
"no-else-return": 1,
"no-eq-null": 2,
"no-eval": 2,
"no-fallthrough": 1,
"no-implied-eval": 1,
"no-labels": 1,
"no-loop-func": 2,
"no-multi-spaces": 1,
"no-new": 1,
"no-proto": 1,
"no-redeclare": 1,
"no-self-compare": 1,
"init-declarations": 1,
"no-shadow": 2,
"no-undef": 1,
"no-undefined": 2,
"no-unused-vars": 1,
"no-use-before-define": 1,
"camelcase": [1, {
"properties": "always"
}],
"comma-spacing": [1, {
"before": false,
"after": true
}],
"indent": ["error", 4],
"new-cap": [1, {
"newIsCap": true
}],
"newline-after-var": [1, "always"],
"no-mixed-spaces-and-tabs": [1, "smart-tabs"],
"no-multiple-empty-lines": [1, {
"max": 1
}],
"quotes": [1, "single", "avoid-escape"],
"space-before-blocks": [1, "always"],
"space-in-parens": [1, "never"],
"keyword-spacing": 1,
"max-depth": [1, 4],
"max-len": [1, 100, 4, {
"ignoreComments": true
}],
"max-params": [1, 6],
"max-statements": [1, 8]
}
}