-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslintrc
59 lines (59 loc) · 2.1 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
{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
__SAGE2__: true, WebsocketIO: true, isMaster: true,
ui: true, wsio: true, clientID: true, hasMouse: true,
Class: true, SAGE2_App: true, applications: true,
SAGE2_initialize: true, UIBuilder: true, DataSharing: true,
broadcast: true,
PDFJS: true, Snap: true, mina: true, webix: true, $$: true, moment: true,
SAGE2_BlockStreamingApp: true, movie_player: true, SAGE2_WebGLApp: true,
formatHHMMSS: true, formatAMPM: true, format24Hr: true, cleanURL: true,
readFile: true, sage2Log: true, getCookie: true, addCookie: true,
showMessage: true, smallTansparentGIF: true, smallWhiteGIF: true,
SAGE2_browser: true, getTransform: true,
isEmpty: true, deleteElement: true, initializeArray: true,
isTrue: true, byteBufferToInt: true,
byteBufferToString: true, getParameterByName: true
},
"rules": {
"max-len": [2, 130, {"ignoreComments": true}],
"consistent-this": [2, "_this"],
"no-spaced-func": 2,
"array-bracket-spacing": [2, "never"],
"indent": [2, "tab", {"SwitchCase": 1} ],
"comma-spacing": [2, {"after": true, "before": false}],
"no-mixed-spaces-and-tabs": 2,
"no-with": 2,
"wrap-iife": 2,
"semi": ["error", "always"],
"semi-spacing": ["error", {"before": false, "after": true}],
"curly": ["error", "all"],
"key-spacing": [2, {"beforeColon": false, "afterColon": true, "mode": "minimum"}],
"space-unary-ops": [2, {"words": false, "nonwords": false}],
"space-in-parens": [2, "never"],
"comma-style": [2, "last"],
"no-multi-str": 2,
"quote-props": [2, "as-needed"],
"no-trailing-spaces": 2,
"brace-style": [2, "1tbs", {"allowSingleLine": false}],
"space-before-blocks": [2, "always"],
"space-infix-ops": 2,
"eol-last": 2,
"new-cap": ["error", {"capIsNew": false, "properties": false}],
"keyword-spacing": 2,
"dot-notation": 2,
"lines-around-comment": 2,
"linebreak-style": [2, "unix"],
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
"no-console": 0,
"no-process-exit": 0,
"no-loop-func": 0,
"no-underscore-dangle": 0,
"no-use-before-define": 0,
}
}