@open-turo/eslint-config-typescript 14.0.8 → 15.0.0-pr-374.337.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ # Breaking changes in v15
2
+
3
+ Adds `@typescript-eslint/strict-type-checked` configuration, which will raise new errors in usages. The reliance on type checking is not new or breaking, since we already include `recommended-type-checked` in our config.
package/index.js CHANGED
@@ -21,8 +21,8 @@ module.exports = {
21
21
  ],
22
22
  extends: [
23
23
  "eslint:recommended",
24
- "plugin:@typescript-eslint/recommended",
25
- "plugin:@typescript-eslint/recommended-requiring-type-checking",
24
+ "plugin:@typescript-eslint/recommended-type-checked",
25
+ "plugin:@typescript-eslint/strict-type-checked",
26
26
  "plugin:import/recommended",
27
27
  "plugin:import/typescript",
28
28
  "plugin:jest/recommended",
package/package.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "author": "Turo engineering",
3
3
  "description": "Turo eslint configuration for typescript",
4
4
  "dependencies": {
5
- "@typescript-eslint/eslint-plugin": "8.20.0",
6
- "@typescript-eslint/parser": "8.20.0",
5
+ "@typescript-eslint/eslint-plugin": "8.21.0",
6
+ "@typescript-eslint/parser": "8.21.0",
7
7
  "eslint-config-prettier": "10.0.1",
8
8
  "eslint-import-resolver-typescript": "3.7.0",
9
9
  "eslint-plugin-import": "2.31.0",
@@ -42,5 +42,5 @@
42
42
  "access": "public"
43
43
  },
44
44
  "repository": "https://github.com/open-turo/eslint-config-typescript",
45
- "version": "14.0.8"
45
+ "version": "15.0.0-pr-374.337.1.1"
46
46
  }
