Commit cdcf23a
tools: update ESLint to 3.3.0 and enable rules
Update ESLint 3.3.0 and update .eslintrc:
* replace deprecated no-negated-in-lhs rule with no-unsafe-negation
* http://eslint.org/docs/rules/no-negated-in-lhs
* http://eslint.org/docs/rules/no-unsafe-negation
* enable no-template-curly-in-string
* http://eslint.org/docs/rules/no-template-curly-in-string
* enable no-global-assign
* http://eslint.org/docs/rules/no-global-assign
* enable func-call-spacing
* http://eslint.org/docs/rules/func-call-spacing
PR-URL: #8097
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>1 parent be41f58 commit cdcf23aCopy full SHA for cdcf23a
File tree
Expand file treeCollapse file tree
391 files changed
+4755
-5775
lines changedOpen diff view settings
Filter options
- tools/eslint
- conf
- lib
- code-path-analysis
- config
- formatters
- internal-rules
- rules
- testers
- util
- node_modules
- del
- lodash
- fp
- minimatch
- natural-compare
- shelljs
- build
- wordwrap
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
391 files changed
+4755
-5775
lines changedOpen diff view settings
Collapse file
+4-1Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
19 | 19 | |
20 | 20 | |
21 | 21 | |
22 | | - |
23 | 22 | |
24 | 23 | |
| 24 | + |
25 | 25 | |
26 | 26 | |
| 27 | + |
27 | 28 | |
28 | 29 | |
29 | 30 | |
30 | 31 | |
31 | 32 | |
32 | 33 | |
| 34 | + |
33 | 35 | |
34 | 36 | |
35 | 37 | |
| ||
58 | 60 | |
59 | 61 | |
60 | 62 | |
| 63 | + |
61 | 64 | |
62 | 65 | |
63 | 66 | |
|
Collapse file
tools/eslint/conf/category-list.json
Copy file name to clipboardExpand all lines: tools/eslint/conf/category-list.json+6-1Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8 | 8 | |
9 | 9 | |
10 | 10 | |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
11 | 16 | |
12 | 17 | |
13 | 18 | |
| ||
32 | 37 | |
33 | 38 | |
34 | 39 | |
35 | | - |
| 40 | + |
Collapse file
tools/eslint/conf/environments.js
Copy file name to clipboardExpand all lines: tools/eslint/conf/environments.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | | - |
| 11 | + |
12 | 12 | |
13 | 13 | |
14 | 14 | |
|
Collapse file
tools/eslint/conf/eslint-all.js
Copy file name to clipboardExpand all lines: tools/eslint/conf/eslint-all.js+5-6Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
13 | | - |
| 12 | + |
| 13 | + |
14 | 14 | |
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
| 19 | + |
| 20 | + |
| 21 | + |
23 | 22 | |
24 | 23 | |
25 | 24 | |
|
Collapse file
tools/eslint/conf/eslint.json
Copy file name to clipboard100644100755+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
41 | 41 | |
42 | 42 | |
43 | 43 | |
| 44 | + |
44 | 45 | |
45 | 46 | |
46 | 47 | |
| ||
113 | 114 | |
114 | 115 | |
115 | 116 | |
| 117 | + |
116 | 118 | |
117 | 119 | |
118 | 120 | |
| ||
152 | 154 | |
153 | 155 | |
154 | 156 | |
| 157 | + |
155 | 158 | |
156 | 159 | |
157 | 160 | |
| ||
204 | 207 | |
205 | 208 | |
206 | 209 | |
| 210 | + |
207 | 211 | |
208 | 212 | |
209 | 213 | |
| ||
221 | 225 | |
222 | 226 | |
223 | 227 | |
| 228 | + |
224 | 229 | |
225 | 230 | |
226 | 231 | |
|
Collapse file
tools/eslint/lib/ast-utils.js
Copy file name to clipboardExpand all lines: tools/eslint/lib/ast-utils.js+130-35Lines changed: 130 additions & 35 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
| 12 | + |
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
25 | 25 | |
26 | 26 | |
27 | 27 | |
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
35 | | - |
36 | | - |
| 35 | + |
37 | 36 | |
38 | 37 | |
39 | 38 | |
40 | 39 | |
41 | 40 | |
42 | 41 | |
43 | | - |
| 42 | + |
44 | 43 | |
45 | 44 | |
46 | 45 | |
| ||
50 | 49 | |
51 | 50 | |
52 | 51 | |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
53 | 62 | |
54 | 63 | |
55 | 64 | |
56 | 65 | |
57 | 66 | |
58 | 67 | |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
| 68 | + |
63 | 69 | |
64 | 70 | |
65 | 71 | |
| ||
160 | 166 | |
161 | 167 | |
162 | 168 | |
163 | | - |
| 169 | + |
164 | 170 | |
165 | 171 | |
166 | 172 | |
| ||
183 | 189 | |
184 | 190 | |
185 | 191 | |
186 | | - |
| 192 | + |
187 | 193 | |
188 | 194 | |
189 | 195 | |
| ||
285 | 291 | |
286 | 292 | |
287 | 293 | |
288 | | - |
| 294 | + |
289 | 295 | |
290 | 296 | |
291 | 297 | |
| ||
321 | 327 | |
322 | 328 | |
323 | 329 | |
324 | | - |
| 330 | + |
325 | 331 | |
326 | 332 | |
327 | 333 | |
| ||
345 | 351 | |
346 | 352 | |
347 | 353 | |
348 | | - |
| 354 | + |
349 | 355 | |
350 | | - |
| 356 | + |
351 | 357 | |
352 | 358 | |
353 | 359 | |
| ||
358 | 364 | |
359 | 365 | |
360 | 366 | |
| 367 | + |
361 | 368 | |
362 | 369 | |
363 | | - |
| 370 | + |
364 | 371 | |
365 | 372 | |
366 | 373 | |
| ||
392 | 399 | |
393 | 400 | |
394 | 401 | |
395 | | - |
396 | | - |
397 | | - |
398 | | - |
399 | | - |
400 | | - |
401 | | - |
402 | | - |
403 | | - |
404 | | - |
405 | | - |
406 | | - |
407 | 402 | |
408 | 403 | |
409 | 404 | |
410 | 405 | |
411 | 406 | |
| 407 | + |
412 | 408 | |
413 | | - |
| 409 | + |
| 410 | + |
| 411 | + |
| 412 | + |
| 413 | + |
| 414 | + |
| 415 | + |
| 416 | + |
| 417 | + |
| 418 | + |
| 419 | + |
| 420 | + |
| 421 | + |
| 422 | + |
| 423 | + |
| 424 | + |
| 425 | + |
| 426 | + |
| 427 | + |
| 428 | + |
| 429 | + |
| 430 | + |
| 431 | + |
| 432 | + |
| 433 | + |
| 434 | + |
| 435 | + |
| 436 | + |
| 437 | + |
| 438 | + |
| 439 | + |
414 | 440 | |
415 | 441 | |
416 | 442 | |
| ||
585 | 611 | |
586 | 612 | |
587 | 613 | |
| 614 | + |
| 615 | + |
| 616 | + |
| 617 | + |
| 618 | + |
| 619 | + |
| 620 | + |
| 621 | + |
| 622 | + |
| 623 | + |
| 624 | + |
| 625 | + |
| 626 | + |
| 627 | + |
| 628 | + |
| 629 | + |
| 630 | + |
| 631 | + |
| 632 | + |
| 633 | + |
| 634 | + |
| 635 | + |
| 636 | + |
| 637 | + |
| 638 | + |
| 639 | + |
| 640 | + |
| 641 | + |
| 642 | + |
| 643 | + |
| 644 | + |
| 645 | + |
| 646 | + |
| 647 | + |
| 648 | + |
| 649 | + |
| 650 | + |
| 651 | + |
| 652 | + |
| 653 | + |
| 654 | + |
| 655 | + |
| 656 | + |
| 657 | + |
| 658 | + |
| 659 | + |
| 660 | + |
| 661 | + |
| 662 | + |
| 663 | + |
| 664 | + |
| 665 | + |
| 666 | + |
| 667 | + |
| 668 | + |
| 669 | + |
| 670 | + |
| 671 | + |
| 672 | + |
| 673 | + |
| 674 | + |
| 675 | + |
| 676 | + |
| 677 | + |
| 678 | + |
| 679 | + |
| 680 | + |
| 681 | + |
| 682 | + |
588 | 683 | |
589 | 684 | |
0 commit comments