linted 19.1.0-rc.0 → 19.1.0-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/rules/index.d.ts +730 -92
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/mocha/base.d.ts +35 -1
- package/dist/rules/mocha/base.d.ts.map +1 -1
- package/dist/rules/mocha/base.js +2 -2
- package/dist/rules/mocha/base.js.map +1 -1
- package/dist/rules/mocha/disable.d.ts +5 -0
- package/dist/rules/mocha/disable.d.ts.map +1 -0
- package/dist/rules/mocha/disable.js +8 -0
- package/dist/rules/mocha/disable.js.map +1 -0
- package/dist/rules/mocha/enable.d.ts +33 -1
- package/dist/rules/mocha/enable.d.ts.map +1 -1
- package/dist/rules/mocha/enable.js +46 -2
- package/dist/rules/mocha/enable.js.map +1 -1
- package/dist/rules/mocha/index.d.ts +639 -1
- package/dist/rules/mocha/index.d.ts.map +1 -1
- package/dist/rules/mochaJs/index.d.ts +380 -1
- package/dist/rules/mochaJs/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/rules/mocha/base.ts +2 -2
- package/src/rules/mocha/disable.ts +8 -0
- package/src/rules/mocha/enable.ts +52 -2
- package/typings/mocha/index.d.ts +1 -6
- package/dist/rules/mocha/enable_recommended.d.ts +0 -3
- package/dist/rules/mocha/enable_recommended.d.ts.map +0 -1
- package/dist/rules/mocha/enable_recommended.js +0 -8
- package/dist/rules/mocha/enable_recommended.js.map +0 -1
- package/src/rules/mocha/enable_recommended.ts +0 -9
@@ -415,6 +415,385 @@ declare const _default: (readonly ["stylistic", {
|
|
415
415
|
readonly before: false;
|
416
416
|
readonly after: true;
|
417
417
|
}];
|
418
|
-
}] | readonly ["
|
418
|
+
}] | readonly ["enable", {
|
419
|
+
readonly "array-callback-return": readonly ["error", {
|
420
|
+
readonly allowImplicit: false;
|
421
|
+
readonly checkForEach: true;
|
422
|
+
readonly allowVoid: true;
|
423
|
+
}];
|
424
|
+
readonly "constructor-super": "error";
|
425
|
+
readonly "for-direction": "error";
|
426
|
+
readonly "getter-return": readonly ["error", {
|
427
|
+
readonly allowImplicit: false;
|
428
|
+
}];
|
429
|
+
readonly "no-async-promise-executor": "error";
|
430
|
+
readonly "no-await-in-loop": "error";
|
431
|
+
readonly "no-class-assign": "error";
|
432
|
+
readonly "no-compare-neg-zero": "error";
|
433
|
+
readonly "no-cond-assign": readonly ["error", "always"];
|
434
|
+
readonly "no-const-assign": "error";
|
435
|
+
readonly "no-constant-binary-expression": "error";
|
436
|
+
readonly "no-constant-condition": readonly ["error", {
|
437
|
+
readonly checkLoops: true;
|
438
|
+
}];
|
439
|
+
readonly "no-constructor-return": "error";
|
440
|
+
readonly "no-control-regex": "error";
|
441
|
+
readonly "no-debugger": "error";
|
442
|
+
readonly "no-dupe-args": "error";
|
443
|
+
readonly "no-dupe-class-members": "error";
|
444
|
+
readonly "no-dupe-else-if": "error";
|
445
|
+
readonly "no-dupe-keys": "error";
|
446
|
+
readonly "no-duplicate-case": "error";
|
447
|
+
readonly "no-duplicate-imports": "off";
|
448
|
+
readonly "no-empty-character-class": "error";
|
449
|
+
readonly "no-empty-pattern": readonly ["error", {
|
450
|
+
readonly allowObjectPatternsAsParameters: false;
|
451
|
+
}];
|
452
|
+
readonly "no-ex-assign": "error";
|
453
|
+
readonly "no-fallthrough": readonly ["error", {
|
454
|
+
readonly allowEmptyCase: true;
|
455
|
+
readonly reportUnusedFallthroughComment: true;
|
456
|
+
}];
|
457
|
+
readonly "no-func-assign": "error";
|
458
|
+
readonly "no-import-assign": "error";
|
459
|
+
readonly "no-inner-declarations": readonly ["error", "both", {
|
460
|
+
readonly blockScopedFunctions: "allow";
|
461
|
+
}];
|
462
|
+
readonly "no-invalid-regexp": readonly ["error", {
|
463
|
+
readonly allowConstructorFlags: readonly [];
|
464
|
+
}];
|
465
|
+
readonly "no-irregular-whitespace": readonly ["error", {
|
466
|
+
readonly skipStrings: true;
|
467
|
+
readonly skipComments: true;
|
468
|
+
readonly skipRegExps: true;
|
469
|
+
readonly skipTemplates: true;
|
470
|
+
readonly skipJSXText: true;
|
471
|
+
}];
|
472
|
+
readonly "no-loss-of-precision": "error";
|
473
|
+
readonly "no-misleading-character-class": "error";
|
474
|
+
readonly "no-new-native-nonconstructor": "error";
|
475
|
+
readonly "no-obj-calls": "error";
|
476
|
+
readonly "no-promise-executor-return": readonly ["error", {
|
477
|
+
readonly allowVoid: true;
|
478
|
+
}];
|
479
|
+
readonly "no-prototype-builtins": "error";
|
480
|
+
readonly "no-self-assign": readonly ["error", {
|
481
|
+
readonly props: true;
|
482
|
+
}];
|
483
|
+
readonly "no-self-compare": "error";
|
484
|
+
readonly "no-setter-return": "error";
|
485
|
+
readonly "no-sparse-arrays": "error";
|
486
|
+
readonly "no-template-curly-in-string": "error";
|
487
|
+
readonly "no-this-before-super": "error";
|
488
|
+
readonly "no-undef": "error";
|
489
|
+
readonly "no-unexpected-multiline": "error";
|
490
|
+
readonly "no-unmodified-loop-condition": "error";
|
491
|
+
readonly "no-unreachable": "error";
|
492
|
+
readonly "no-unreachable-loop": readonly ["error", {
|
493
|
+
readonly ignore: readonly [];
|
494
|
+
}];
|
495
|
+
readonly "no-unsafe-finally": "error";
|
496
|
+
readonly "no-unsafe-negation": readonly ["error", {
|
497
|
+
readonly enforceForOrderingRelations: true;
|
498
|
+
}];
|
499
|
+
readonly "no-unsafe-optional-chaining": readonly ["error", {
|
500
|
+
readonly disallowArithmeticOperators: true;
|
501
|
+
}];
|
502
|
+
readonly "no-unused-private-class-members": "error";
|
503
|
+
readonly "no-unused-vars": readonly ["error", {
|
504
|
+
readonly vars: "all";
|
505
|
+
readonly args: "all";
|
506
|
+
readonly caughtErrors: "all";
|
507
|
+
readonly ignoreRestSiblings: false;
|
508
|
+
readonly ignoreClassWithStaticInitBlock: false;
|
509
|
+
readonly reportUsedIgnorePattern: true;
|
510
|
+
}];
|
511
|
+
readonly "no-use-before-define": readonly ["error", {
|
512
|
+
readonly functions: true;
|
513
|
+
readonly classes: true;
|
514
|
+
readonly variables: true;
|
515
|
+
readonly allowNamedExports: false;
|
516
|
+
}];
|
517
|
+
readonly "no-useless-assignment": "error";
|
518
|
+
readonly "no-useless-backreference": "error";
|
519
|
+
readonly "require-atomic-updates": readonly ["error", {
|
520
|
+
readonly allowProperties: false;
|
521
|
+
}];
|
522
|
+
readonly "use-isnan": readonly ["error", {
|
523
|
+
readonly enforceForSwitchCase: true;
|
524
|
+
readonly enforceForIndexOf: true;
|
525
|
+
}];
|
526
|
+
readonly "valid-typeof": readonly ["error", {
|
527
|
+
readonly requireStringLiterals: true;
|
528
|
+
}];
|
529
|
+
readonly "accessor-pairs": readonly ["error", {
|
530
|
+
readonly setWithoutGet: true;
|
531
|
+
readonly getWithoutSet: false;
|
532
|
+
readonly enforceForClassMembers: true;
|
533
|
+
}];
|
534
|
+
readonly "arrow-body-style": readonly ["error", "as-needed", {
|
535
|
+
readonly requireReturnForObjectLiteral: true;
|
536
|
+
}];
|
537
|
+
readonly "block-scoped-var": "error";
|
538
|
+
readonly camelcase: "off";
|
539
|
+
readonly "capitalized-comments": "off";
|
540
|
+
readonly "class-methods-use-this": "off";
|
541
|
+
readonly complexity: "off";
|
542
|
+
readonly "consistent-return": readonly ["error", {
|
543
|
+
readonly treatUndefinedAsUnspecified: false;
|
544
|
+
}];
|
545
|
+
readonly "consistent-this": "error";
|
546
|
+
readonly curly: readonly ["error", "multi"];
|
547
|
+
readonly "default-case": "off";
|
548
|
+
readonly "default-case-last": "error";
|
549
|
+
readonly "default-param-last": "error";
|
550
|
+
readonly "dot-notation": readonly ["error", {
|
551
|
+
readonly allowKeywords: true;
|
552
|
+
}];
|
553
|
+
readonly eqeqeq: readonly ["error", "always"];
|
554
|
+
readonly "func-name-matching": "off";
|
555
|
+
readonly "func-names": "off";
|
556
|
+
readonly "func-style": "off";
|
557
|
+
readonly "grouped-accessor-pairs": "off";
|
558
|
+
readonly "guard-for-in": "off";
|
559
|
+
readonly "id-denylist": "off";
|
560
|
+
readonly "id-length": "off";
|
561
|
+
readonly "id-match": "off";
|
562
|
+
readonly "init-declarations": readonly ["error", "always"];
|
563
|
+
readonly "logical-assignment-operators": readonly ["error", "always", {
|
564
|
+
readonly enforceForIfStatements: true;
|
565
|
+
}];
|
566
|
+
readonly "max-classes-per-file": "off";
|
567
|
+
readonly "max-depth": "off";
|
568
|
+
readonly "max-lines": "off";
|
569
|
+
readonly "max-lines-per-function": "off";
|
570
|
+
readonly "max-nested-callbacks": "off";
|
571
|
+
readonly "max-params": "off";
|
572
|
+
readonly "max-statements": "off";
|
573
|
+
readonly "multiline-comment-style": "off";
|
574
|
+
readonly "new-cap": "off";
|
575
|
+
readonly "no-alert": "error";
|
576
|
+
readonly "no-array-constructor": "error";
|
577
|
+
readonly "no-bitwise": readonly ["error", {
|
578
|
+
readonly allow: readonly [];
|
579
|
+
readonly int32Hint: true;
|
580
|
+
}];
|
581
|
+
readonly "no-caller": "error";
|
582
|
+
readonly "no-case-declarations": "error";
|
583
|
+
readonly "no-console": "off";
|
584
|
+
readonly "no-continue": "error";
|
585
|
+
readonly "no-delete-var": "error";
|
586
|
+
readonly "no-div-regex": "error";
|
587
|
+
readonly "no-else-return": "off";
|
588
|
+
readonly "no-empty": readonly ["error", {
|
589
|
+
readonly allowEmptyCatch: false;
|
590
|
+
}];
|
591
|
+
readonly "no-empty-function": readonly ["error", {
|
592
|
+
readonly allow: readonly ["constructors"];
|
593
|
+
}];
|
594
|
+
readonly "no-empty-static-block": "error";
|
595
|
+
readonly "no-eq-null": "error";
|
596
|
+
readonly "no-eval": readonly ["error", {
|
597
|
+
readonly allowIndirect: false;
|
598
|
+
}];
|
599
|
+
readonly "no-extend-native": readonly ["error", {
|
600
|
+
readonly exceptions: readonly [];
|
601
|
+
}];
|
602
|
+
readonly "no-extra-bind": "error";
|
603
|
+
readonly "no-extra-boolean-cast": readonly ["error", {
|
604
|
+
readonly enforceForLogicalOperands: true;
|
605
|
+
}];
|
606
|
+
readonly "no-extra-label": "error";
|
607
|
+
readonly "no-global-assign": readonly ["error", {
|
608
|
+
readonly exceptions: readonly [];
|
609
|
+
}];
|
610
|
+
readonly "no-implicit-coercion": readonly ["error", {
|
611
|
+
readonly boolean: true;
|
612
|
+
readonly number: true;
|
613
|
+
readonly string: true;
|
614
|
+
readonly disallowTemplateShorthand: true;
|
615
|
+
readonly allow: readonly [];
|
616
|
+
}];
|
617
|
+
readonly "no-implicit-globals": "off";
|
618
|
+
readonly "no-implied-eval": "error";
|
619
|
+
readonly "no-inline-comments": "off";
|
620
|
+
readonly "no-invalid-this": readonly ["error", {
|
621
|
+
readonly capIsConstructor: false;
|
622
|
+
}];
|
623
|
+
readonly "no-iterator": "error";
|
624
|
+
readonly "no-label-var": "error";
|
625
|
+
readonly "no-lone-blocks": "error";
|
626
|
+
readonly "no-lonely-if": "off";
|
627
|
+
readonly "no-loop-func": "error";
|
628
|
+
readonly "no-magic-numbers": "off";
|
629
|
+
readonly "no-multi-assign": readonly ["error", {
|
630
|
+
readonly ignoreNonDeclaration: false;
|
631
|
+
}];
|
632
|
+
readonly "no-multi-str": "error";
|
633
|
+
readonly "no-negated-condition": "off";
|
634
|
+
readonly "no-nested-ternary": "off";
|
635
|
+
readonly "no-new": "error";
|
636
|
+
readonly "no-new-func": "error";
|
637
|
+
readonly "no-new-wrappers": "error";
|
638
|
+
readonly "no-nonoctal-decimal-escape": "error";
|
639
|
+
readonly "no-object-constructor": "error";
|
640
|
+
readonly "no-octal": "error";
|
641
|
+
readonly "no-octal-escape": "error";
|
642
|
+
readonly "no-param-reassign": readonly ["error", {
|
643
|
+
readonly props: true;
|
644
|
+
readonly ignorePropertyModificationsFor: readonly [];
|
645
|
+
readonly ignorePropertyModificationsForRegex: readonly [];
|
646
|
+
}];
|
647
|
+
readonly "no-plusplus": readonly ["error", {
|
648
|
+
readonly allowForLoopAfterthoughts: true;
|
649
|
+
}];
|
650
|
+
readonly "no-proto": "error";
|
651
|
+
readonly "no-redeclare": readonly ["error", {
|
652
|
+
readonly builtinGlobals: true;
|
653
|
+
}];
|
654
|
+
readonly "no-regex-spaces": "off";
|
655
|
+
readonly "no-restricted-exports": "off";
|
656
|
+
readonly "no-restricted-globals": "off";
|
657
|
+
readonly "no-restricted-imports": "off";
|
658
|
+
readonly "no-restricted-properties": "off";
|
659
|
+
readonly "no-restricted-syntax": "off";
|
660
|
+
readonly "no-return-assign": readonly ["error", "always"];
|
661
|
+
readonly "no-script-url": "error";
|
662
|
+
readonly "no-sequences": readonly ["error", {
|
663
|
+
readonly allowInParentheses: true;
|
664
|
+
}];
|
665
|
+
readonly "no-shadow": "off";
|
666
|
+
readonly "no-shadow-restricted-names": "error";
|
667
|
+
readonly "no-ternary": "off";
|
668
|
+
readonly "no-throw-literal": "error";
|
669
|
+
readonly "no-undef-init": "error";
|
670
|
+
readonly "no-undefined": "off";
|
671
|
+
readonly "no-underscore-dangle": "off";
|
672
|
+
readonly "no-unneeded-ternary": readonly ["error", {
|
673
|
+
readonly defaultAssignment: false;
|
674
|
+
}];
|
675
|
+
readonly "no-unused-expressions": readonly ["error", {
|
676
|
+
readonly allowShortCircuit: true;
|
677
|
+
readonly allowTernary: true;
|
678
|
+
readonly allowTaggedTemplates: true;
|
679
|
+
readonly enforceForJSX: false;
|
680
|
+
}];
|
681
|
+
readonly "no-unused-labels": "error";
|
682
|
+
readonly "no-useless-call": "error";
|
683
|
+
readonly "no-useless-catch": "error";
|
684
|
+
readonly "no-useless-computed-key": readonly ["error", {
|
685
|
+
readonly enforceForClassMembers: true;
|
686
|
+
}];
|
687
|
+
readonly "no-useless-concat": "error";
|
688
|
+
readonly "no-useless-constructor": "error";
|
689
|
+
readonly "no-useless-escape": "error";
|
690
|
+
readonly "no-useless-rename": readonly ["error", {
|
691
|
+
readonly ignoreImport: false;
|
692
|
+
readonly ignoreExport: false;
|
693
|
+
readonly ignoreDestructuring: false;
|
694
|
+
}];
|
695
|
+
readonly "no-useless-return": "error";
|
696
|
+
readonly "no-var": "error";
|
697
|
+
readonly "no-void": readonly ["error", {
|
698
|
+
readonly allowAsStatement: true;
|
699
|
+
}];
|
700
|
+
readonly "no-warning-comments": "off";
|
701
|
+
readonly "no-with": "error";
|
702
|
+
readonly "object-shorthand": readonly ["error", "always", {
|
703
|
+
readonly avoidQuotes: true;
|
704
|
+
readonly ignoreConstructors: false;
|
705
|
+
readonly avoidExplicitReturnArrows: false;
|
706
|
+
}];
|
707
|
+
readonly "one-var": readonly ["error", {
|
708
|
+
readonly var: "consecutive";
|
709
|
+
readonly let: "consecutive";
|
710
|
+
readonly const: "consecutive";
|
711
|
+
readonly separateRequires: true;
|
712
|
+
}];
|
713
|
+
readonly "operator-assignment": readonly ["error", "always"];
|
714
|
+
readonly "prefer-arrow-callback": readonly ["error", {
|
715
|
+
readonly allowNamedFunctions: false;
|
716
|
+
readonly allowUnboundThis: true;
|
717
|
+
}];
|
718
|
+
readonly "prefer-const": readonly ["error", {
|
719
|
+
readonly destructuring: "all";
|
720
|
+
readonly ignoreReadBeforeAssign: false;
|
721
|
+
}];
|
722
|
+
readonly "prefer-destructuring": readonly ["error", {
|
723
|
+
readonly VariableDeclarator: {
|
724
|
+
readonly array: true;
|
725
|
+
readonly object: true;
|
726
|
+
};
|
727
|
+
readonly AssignmentExpression: {
|
728
|
+
readonly array: false;
|
729
|
+
readonly object: false;
|
730
|
+
};
|
731
|
+
}, {
|
732
|
+
readonly enforceForRenamedProperties: true;
|
733
|
+
}];
|
734
|
+
readonly "prefer-exponentiation-operator": "error";
|
735
|
+
readonly "prefer-named-capture-group": "off";
|
736
|
+
readonly "prefer-numeric-literals": "error";
|
737
|
+
readonly "prefer-object-has-own": "error";
|
738
|
+
readonly "prefer-object-spread": "error";
|
739
|
+
readonly "prefer-promise-reject-errors": readonly ["error", {
|
740
|
+
readonly allowEmptyReject: false;
|
741
|
+
}];
|
742
|
+
readonly "prefer-regex-literals": readonly ["error", {
|
743
|
+
readonly disallowRedundantWrapping: true;
|
744
|
+
}];
|
745
|
+
readonly "prefer-rest-params": "error";
|
746
|
+
readonly "prefer-spread": "error";
|
747
|
+
readonly "prefer-template": "error";
|
748
|
+
readonly radix: readonly ["error", "as-needed"];
|
749
|
+
readonly "require-await": "error";
|
750
|
+
readonly "require-unicode-regexp": "error";
|
751
|
+
readonly "require-yield": "error";
|
752
|
+
readonly "sort-imports": "off";
|
753
|
+
readonly "sort-keys": "off";
|
754
|
+
readonly "sort-vars": "off";
|
755
|
+
readonly strict: "off";
|
756
|
+
readonly "symbol-description": "off";
|
757
|
+
readonly "vars-on-top": "error";
|
758
|
+
readonly yoda: readonly ["error", "never", {
|
759
|
+
readonly exceptRange: false;
|
760
|
+
readonly onlyEquality: false;
|
761
|
+
}];
|
762
|
+
readonly "unicode-bom": "off";
|
763
|
+
}] | readonly ["disable", {
|
764
|
+
readonly "prefer-arrow-callback": "off";
|
765
|
+
}] | readonly ["enable", {
|
766
|
+
readonly "mocha/consistent-spacing-between-blocks": "off";
|
767
|
+
readonly "mocha/handle-done-callback": readonly ["error", {
|
768
|
+
readonly ignoreSkipped: false;
|
769
|
+
}];
|
770
|
+
readonly "mocha/max-top-level-suites": readonly ["error", {
|
771
|
+
readonly limit: 1;
|
772
|
+
}];
|
773
|
+
readonly "mocha/no-async-describe": "error";
|
774
|
+
readonly "mocha/no-empty-description": "error";
|
775
|
+
readonly "mocha/no-exclusive-tests": "error";
|
776
|
+
readonly "mocha/no-exports": "error";
|
777
|
+
readonly "mocha/no-global-tests": "error";
|
778
|
+
readonly "mocha/no-hooks-for-single-case": "off";
|
779
|
+
readonly "mocha/no-hooks": "off";
|
780
|
+
readonly "mocha/no-identical-title": "error";
|
781
|
+
readonly "mocha/no-mocha-arrows": "error";
|
782
|
+
readonly "mocha/no-nested-tests": "error";
|
783
|
+
readonly "mocha/no-pending-tests": "warn";
|
784
|
+
readonly "mocha/no-return-and-callback": "error";
|
785
|
+
readonly "mocha/no-return-from-async": "error";
|
786
|
+
readonly "mocha/no-setup-in-describe": "error";
|
787
|
+
readonly "mocha/no-sibling-hooks": "error";
|
788
|
+
readonly "mocha/no-skipped-tests": "error";
|
789
|
+
readonly "mocha/no-synchronous-tests": "off";
|
790
|
+
readonly "mocha/no-top-level-hooks": "error";
|
791
|
+
readonly "mocha/prefer-arrow-callback": readonly ["error", {
|
792
|
+
readonly allowNamedFunctions: false;
|
793
|
+
readonly allowUnboundThis: true;
|
794
|
+
}];
|
795
|
+
readonly "mocha/valid-suite-description": "off";
|
796
|
+
readonly "mocha/valid-test-description": "off";
|
797
|
+
}])[];
|
419
798
|
export default _default;
|
420
799
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/mochaJs/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/mochaJs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"_schemaVersion": "20.18.0",
|
3
3
|
"name": "linted",
|
4
|
-
"version": "19.1.0-rc.
|
4
|
+
"version": "19.1.0-rc.2",
|
5
5
|
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
6
6
|
"keywords": [
|
7
7
|
"eslint",
|
package/src/rules/mocha/base.ts
CHANGED
@@ -1,3 +1,53 @@
|
|
1
|
-
import {
|
1
|
+
import {
|
2
|
+
enable,
|
3
|
+
ERROR,
|
4
|
+
WARN,
|
5
|
+
OFF,
|
6
|
+
} from "../../_strings";
|
2
7
|
|
3
|
-
export default [
|
8
|
+
export default [
|
9
|
+
enable,
|
10
|
+
{
|
11
|
+
// https://github.com/lo1tuma/eslint-plugin-mocha/tree/main?tab=readme-ov-file#rules
|
12
|
+
"mocha/consistent-spacing-between-blocks": OFF,
|
13
|
+
"mocha/handle-done-callback": [
|
14
|
+
ERROR,
|
15
|
+
{
|
16
|
+
ignoreSkipped: false,
|
17
|
+
},
|
18
|
+
],
|
19
|
+
"mocha/max-top-level-suites": [
|
20
|
+
ERROR,
|
21
|
+
{
|
22
|
+
limit: 1,
|
23
|
+
},
|
24
|
+
],
|
25
|
+
"mocha/no-async-describe": ERROR,
|
26
|
+
"mocha/no-empty-description": ERROR,
|
27
|
+
"mocha/no-exclusive-tests": ERROR,
|
28
|
+
"mocha/no-exports": ERROR,
|
29
|
+
"mocha/no-global-tests": ERROR,
|
30
|
+
"mocha/no-hooks-for-single-case": OFF,
|
31
|
+
"mocha/no-hooks": OFF,
|
32
|
+
"mocha/no-identical-title": ERROR,
|
33
|
+
"mocha/no-mocha-arrows": ERROR,
|
34
|
+
"mocha/no-nested-tests": ERROR,
|
35
|
+
"mocha/no-pending-tests": WARN,
|
36
|
+
"mocha/no-return-and-callback": ERROR,
|
37
|
+
"mocha/no-return-from-async": ERROR,
|
38
|
+
"mocha/no-setup-in-describe": ERROR,
|
39
|
+
"mocha/no-sibling-hooks": ERROR,
|
40
|
+
"mocha/no-skipped-tests": ERROR,
|
41
|
+
"mocha/no-synchronous-tests": OFF,
|
42
|
+
"mocha/no-top-level-hooks": ERROR,
|
43
|
+
"mocha/prefer-arrow-callback": [
|
44
|
+
ERROR,
|
45
|
+
{
|
46
|
+
allowNamedFunctions: false,
|
47
|
+
allowUnboundThis: true,
|
48
|
+
},
|
49
|
+
] /* MUST match ../js/enable.ts */,
|
50
|
+
"mocha/valid-suite-description": OFF,
|
51
|
+
"mocha/valid-test-description": OFF,
|
52
|
+
},
|
53
|
+
] as const;
|
package/typings/mocha/index.d.ts
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"enable_recommended.d.ts","sourceRoot":"","sources":["../../../src/rules/mocha/enable_recommended.ts"],"names":[],"mappings":";AAIA,wBAIW"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"enable_recommended.js","sourceRoot":"","sources":["../../../src/rules/mocha/enable_recommended.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,MAAM,qBAAqB,CAAC;AAGxC,eAAe;IACb,WAAW;IACV,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,WAAsD;SACvE,KAAK;CACA,CAAC"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { recommended } from "../../_strings";
|
2
|
-
import mocha from "eslint-plugin-mocha";
|
3
|
-
|
4
|
-
// REMOVE shared config once manually configured
|
5
|
-
export default [
|
6
|
-
recommended,
|
7
|
-
(mocha.configs.flat.recommended as Record<"rules", Record<string, "off">>)
|
8
|
-
.rules,
|
9
|
-
] as const;
|