@@ -652,6 +652,9 @@ exports[`validate config load config file in ESLint to validate all rules are co
652
652
  ],
653
653
  "@typescript-eslint/ban-ts-comment": [
654
654
  "error",
655
+ {
656
+ "minimumDescriptionLength": 10,
657
+ },
655
658
  ],
656
659
  "@typescript-eslint/block-spacing": [
657
660
  "off",
@@ -700,12 +703,21 @@ exports[`validate config load config file in ESLint to validate all rules are co
700
703
  "@typescript-eslint/no-base-to-string": [
701
704
  "error",
702
705
  ],
706
+ "@typescript-eslint/no-confusing-void-expression": [
707
+ "error",
708
+ ],
709
+ "@typescript-eslint/no-deprecated": [
710
+ "error",
711
+ ],
703
712
  "@typescript-eslint/no-duplicate-enum-values": [
704
713
  "error",
705
714
  ],
706
715
  "@typescript-eslint/no-duplicate-type-constituents": [
707
716
  "error",
708
717
  ],
718
+ "@typescript-eslint/no-dynamic-delete": [
719
+ "error",
720
+ ],
709
721
  "@typescript-eslint/no-empty-object-type": [
710
722
  "error",
711
723
  ],
@@ -721,6 +733,9 @@ exports[`validate config load config file in ESLint to validate all rules are co
721
733
  "@typescript-eslint/no-extra-semi": [
722
734
  "off",
723
735
  ],
736
+ "@typescript-eslint/no-extraneous-class": [
737
+ "error",
738
+ ],
724
739
  "@typescript-eslint/no-floating-promises": [
725
740
  "error",
726
741
  ],
@@ -733,18 +748,36 @@ exports[`validate config load config file in ESLint to validate all rules are co
733
748
  "@typescript-eslint/no-import-type-side-effects": [
734
749
  "error",
735
750
  ],
751
+ "@typescript-eslint/no-invalid-void-type": [
752
+ "error",
753
+ ],
754
+ "@typescript-eslint/no-meaningless-void-operator": [
755
+ "error",
756
+ ],
736
757
  "@typescript-eslint/no-misused-new": [
737
758
  "error",
738
759
  ],
739
760
  "@typescript-eslint/no-misused-promises": [
740
761
  "error",
741
762
  ],
763
+ "@typescript-eslint/no-misused-spread": [
764
+ "error",
765
+ ],
766
+ "@typescript-eslint/no-mixed-enums": [
767
+ "error",
768
+ ],
742
769
  "@typescript-eslint/no-namespace": [
743
770
  "error",
744
771
  ],
772
+ "@typescript-eslint/no-non-null-asserted-nullish-coalescing": [
773
+ "error",
774
+ ],
745
775
  "@typescript-eslint/no-non-null-asserted-optional-chain": [
746
776
  "error",
747
777
  ],
778
+ "@typescript-eslint/no-non-null-assertion": [
779
+ "error",
780
+ ],
748
781
  "@typescript-eslint/no-redundant-type-constituents": [
749
782
  "error",
750
783
  ],
@@ -754,12 +787,27 @@ exports[`validate config load config file in ESLint to validate all rules are co
754
787
  "@typescript-eslint/no-this-alias": [
755
788
  "error",
756
789
  ],
790
+ "@typescript-eslint/no-unnecessary-boolean-literal-compare": [
791
+ "error",
792
+ ],
793
+ "@typescript-eslint/no-unnecessary-condition": [
794
+ "error",
795
+ ],
796
+ "@typescript-eslint/no-unnecessary-template-expression": [
797
+ "error",
798
+ ],
799
+ "@typescript-eslint/no-unnecessary-type-arguments": [
800
+ "error",
801
+ ],
757
802
  "@typescript-eslint/no-unnecessary-type-assertion": [
758
803
  "error",
759
804
  ],
760
805
  "@typescript-eslint/no-unnecessary-type-constraint": [
761
806
  "error",
762
807
  ],
808
+ "@typescript-eslint/no-unnecessary-type-parameters": [
809
+ "error",
810
+ ],
763
811
  "@typescript-eslint/no-unsafe-argument": [
764
812
  "error",
765
813
  ],
@@ -796,6 +844,9 @@ exports[`validate config load config file in ESLint to validate all rules are co
796
844
  "argsIgnorePattern": "^_",
797
845
  },
798
846
  ],
847
+ "@typescript-eslint/no-useless-constructor": [
848
+ "error",
849
+ ],
799
850
  "@typescript-eslint/no-wrapper-object-types": [
800
851
  "error",
801
852
  ],
@@ -808,26 +859,57 @@ exports[`validate config load config file in ESLint to validate all rules are co
808
859
  "@typescript-eslint/prefer-as-const": [
809
860
  "error",
810
861
  ],
862
+ "@typescript-eslint/prefer-literal-enum-member": [
863
+ "error",
864
+ ],
811
865
  "@typescript-eslint/prefer-namespace-keyword": [
812
866
  "error",
813
867
  ],
814
868
  "@typescript-eslint/prefer-promise-reject-errors": [
815
869
  "error",
816
870
  ],
871
+ "@typescript-eslint/prefer-reduce-type-parameter": [
872
+ "error",
873
+ ],
874
+ "@typescript-eslint/prefer-return-this-type": [
875
+ "error",
876
+ ],
817
877
  "@typescript-eslint/prefer-ts-expect-error": [
818
878
  "error",
819
879
  ],
820
880
  "@typescript-eslint/quotes": [
821
881
  0,
822
882
  ],
883
+ "@typescript-eslint/related-getter-setter-pairs": [
884
+ "error",
885
+ ],
823
886
  "@typescript-eslint/require-await": [
824
887
  "error",
825
888
  ],
826
889
  "@typescript-eslint/restrict-plus-operands": [
827
890
  "error",
891
+ {
892
+ "allowAny": false,
893
+ "allowBoolean": false,
894
+ "allowNullish": false,
895
+ "allowNumberAndString": false,
896
+ "allowRegExp": false,
897
+ },
828
898
  ],
829
899
  "@typescript-eslint/restrict-template-expressions": [
830
900
  "error",
901
+ {
902
+ "allowAny": false,
903
+ "allowBoolean": false,
904
+ "allowNever": false,
905
+ "allowNullish": false,
906
+ "allowNumber": false,
907
+ "allowRegExp": false,
908
+ },
909
+ ],
910
+ "@typescript-eslint/return-await": [
911
+ "error",
912
+ "error-handling-correctness-only",
831
913
  ],
832
914
  "@typescript-eslint/semi": [
833
915
  "off",
@@ -850,6 +932,12 @@ exports[`validate config load config file in ESLint to validate all rules are co
850
932
  "@typescript-eslint/unbound-method": [
851
933
  "off",
852
934
  ],
935
+ "@typescript-eslint/unified-signatures": [
936
+ "error",
937
+ ],
938
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": [
939
+ "error",
940
+ ],
853
941
  "array-bracket-newline": [
854
942
  "off",
855
943
  ],
@@ -1316,6 +1404,9 @@ exports[`validate config load config file in ESLint to validate all rules are co
1316
1404
  "no-reserved-keys": [
1317
1405
  "off",
1318
1406
  ],
1407
+ "no-return-await": [
1408
+ "off",
1409
+ ],
1319
1410
  "no-self-assign": [
1320
1411
  "error",
1321
1412
  ],
@@ -1379,6 +1470,9 @@ exports[`validate config load config file in ESLint to validate all rules are co
1379
1470
  "no-useless-catch": [
1380
1471
  "error",
1381
1472
  ],
1473
+ "no-useless-constructor": [
1474
+ "off",
1475
+ ],
1382
1476
  "no-useless-escape": [
1383
1477
  "error",
1384
1478
  ],