|
Lines 401-415
Link Here
|
| 401 |
excludedStyles: "(string.*)" //$NON-NLS-0$ |
401 |
excludedStyles: "(string.*)" //$NON-NLS-0$ |
| 402 |
}); |
402 |
}); |
| 403 |
|
403 |
|
|
|
404 |
var validator = new EslintValidator(astManager); |
| 404 |
|
405 |
|
| 405 |
/** |
406 |
/** |
| 406 |
* Register the ESLint validator |
407 |
* Register the ESLint validator |
| 407 |
*/ |
408 |
*/ |
| 408 |
provider.registerService(["orion.edit.validator", "orion.cm.managedservice"], new EslintValidator(astManager), //$NON-NLS-0$ //$NON-NLS-1$ |
409 |
provider.registerService("orion.edit.validator", validator, //$NON-NLS-0$ //$NON-NLS-1$ |
| 409 |
{ |
410 |
{ |
| 410 |
contentType: ["application/javascript", "text/html"], //$NON-NLS-0$ //$NON-NLS-1$ |
411 |
contentType: ["application/javascript", "text/html"], //$NON-NLS-0$ //$NON-NLS-1$ |
| 411 |
pid: 'eslint.config' //$NON-NLS-0$ |
412 |
pid: 'eslint.config' //$NON-NLS-0$ |
| 412 |
}); |
413 |
}); |
|
|
414 |
|
| 415 |
/** |
| 416 |
* legacy pref id |
| 417 |
*/ |
| 418 |
provider.registerService("orion.cm.managedservice", validator, {pid: "eslint.config"}); |
| 419 |
/** |
| 420 |
* new sectioned pref block ids |
| 421 |
*/ |
| 422 |
provider.registerService("orion.cm.managedservice", validator, {pid: "eslint.config.potential"}); |
| 423 |
provider.registerService("orion.cm.managedservice", validator, {pid: "eslint.config.practices"}); |
| 424 |
provider.registerService("orion.cm.managedservice", validator, {pid: "eslint.config.codestyle"}); |
| 413 |
|
425 |
|
| 414 |
/** |
426 |
/** |
| 415 |
* ESLint settings |
427 |
* ESLint settings |
|
Lines 422-433
Link Here
|
| 422 |
provider.registerService("orion.core.setting", //$NON-NLS-0$ |
434 |
provider.registerService("orion.core.setting", //$NON-NLS-0$ |
| 423 |
{}, |
435 |
{}, |
| 424 |
{ settings: [ |
436 |
{ settings: [ |
| 425 |
{ pid: "eslint.config", //$NON-NLS-0$ |
437 |
{ pid: "eslint.config.potential", //$NON-NLS-0$ |
| 426 |
name: javascriptMessages["eslintValidator"], //$NON-NLS-0$ |
438 |
name: javascriptMessages['prefPotentialProblems'], //$NON-NLS-0$ |
| 427 |
tags: "validation javascript js eslint".split(" "), //$NON-NLS-0$ //$NON-NLS-1$ |
439 |
tags: "validation javascript js eslint".split(" "), //$NON-NLS-0$ //$NON-NLS-1$ |
| 428 |
category: "javascript", //$NON-NLS-0$ |
440 |
category: "javascript", //$NON-NLS-0$ |
| 429 |
properties: [ |
441 |
properties: [{ id: "no-cond-assign", //$NON-NLS-0$ |
| 430 |
{ id: "no-cond-assign", //$NON-NLS-0$ |
|
|
| 431 |
name: javascriptMessages["noCondAssign"], //$NON-NLS-0$ |
442 |
name: javascriptMessages["noCondAssign"], //$NON-NLS-0$ |
| 432 |
type: "number", //$NON-NLS-0$ |
443 |
type: "number", //$NON-NLS-0$ |
| 433 |
defaultValue: error, //$NON-NLS-0$ |
444 |
defaultValue: error, //$NON-NLS-0$ |
|
Lines 439-470
Link Here
|
| 439 |
defaultValue: error, //$NON-NLS-0$ |
450 |
defaultValue: error, //$NON-NLS-0$ |
| 440 |
options: severities //$NON-NLS-0$ |
451 |
options: severities //$NON-NLS-0$ |
| 441 |
}, |
452 |
}, |
| 442 |
{ id: "no-caller", //$NON-NLS-0$ |
453 |
{ id: "no-console", //$NON-NLS-0$ |
| 443 |
name: javascriptMessages["noCaller"], //$NON-NLS-0$ |
|
|
| 444 |
type: "number", //$NON-NLS-0$ |
| 445 |
defaultValue: warning, //$NON-NLS-0$ |
| 446 |
options: severities //$NON-NLS-0$ |
| 447 |
}, |
| 448 |
{ id: "eqeqeq", //$NON-NLS-0$ |
| 449 |
name: javascriptMessages["noEqeqeq"], //$NON-NLS-0$ |
| 450 |
type: "number", //$NON-NLS-0$ |
| 451 |
defaultValue: warning, |
| 452 |
options: severities |
| 453 |
}, |
| 454 |
{ |
| 455 |
id: "no-console", //$NON-NLS-0$ |
| 456 |
name: javascriptMessages["noConsole"], //$NON-NLS-0$ |
454 |
name: javascriptMessages["noConsole"], //$NON-NLS-0$ |
| 457 |
type: "number", //$NON-NLS-0$ |
455 |
type: "number", //$NON-NLS-0$ |
| 458 |
defaultValue: error, //$NON-NLS-0$ |
456 |
defaultValue: error, //$NON-NLS-0$ |
| 459 |
options: severities //$NON-NLS-0$ |
457 |
options: severities //$NON-NLS-0$ |
| 460 |
}, |
458 |
}, |
| 461 |
{ id: "no-debugger", //$NON-NLS-0$ |
459 |
{ id: "no-debugger", //$NON-NLS-0$ |
| 462 |
name: javascriptMessages["noDebugger"], //$NON-NLS-0$ |
460 |
name: javascriptMessages["noDebugger"], //$NON-NLS-0$ |
| 463 |
type: "number", //$NON-NLS-0$ |
461 |
type: "number", //$NON-NLS-0$ |
| 464 |
defaultValue: warning, |
462 |
defaultValue: warning, |
| 465 |
options: severities |
463 |
options: severities |
| 466 |
}, |
464 |
}, |
| 467 |
{ id: "no-eval", //$NON-NLS-0$ |
465 |
{ id: "no-dupe-keys", //$NON-NLS-0$ |
|
|
466 |
name: javascriptMessages["noDupeKeys"], //$NON-NLS-0$ |
| 467 |
type: "number", //$NON-NLS-0$ |
| 468 |
defaultValue: error, |
| 469 |
options: severities |
| 470 |
}, |
| 471 |
{ id: "valid-typeof", //$NON-NLS-0$ |
| 472 |
name: javascriptMessages["validTypeof"], //$NON-NLS-0$ |
| 473 |
type: "number", //$NON-NLS-0$ |
| 474 |
defaultValue: error, |
| 475 |
options: severities |
| 476 |
}, |
| 477 |
{ id: "no-regex-spaces", //$NON-NLS-0$ |
| 478 |
name: javascriptMessages["noRegexSpaces"], //$NON-NLS-0$ |
| 479 |
type: "number", //$NON-NLS-0$ |
| 480 |
defaultValue: error, //$NON-NLS-0$ |
| 481 |
options: severities //$NON-NLS-0$ |
| 482 |
}, |
| 483 |
{ id: "use-isnan", //$NON-NLS-0$ |
| 484 |
name: javascriptMessages["useIsNaN"], //$NON-NLS-0$ |
| 485 |
type: "number", //$NON-NLS-0$ |
| 486 |
defaultValue: error, |
| 487 |
options: severities |
| 488 |
}, |
| 489 |
{ id: "no-reserved-keys", |
| 490 |
name: javascriptMessages["noReservedKeys"], //$NON-NLS-0$ |
| 491 |
type: "number", //$NON-NLS-0$ |
| 492 |
defaultValue: error, //$NON-NLS-0$ |
| 493 |
options: severities //$NON-NLS-0$ |
| 494 |
}, |
| 495 |
{ id: "no-sparse-arrays", |
| 496 |
name: javascriptMessages["noSparseArrays"], //$NON-NLS-0$ |
| 497 |
type: "number", //$NON-NLS-0$ |
| 498 |
defaultValue: warning, |
| 499 |
options: severities |
| 500 |
}, |
| 501 |
{ id: "no-fallthrough", //$NON-NLS-0$ |
| 502 |
name: javascriptMessages["noFallthrough"], //$NON-NLS-0$ |
| 503 |
type: "number", //$NON-NLS-0$ |
| 504 |
defaultValue: error, |
| 505 |
options: severities |
| 506 |
}, |
| 507 |
{ id: "no-comma-dangle", //$NON-NLS-0$ |
| 508 |
name: javascriptMessages["noCommaDangle"], //$NON-NLS-0$ |
| 509 |
type: "number", //$NON-NLS-0$ |
| 510 |
defaultValue: ignore, //$NON-NLS-0$ |
| 511 |
options: severities //$NON-NLS-0$ |
| 512 |
}, |
| 513 |
{ id: "no-empty-block", //$NON-NLS-0$ |
| 514 |
name: javascriptMessages["noEmptyBlock"], //$NON-NLS-0$ |
| 515 |
type: "number", //$NON-NLS-0$ |
| 516 |
defaultValue: ignore, |
| 517 |
options: severities |
| 518 |
}, |
| 519 |
{ id: "no-extra-semi", //$NON-NLS-0$ |
| 520 |
name: javascriptMessages["unnecessarySemis"], //$NON-NLS-0$ |
| 521 |
type: "number", //$NON-NLS-0$ |
| 522 |
defaultValue: warning, |
| 523 |
options: severities |
| 524 |
}, |
| 525 |
{ id: "no-unreachable", //$NON-NLS-0$ |
| 526 |
name: javascriptMessages["noUnreachable"], //$NON-NLS-0$ |
| 527 |
type: "number", //$NON-NLS-0$ |
| 528 |
defaultValue: error, |
| 529 |
options: severities |
| 530 |
}] |
| 531 |
}, |
| 532 |
{ pid: "eslint.config.practices", //$NON-NLS-0$ |
| 533 |
name: javascriptMessages['prefBestPractices'], //$NON-NLS-0$ |
| 534 |
tags: "validation javascript js eslint".split(" "), //$NON-NLS-0$ //$NON-NLS-1$ |
| 535 |
category: "javascript", //$NON-NLS-0$ |
| 536 |
properties: [{ id: "no-caller", //$NON-NLS-0$ |
| 537 |
name: javascriptMessages["noCaller"], //$NON-NLS-0$ |
| 538 |
type: "number", //$NON-NLS-0$ |
| 539 |
defaultValue: warning, //$NON-NLS-0$ |
| 540 |
options: severities //$NON-NLS-0$ |
| 541 |
}, |
| 542 |
{ id: "eqeqeq", //$NON-NLS-0$ |
| 543 |
name: javascriptMessages["noEqeqeq"], //$NON-NLS-0$ |
| 544 |
type: "number", //$NON-NLS-0$ |
| 545 |
defaultValue: warning, |
| 546 |
options: severities |
| 547 |
}, |
| 548 |
{ id: "no-eval", //$NON-NLS-0$ |
| 468 |
name: javascriptMessages["noEval"], //$NON-NLS-0$ |
549 |
name: javascriptMessages["noEval"], //$NON-NLS-0$ |
| 469 |
type: "number", //$NON-NLS-0$ |
550 |
type: "number", //$NON-NLS-0$ |
| 470 |
defaultValue: ignore, |
551 |
defaultValue: ignore, |
|
Lines 476-482
Link Here
|
| 476 |
defaultValue: error, //$NON-NLS-0$ |
557 |
defaultValue: error, //$NON-NLS-0$ |
| 477 |
options: severities //$NON-NLS-0$ |
558 |
options: severities //$NON-NLS-0$ |
| 478 |
}, |
559 |
}, |
| 479 |
{ |
560 |
{ |
| 480 |
id: "no-new-array", //$NON-NLS-0$ |
561 |
id: "no-new-array", //$NON-NLS-0$ |
| 481 |
name: javascriptMessages["noNewArray"], //$NON-NLS-0$ |
562 |
name: javascriptMessages["noNewArray"], //$NON-NLS-0$ |
| 482 |
type: "number", //$NON-NLS-0$ |
563 |
type: "number", //$NON-NLS-0$ |
|
Lines 504-663
Link Here
|
| 504 |
defaultValue: warning, //$NON-NLS-0$ |
585 |
defaultValue: warning, //$NON-NLS-0$ |
| 505 |
options: severities //$NON-NLS-0$ |
586 |
options: severities //$NON-NLS-0$ |
| 506 |
}, |
587 |
}, |
| 507 |
{ id: "no-dupe-keys", //$NON-NLS-0$ |
588 |
{ |
| 508 |
name: javascriptMessages["noDupeKeys"], //$NON-NLS-0$ |
589 |
id: "no-shadow-global", //$NON-NLS-0$ |
| 509 |
type: "number", //$NON-NLS-0$ |
590 |
name: javascriptMessages["noShadowGlobals"], //$NON-NLS-0$ |
| 510 |
defaultValue: error, |
591 |
defaultValue: warning, //$NON-NLS-0$ |
| 511 |
options: severities |
592 |
type: "number", //$NON-NLS-0$ |
| 512 |
}, |
593 |
options: severities //$NON-NLS-0$ |
| 513 |
{ |
594 |
}, |
| 514 |
id: "no-shadow-global", //$NON-NLS-0$ |
595 |
{ id: "no-use-before-define", //$NON-NLS-0$ |
| 515 |
name: javascriptMessages["noShadowGlobals"], //$NON-NLS-0$ |
596 |
name: javascriptMessages["useBeforeDefine"], //$NON-NLS-0$ |
| 516 |
type: "number", //$NON-NLS-0$ |
597 |
type: "number", //$NON-NLS-0$ |
| 517 |
defaultValue: warning, //$NON-NLS-0$ |
598 |
defaultValue: warning, |
| 518 |
options: severities //$NON-NLS-0$ |
599 |
options: severities |
| 519 |
}, |
600 |
}, |
| 520 |
{ id: "valid-typeof", //$NON-NLS-0$ |
601 |
{ id: "radix", //$NON-NLS-0$ |
| 521 |
name: javascriptMessages["validTypeof"], //$NON-NLS-0$ |
602 |
name: javascriptMessages['radix'], //$NON-NLS-0$ |
| 522 |
type: "number", //$NON-NLS-0$ |
603 |
type: 'number', //$NON-NLS-0$ |
| 523 |
defaultValue: error, |
604 |
defaultValue: warning, |
| 524 |
options: severities |
605 |
options: severities |
| 525 |
}, |
606 |
}, |
| 526 |
{ id: "no-use-before-define", //$NON-NLS-0$ |
607 |
{ id: "no-throw-literal", //$NON-NLS-0$ |
| 527 |
name: javascriptMessages["useBeforeDefine"], //$NON-NLS-0$ |
608 |
name: javascriptMessages["noThrowLiteral"], //$NON-NLS-0$ |
| 528 |
type: "number", //$NON-NLS-0$ |
609 |
type: "number", //$NON-NLS-0$ |
| 529 |
defaultValue: warning, |
610 |
defaultValue: warning, |
| 530 |
options: severities |
611 |
options: severities |
| 531 |
}, |
612 |
}, |
| 532 |
{ id: "missing-doc", |
613 |
{ id: "curly", //$NON-NLS-0$ |
| 533 |
name: javascriptMessages["missingDoc"], //$NON-NLS-0$ |
|
|
| 534 |
type: "number", //$NON-NLS-0$ |
| 535 |
defaultValue: ignore, |
| 536 |
options: severities |
| 537 |
}, |
| 538 |
{ id: "new-parens", //$NON-NLS-0$ |
| 539 |
name: javascriptMessages["newParens"], //$NON-NLS-0$ |
| 540 |
type: "number", //$NON-NLS-0$ |
| 541 |
defaultValue: error, |
| 542 |
options: severities |
| 543 |
}, |
| 544 |
{ id: "radix", //$NON-NLS-0$ |
| 545 |
name: javascriptMessages["radix"], //$NON-NLS-0$ |
| 546 |
type: "number", //$NON-NLS-0$ |
| 547 |
defaultValue: warning, |
| 548 |
options: severities |
| 549 |
}, |
| 550 |
{ id: "semi", //$NON-NLS-0$ |
| 551 |
name: javascriptMessages["missingSemi"], //$NON-NLS-0$ |
| 552 |
type: "number", //$NON-NLS-0$ |
| 553 |
defaultValue: warning, |
| 554 |
options: severities |
| 555 |
}, |
| 556 |
{ id: "no-regex-spaces", //$NON-NLS-0$ |
| 557 |
name: javascriptMessages["noRegexSpaces"], //$NON-NLS-0$ |
| 558 |
type: "number", //$NON-NLS-0$ |
| 559 |
defaultValue: error, //$NON-NLS-0$ |
| 560 |
options: severities //$NON-NLS-0$ |
| 561 |
}, |
| 562 |
{ id: "use-isnan", //$NON-NLS-0$ |
| 563 |
name: javascriptMessages["useIsNaN"], //$NON-NLS-0$ |
| 564 |
type: "number", //$NON-NLS-0$ |
| 565 |
defaultValue: error, |
| 566 |
options: severities |
| 567 |
}, |
| 568 |
{ id: "no-throw-literal", //$NON-NLS-0$ |
| 569 |
name: javascriptMessages["noThrowLiteral"], //$NON-NLS-0$ |
| 570 |
type: "number", //$NON-NLS-0$ |
| 571 |
defaultValue: warning, |
| 572 |
options: severities |
| 573 |
}, |
| 574 |
{ id: "no-reserved-keys", |
| 575 |
name: javascriptMessages["noReservedKeys"], //$NON-NLS-0$ |
| 576 |
type: "number", //$NON-NLS-0$ |
| 577 |
defaultValue: error, //$NON-NLS-0$ |
| 578 |
options: severities //$NON-NLS-0$ |
| 579 |
}, |
| 580 |
{ id: "no-sparse-arrays", |
| 581 |
name: javascriptMessages["noSparseArrays"], //$NON-NLS-0$ |
| 582 |
type: "number", //$NON-NLS-0$ |
| 583 |
defaultValue: warning, |
| 584 |
options: severities |
| 585 |
}, |
| 586 |
{ id: "curly", //$NON-NLS-0$ |
| 587 |
name: javascriptMessages["missingCurly"], //$NON-NLS-0$ |
614 |
name: javascriptMessages["missingCurly"], //$NON-NLS-0$ |
| 588 |
type: "number", //$NON-NLS-0$ |
615 |
type: "number", //$NON-NLS-0$ |
| 589 |
defaultValue: ignore, |
616 |
defaultValue: ignore, |
| 590 |
options: severities |
617 |
options: severities |
| 591 |
}, |
618 |
}, |
| 592 |
{ id: "no-fallthrough", //$NON-NLS-0$ |
619 |
{ id: "no-undef", //$NON-NLS-0$ |
| 593 |
name: javascriptMessages["noFallthrough"], //$NON-NLS-0$ |
620 |
name: javascriptMessages["undefMember"], //$NON-NLS-0$ |
| 594 |
type: "number", //$NON-NLS-0$ |
621 |
type: "number", //$NON-NLS-0$ |
| 595 |
defaultValue: error, |
622 |
defaultValue: error, |
| 596 |
options: severities |
623 |
options: severities |
| 597 |
}, |
624 |
}, |
| 598 |
{ id: "no-comma-dangle", //$NON-NLS-0$ |
625 |
{ id: "no-unused-params", //$NON-NLS-0$ |
| 599 |
name: javascriptMessages["noCommaDangle"], //$NON-NLS-0$ |
626 |
name: javascriptMessages["unusedParams"], //$NON-NLS-0$ |
| 600 |
type: "number", //$NON-NLS-0$ |
627 |
type: "number", //$NON-NLS-0$ |
| 601 |
defaultValue: ignore, //$NON-NLS-0$ |
628 |
defaultValue: warning, |
| 602 |
options: severities //$NON-NLS-0$ |
629 |
options: severities |
| 603 |
}, |
630 |
}, |
| 604 |
{ id: "no-undef", //$NON-NLS-0$ |
631 |
{ id: "no-unused-vars", //$NON-NLS-0$ |
| 605 |
name: javascriptMessages["undefMember"], //$NON-NLS-0$ |
|
|
| 606 |
type: "number", //$NON-NLS-0$ |
| 607 |
defaultValue: error, |
| 608 |
options: severities |
| 609 |
}, |
| 610 |
{ id: "no-empty-block", //$NON-NLS-0$ |
| 611 |
name: javascriptMessages["noEmptyBlock"], //$NON-NLS-0$ |
| 612 |
type: "number", //$NON-NLS-0$ |
| 613 |
defaultValue: ignore, |
| 614 |
options: severities |
| 615 |
}, |
| 616 |
{ id: "no-extra-semi", //$NON-NLS-0$ |
| 617 |
name: javascriptMessages["unnecessarySemis"], //$NON-NLS-0$ |
| 618 |
type: "number", //$NON-NLS-0$ |
| 619 |
defaultValue: warning, |
| 620 |
options: severities |
| 621 |
}, |
| 622 |
{ id: "no-jslint", //$NON-NLS-0$ |
| 623 |
name: javascriptMessages["unsupportedJSLint"], //$NON-NLS-0$ |
| 624 |
type: "number", //$NON-NLS-0$ |
| 625 |
defaultValue: warning, |
| 626 |
options: severities |
| 627 |
}, |
| 628 |
{ id: "no-unused-params", //$NON-NLS-0$ |
| 629 |
name: javascriptMessages["unusedParams"], //$NON-NLS-0$ |
| 630 |
type: "number", //$NON-NLS-0$ |
| 631 |
defaultValue: warning, |
| 632 |
options: severities |
| 633 |
}, |
| 634 |
{ id: "no-unused-vars", //$NON-NLS-0$ |
| 635 |
name: javascriptMessages["unusedVars"], //$NON-NLS-0$ |
632 |
name: javascriptMessages["unusedVars"], //$NON-NLS-0$ |
| 636 |
type: "number", //$NON-NLS-0$ |
633 |
type: "number", //$NON-NLS-0$ |
| 637 |
defaultValue: warning, |
634 |
defaultValue: warning, |
| 638 |
options: severities |
635 |
options: severities |
| 639 |
}, |
636 |
}, |
| 640 |
{ id: "no-unreachable", //$NON-NLS-0$ |
637 |
{ id: "no-redeclare", //$NON-NLS-0$ |
| 641 |
name: javascriptMessages["noUnreachable"], //$NON-NLS-0$ |
638 |
name: javascriptMessages['varRedecl'], |
| 642 |
type: "number", //$NON-NLS-0$ |
639 |
type: 'number', //$NON-NLS-0$ |
| 643 |
defaultValue: error, |
640 |
defaultValue: warning, |
| 644 |
options: severities |
641 |
options: severities |
| 645 |
}, |
642 |
}, |
| 646 |
{ id: "no-redeclare", //$NON-NLS-0$ |
643 |
{ id: "no-shadow", //$NON-NLS-0$ |
| 647 |
name: javascriptMessages["varRedecl"], //$NON-NLS-0$ |
|
|
| 648 |
type: "number", //$NON-NLS-0$ |
| 649 |
defaultValue: warning, |
| 650 |
options: severities |
| 651 |
}, |
| 652 |
{ id: "no-shadow", //$NON-NLS-0$ |
| 653 |
name: javascriptMessages["varShadow"], //$NON-NLS-0$ |
644 |
name: javascriptMessages["varShadow"], //$NON-NLS-0$ |
| 654 |
type: "number", //$NON-NLS-0$ |
645 |
type: "number", //$NON-NLS-0$ |
| 655 |
defaultValue: warning, |
646 |
defaultValue: warning, |
| 656 |
options: severities |
647 |
options: severities |
| 657 |
} |
648 |
}] |
| 658 |
] |
649 |
}, |
| 659 |
} |
650 |
{ pid: "eslint.config.codestyle", //$NON-NLS-0$ |
| 660 |
] |
651 |
name: javascriptMessages['prefCodeStyle'], //$NON-NLS-0$ |
|
|
652 |
tags: "validation javascript js eslint".split(" "), //$NON-NLS-0$ //$NON-NLS-1$ |
| 653 |
category: "javascript", //$NON-NLS-0$ |
| 654 |
properties: [{ id: "missing-doc", |
| 655 |
name: javascriptMessages["missingDoc"], //$NON-NLS-0$ |
| 656 |
type: "number", //$NON-NLS-0$ |
| 657 |
defaultValue: ignore, |
| 658 |
options: severities |
| 659 |
}, |
| 660 |
{ id: "new-parens", //$NON-NLS-0$ |
| 661 |
name: javascriptMessages["newParens"], //$NON-NLS-0$ |
| 662 |
type: "number", //$NON-NLS-0$ |
| 663 |
defaultValue: error, |
| 664 |
options: severities |
| 665 |
}, |
| 666 |
{ id: "semi", //$NON-NLS-0$ |
| 667 |
name: javascriptMessages["missingSemi"], //$NON-NLS-0$ |
| 668 |
type: "number", //$NON-NLS-0$ |
| 669 |
defaultValue: warning, |
| 670 |
options: severities |
| 671 |
}, |
| 672 |
{ id: "no-jslint", //$NON-NLS-0$ |
| 673 |
name: javascriptMessages["unsupportedJSLint"], //$NON-NLS-0$ |
| 674 |
type: "number", //$NON-NLS-0$ |
| 675 |
defaultValue: warning, |
| 676 |
options: severities |
| 677 |
}] |
| 678 |
}] |
| 661 |
}); |
679 |
}); |
| 662 |
|
680 |
|
| 663 |
/** |
681 |
/** |