This repository has been archived by the owner on May 30, 2024. It is now read-only.
forked from plotly/plotly.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
82 lines (82 loc) · 2.41 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
{
"root": true,
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 5
},
"env": {
"commonjs": true
},
"globals": {
"Promise": true,
"Float32Array": true,
"Float64Array": true,
"Uint8Array": true,
"Int8Array": true,
"Uint8ClampedArray": true,
"Int16Array": true,
"Uint16Array": true,
"Int32Array": true,
"Uint32Array": true,
"ArrayBuffer": true,
"DataView": true,
"SVGElement": false
},
"rules": {
"no-trailing-spaces": [2],
"no-multiple-empty-lines": [2, {"max": 2, "maxEOF": 0}],
"eol-last": [2],
"indent": [0],
"indent-legacy": [2, 4, {"SwitchCase": 1}],
"max-len": [0, 80],
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
"curly": [2, "multi-line"],
"camelcase": [2, {"properties": "never"}],
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"semi": [2],
"semi-spacing": [2, {"before": false, "after": true}],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"keyword-spacing": [2, {"overrides": {
"if": {"after": false},
"for": {"after": false},
"while": {"after": false},
"switch": {"after": false},
"catch": {"after": false}
}}],
"no-spaced-func": [2],
"space-in-parens": [2, "never"],
"space-before-function-paren": [2, "never"],
"space-before-blocks": [2],
"padded-blocks": [2, "never"],
"spaced-comment": [2, "always"],
"no-tabs": [2],
"no-multi-spaces": [2, {"ignoreEOLComments": true}],
"no-whitespace-before-property": [2],
"no-unexpected-multiline": [2],
"no-floating-decimal": [2],
"space-infix-ops": [2, {"int32Hint": true}],
"quotes": [2, "single"],
"quote-props": ["error", "as-needed"],
"dot-notation": [2],
"dot-location": [2, "property"],
"operator-linebreak": [2, "after"],
"eqeqeq": [2],
"new-cap": [2, { "capIsNewExceptionPattern": "^MathJax\\.." }],
"no-redeclare": [2, {"builtinGlobals": true}],
"no-shadow": [0, {"builtinGlobals": true}],
"block-scoped-var": [2],
"no-unused-vars": [2],
"one-var": [2, {"initialized": "never"}],
"no-undef-init": [2],
"no-use-before-define": [2, "nofunc"],
"no-loop-func": [2],
"no-console": [0],
"no-unused-labels": [2],
"no-useless-escape": [0],
"func-name-matching": ["error", "always"],
"no-prototype-builtins": [0]
}
}