forked from dcramer/site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
224 lines (187 loc) · 4.71 KB
/
index.html
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
---
layout: editor
---
<div class="intro">
<p>JSHint is a tool to detect errors and potential problems in JavaScript
code and can be used to enforce coding conventions.</p>
</div>
<div class="editor">
<div class="editorArea">
<div class="alert alert-error hide">
JSHint has found potential problems in your code.
See <a href="#report">detailed report</a>.
</div>
<div class="alert alert-success hide">
Good job! JSHint hasn't found any problems with your code.
</div>
<textarea id="editor">// Your code goes here.</textarea>
<div class="controls">
<button data-action="lint" class="btn btn-primary">Lint</button>
</div>
</div>
<div class="options">
<div>
<h3>Warn</h3>
<ul class="inputs-list">
<li>
<label class="checkbox">
<input type="checkbox" name="debug" class="neg" checked>
About debugging code
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="forin" checked>
About unsafe <code>for..in</code>
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="eqnull" class="neg" checked>
About <code>== null</code>
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="noarg" checked>
About <code>arguments.caller</code> and <code>.callee</code>
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="noempty" checked>
About empty blocks
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="eqeqeq" checked>
About unsafe comparisons
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="boss" class="neg" checked>
About assignments inside <code>if/for/...</code>
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="loopfunc" class="neg" checked>
About functions inside loops
</label>
</li>
</ul>
<ul class="inputs-list">
<li>
<label class="checkbox">
<input type="checkbox" name="evil" class="neg" checked>
About <code>eval</code>
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="laxbreak" class="neg" checked>
About unsafe line breaks
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="bitwise" checked>
When bitwise operators are used
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="strict" checked>
When code is not in strict mode
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="undef" checked>
When variable is undefined
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="unused" checked>
When variable is defined but not used
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="curly" checked>
When blocks omit <code>{}</code>
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="nonew" class="neg" checked>
When <code>new</code> is used for side effects
</label>
</li>
</ul>
</div>
<div>
<h3>Assume</h3>
<ul class="inputs-list">
<li>
<label class="checkbox">
<input type="checkbox" name="browser" checked>
Browser
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="devel">
Development (<code>console</code>, etc.)
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="jquery">
jQuery
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="esnext">
ECMAScript 6
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="moz">
Mozilla JavaScript extensions
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="es3">
ECMAScript 3
</label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="node">
NodeJS
</label>
</li>
</ul>
<a class="more-options" href="/docs/" target="_blank">More options</a>
</div>
</div>
<div class="report hide" id="report">
<h4>JSHint Report</h4>
<div class="options-string">
<pre></pre>
</div>
<h4>Errors:</h4>
<ul class="jshint-errors"></ul>
<p class="documentation-link">
Feel like some warnings are incorrect? You can configure JSHint to turn off
some warnings. Read more in the <a href="/docs/" target="_blank">documentation</a>.
</p>
</div>
</div>