This repository was archived by the owner on Oct 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig.json
More file actions
80 lines (80 loc) · 2.79 KB
/
config.json
File metadata and controls
80 lines (80 loc) · 2.79 KB
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
{
modes: {
javascript: {
name: "JavaScript",
highlighter: "ace/mode/javascript",
extensions: [
"js"
],
completionTriggers: ["."],
commands: {
"Tools:Check": {
scriptUrl: "./check.js",
options: {
undef: true,
unused: true,
es5: true,
esnext: true,
devel: true,
browser: true,
node: true,
laxcomma: true,
laxbreak: true,
lastsemic: true,
onevar: false,
passfail: false,
maxerr: 1000,
expr: true,
multistr: true,
globalstrict: true
},
inputs: {
text: true
},
internal: true,
sandbox: "check"
},
"Tools:Index": {
scriptUrl: "./index.js",
inputs: {
text: true
},
internal: true,
sandbox: "index"
},
"Tools:Beautify": {
scriptUrl: "./beautify.js",
inputs: {
text: true,
preferences: true
}
},
"Tools:Complete:Snippet": {
scriptUrl: "/default/command/snippet_completer.js",
snippets: {
log: "console.log(${1})",
def: "define(function(require, exports, module) {\n\t${1}\n});",
fn: "function ${1}(${2}) {\n\t${3}\n}",
foreach: "for(var ${1:i} = 0; ${1:i} < ${2:array}.length; ${1:i}++) {\n\tvar ${3:item} = ${2:array}[${1:i}];\n\t${4}\n}",
forEach: "forEach(function(${0:el}) {\n\t${1}\n});",
setTimeout: "setTimeout(function() {\n\t${1}\n}, ${2:0})",
iterkeys: "Object.keys(${1:obj}).forEach(function(${2:key}) {\n\t${3}\n});"
},
internal: true,
sandbox: "complete"
}
},
handlers: {
index: [
"Tools:Index"
],
check: [
"Tools:Check"
],
complete: [
"Tools:Complete:Snippet"
]
}
}
}
}