@bigbinary/eslint-plugin-neeto 1.0.40 → 1.0.42

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.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/dist/index.js +1192 -315
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -218,6 +218,7 @@
218
218
  "@bigbinary/neeto/api-connector-should-use-default-export": "error",
219
219
  "@bigbinary/neeto/combine-multiple-independent-awaits": "warn",
220
220
  "@bigbinary/neeto/consistent-button-link-anchor": "warn",
221
+ "@bigbinary/neeto/ensure-compact-objects": "error",
221
222
  "@bigbinary/neeto/ensure-zustand-stores-are-type-annotated": "error",
222
223
  "@bigbinary/neeto/files-inside-react-query-folder-should-end-with-api": "warn",
223
224
  "@bigbinary/neeto/file-name-and-export-name-standards": ["error", {
@@ -1888,7 +1889,7 @@
1888
1889
 
1889
1890
  function cov_2gzkxmjfjh() {
1890
1891
  var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/utils/helpers.js";
1891
- var hash = "deb442a08f0ae83241fd248de1fbac09681e6984";
1892
+ var hash = "79afad8cb58f5560a516c50429ccb68875a7a543";
1892
1893
  var global = new Function("return this")();
1893
1894
  var gcv = "__coverage__";
1894
1895
  var coverageData = {
@@ -2457,11 +2458,11 @@
2457
2458
  "56": {
2458
2459
  start: {
2459
2460
  line: 153,
2460
- column: 29
2461
+ column: 30
2461
2462
  },
2462
2463
  end: {
2463
- line: 162,
2464
- column: 1
2464
+ line: 154,
2465
+ column: 71
2465
2466
  }
2466
2467
  },
2467
2468
  "57": {
@@ -2470,47 +2471,77 @@
2470
2471
  column: 2
2471
2472
  },
2472
2473
  end: {
2473
- line: 161,
2474
- column: 3
2474
+ line: 154,
2475
+ column: 71
2475
2476
  }
2476
2477
  },
2477
2478
  "58": {
2478
2479
  start: {
2479
- line: 155,
2480
- column: 21
2480
+ line: 154,
2481
+ column: 33
2481
2482
  },
2482
2483
  end: {
2483
- line: 155,
2484
- column: 57
2484
+ line: 154,
2485
+ column: 70
2485
2486
  }
2486
2487
  },
2487
2488
  "59": {
2488
2489
  start: {
2489
2490
  line: 156,
2490
- column: 27
2491
+ column: 29
2491
2492
  },
2492
2493
  end: {
2493
- line: 156,
2494
- column: 63
2494
+ line: 165,
2495
+ column: 1
2495
2496
  }
2496
2497
  },
2497
2498
  "60": {
2499
+ start: {
2500
+ line: 157,
2501
+ column: 2
2502
+ },
2503
+ end: {
2504
+ line: 164,
2505
+ column: 3
2506
+ }
2507
+ },
2508
+ "61": {
2498
2509
  start: {
2499
2510
  line: 158,
2500
- column: 4
2511
+ column: 21
2501
2512
  },
2502
2513
  end: {
2503
2514
  line: 158,
2515
+ column: 57
2516
+ }
2517
+ },
2518
+ "62": {
2519
+ start: {
2520
+ line: 159,
2521
+ column: 27
2522
+ },
2523
+ end: {
2524
+ line: 159,
2525
+ column: 63
2526
+ }
2527
+ },
2528
+ "63": {
2529
+ start: {
2530
+ line: 161,
2531
+ column: 4
2532
+ },
2533
+ end: {
2534
+ line: 161,
2504
2535
  column: 26
2505
2536
  }
2506
2537
  },
2507
- "61": {
2538
+ "64": {
2508
2539
  start: {
2509
- line: 160,
2540
+ line: 163,
2510
2541
  column: 4
2511
2542
  },
2512
2543
  end: {
2513
- line: 160,
2544
+ line: 163,
2514
2545
  column: 14
2515
2546
  }
2516
2547
  }
@@ -2977,24 +3008,72 @@
2977
3008
  decl: {
2978
3009
  start: {
2979
3010
  line: 153,
2980
- column: 29
3011
+ column: 30
2981
3012
  },
2982
3013
  end: {
2983
3014
  line: 153,
3015
+ column: 31
3016
+ }
3017
+ },
3018
+ loc: {
3019
+ start: {
3020
+ line: 154,
3021
+ column: 2
3022
+ },
3023
+ end: {
3024
+ line: 154,
3025
+ column: 71
3026
+ }
3027
+ },
3028
+ line: 154
3029
+ },
3030
+ "20": {
3031
+ name: "(anonymous_20)",
3032
+ decl: {
3033
+ start: {
3034
+ line: 154,
3035
+ column: 21
3036
+ },
3037
+ end: {
3038
+ line: 154,
3039
+ column: 22
3040
+ }
3041
+ },
3042
+ loc: {
3043
+ start: {
3044
+ line: 154,
3045
+ column: 33
3046
+ },
3047
+ end: {
3048
+ line: 154,
3049
+ column: 70
3050
+ }
3051
+ },
3052
+ line: 154
3053
+ },
3054
+ "21": {
3055
+ name: "(anonymous_21)",
3056
+ decl: {
3057
+ start: {
3058
+ line: 156,
3059
+ column: 29
3060
+ },
3061
+ end: {
3062
+ line: 156,
2984
3063
  column: 30
2985
3064
  }
2986
3065
  },
2987
3066
  loc: {
2988
3067
  start: {
2989
- line: 153,
3068
+ line: 156,
2990
3069
  column: 41
2991
3070
  },
2992
3071
  end: {
2993
- line: 162,
3072
+ line: 165,
2994
3073
  column: 1
2995
3074
  }
2996
3075
  },
2997
- line: 153
3076
+ line: 156
2998
3077
  }
2999
3078
  },
3000
3079
  branchMap: {
@@ -3481,7 +3560,10 @@
3481
3560
  "58": 0,
3482
3561
  "59": 0,
3483
3562
  "60": 0,
3484
- "61": 0
3563
+ "61": 0,
3564
+ "62": 0,
3565
+ "63": 0,
3566
+ "64": 0
3485
3567
  },
3486
3568
  f: {
3487
3569
  "0": 0,
@@ -3503,7 +3585,9 @@
3503
3585
  "16": 0,
3504
3586
  "17": 0,
3505
3587
  "18": 0,
3506
- "19": 0
3588
+ "19": 0,
3589
+ "20": 0,
3590
+ "21": 0
3507
3591
  },
3508
3592
  b: {
3509
3593
  "0": [0, 0],
@@ -3521,7 +3605,7 @@
3521
3605
  "12": [0, 0]
3522
3606
  },
3523
3607
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
3524
- hash: "deb442a08f0ae83241fd248de1fbac09681e6984"
3608
+ hash: "79afad8cb58f5560a516c50429ccb68875a7a543"
3525
3609
  };
3526
3610
  var coverage = global[gcv] || (global[gcv] = {});
3527
3611
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -3782,16 +3866,26 @@
3782
3866
  return isOptionalChainingPresent(node) ? (cov_2gzkxmjfjh().b[12][0]++, "_".concat(funcName)) : (cov_2gzkxmjfjh().b[12][1]++, funcName);
3783
3867
  };
3784
3868
  cov_2gzkxmjfjh().s[56]++;
3785
- var parseJsonData = function parseJsonData(filePath) {
3869
+ var isExcludedFile = function isExcludedFile(excludedFiles, filename) {
3786
3870
  cov_2gzkxmjfjh().f[19]++;
3787
3871
  cov_2gzkxmjfjh().s[57]++;
3872
+ return excludedFiles.some(function (filePath) {
3873
+ cov_2gzkxmjfjh().f[20]++;
3874
+ cov_2gzkxmjfjh().s[58]++;
3875
+ return filePath.test(path__default["default"].resolve(filename));
3876
+ });
3877
+ };
3878
+ cov_2gzkxmjfjh().s[59]++;
3879
+ var parseJsonData = function parseJsonData(filePath) {
3880
+ cov_2gzkxmjfjh().f[21]++;
3881
+ cov_2gzkxmjfjh().s[60]++;
3788
3882
  try {
3789
- var jsonData = (cov_2gzkxmjfjh().s[58]++, fs__default["default"].readFileSync(filePath).toString());
3790
- var parsedJsonData = (cov_2gzkxmjfjh().s[59]++, JSON.parse(removeComments(jsonData)));
3791
- cov_2gzkxmjfjh().s[60]++;
3883
+ var jsonData = (cov_2gzkxmjfjh().s[61]++, fs__default["default"].readFileSync(filePath).toString());
3884
+ var parsedJsonData = (cov_2gzkxmjfjh().s[62]++, JSON.parse(removeComments(jsonData)));
3885
+ cov_2gzkxmjfjh().s[63]++;
3792
3886
  return parsedJsonData;
3793
3887
  } catch (_unused) {
3794
- cov_2gzkxmjfjh().s[61]++;
3888
+ cov_2gzkxmjfjh().s[64]++;
3795
3889
  return {};
3796
3890
  }
3797
3891
  };
@@ -12604,7 +12698,7 @@
12604
12698
 
12605
12699
  function cov_6133n876n() {
12606
12700
  var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/constants/constants.js";
12607
- var hash = "b8644545b447341a3f690aee6e72045bbcbdae5c";
12701
+ var hash = "15ea80414af64725a307fd12eb7614ae25e4d766";
12608
12702
  var global = new Function("return this")();
12609
12703
  var gcv = "__coverage__";
12610
12704
  var coverageData = {
@@ -12633,7 +12727,7 @@
12633
12727
  "2": {
12634
12728
  start: {
12635
12729
  line: 4,
12636
- column: 45
12730
+ column: 44
12637
12731
  },
12638
12732
  end: {
12639
12733
  line: 7,
@@ -12689,7 +12783,7 @@
12689
12783
  },
12690
12784
  b: {},
12691
12785
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
12692
- hash: "b8644545b447341a3f690aee6e72045bbcbdae5c"
12786
+ hash: "15ea80414af64725a307fd12eb7614ae25e4d766"
12693
12787
  };
12694
12788
  var coverage = global[gcv] || (global[gcv] = {});
12695
12789
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -12707,7 +12801,7 @@
12707
12801
  cov_6133n876n();
12708
12802
  var CONSTANT_CASE_PATTERN = (cov_6133n876n().s[0]++, /^[A-Z0-9_]*$/);
12709
12803
  var CONSTANTS_FILES = (cov_6133n876n().s[1]++, [/constants\//, /.*constants.(js|jsx)$/i]);
12710
- var CONSTANT_DECALARATION_PATTERN = (cov_6133n876n().s[2]++, {
12804
+ var CONSTANT_DECLARATION_PATTERN = (cov_6133n876n().s[2]++, {
12711
12805
  kind: "const",
12712
12806
  declarations: [{
12713
12807
  id: {
@@ -12720,42 +12814,52 @@
12720
12814
  }]
12721
12815
  });
12722
12816
 
12723
- function cov_1sexdwysae() {
12724
- var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/constants/utils.js";
12725
- var hash = "99621e2419ab45f2ef3dd6dbba2f9546291d8eaf";
12817
+ function cov_1ppagvbu7n() {
12818
+ var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/constants/no-dangling-constants.js";
12819
+ var hash = "67d76858a516be65391287557ec86bfe4065390a";
12726
12820
  var global = new Function("return this")();
12727
12821
  var gcv = "__coverage__";
12728
12822
  var coverageData = {
12729
- path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/constants/utils.js",
12823
+ path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/constants/no-dangling-constants.js",
12730
12824
  statementMap: {
12731
12825
  "0": {
12732
12826
  start: {
12733
- line: 5,
12734
- column: 31
12827
+ line: 16,
12828
+ column: 22
12735
12829
  },
12736
12830
  end: {
12737
- line: 8,
12831
+ line: 26,
12738
12832
  column: 3
12739
12833
  }
12740
12834
  },
12741
12835
  "1": {
12742
12836
  start: {
12743
- line: 6,
12744
- column: 2
12837
+ line: 18,
12838
+ column: 6
12745
12839
  },
12746
12840
  end: {
12747
- line: 8,
12748
- column: 3
12841
+ line: 24,
12842
+ column: 7
12749
12843
  }
12750
12844
  },
12751
12845
  "2": {
12752
12846
  start: {
12753
- line: 7,
12754
- column: 4
12847
+ line: 22,
12848
+ column: 29
12755
12849
  },
12756
12850
  end: {
12757
- line: 7,
12758
- column: 54
12851
+ line: 22,
12852
+ column: 57
12853
+ }
12854
+ },
12855
+ "3": {
12856
+ start: {
12857
+ line: 23,
12858
+ column: 8
12859
+ },
12860
+ end: {
12861
+ line: 23,
12862
+ column: 62
12759
12863
  }
12760
12864
  }
12761
12865
  },
@@ -12764,64 +12868,135 @@
12764
12868
  name: "(anonymous_0)",
12765
12869
  decl: {
12766
12870
  start: {
12767
- line: 5,
12768
- column: 31
12871
+ line: 16,
12872
+ column: 10
12769
12873
  },
12770
12874
  end: {
12771
- line: 5,
12772
- column: 32
12875
+ line: 16,
12876
+ column: 11
12773
12877
  }
12774
12878
  },
12775
12879
  loc: {
12776
12880
  start: {
12777
- line: 6,
12778
- column: 2
12881
+ line: 16,
12882
+ column: 22
12779
12883
  },
12780
12884
  end: {
12781
- line: 8,
12885
+ line: 26,
12782
12886
  column: 3
12783
12887
  }
12784
12888
  },
12785
- line: 6
12889
+ line: 16
12786
12890
  },
12787
12891
  "1": {
12788
12892
  name: "(anonymous_1)",
12789
12893
  decl: {
12790
12894
  start: {
12791
- line: 6,
12792
- column: 23
12895
+ line: 17,
12896
+ column: 4
12793
12897
  },
12794
12898
  end: {
12795
- line: 6,
12796
- column: 24
12899
+ line: 17,
12900
+ column: 5
12797
12901
  }
12798
12902
  },
12799
12903
  loc: {
12800
12904
  start: {
12801
- line: 7,
12802
- column: 4
12905
+ line: 17,
12906
+ column: 30
12803
12907
  },
12804
12908
  end: {
12805
- line: 7,
12806
- column: 54
12909
+ line: 25,
12910
+ column: 5
12807
12911
  }
12808
12912
  },
12809
- line: 7
12913
+ line: 17
12914
+ }
12915
+ },
12916
+ branchMap: {
12917
+ "0": {
12918
+ loc: {
12919
+ start: {
12920
+ line: 18,
12921
+ column: 6
12922
+ },
12923
+ end: {
12924
+ line: 24,
12925
+ column: 7
12926
+ }
12927
+ },
12928
+ type: "if",
12929
+ locations: [{
12930
+ start: {
12931
+ line: 18,
12932
+ column: 6
12933
+ },
12934
+ end: {
12935
+ line: 24,
12936
+ column: 7
12937
+ }
12938
+ }, {
12939
+ start: {
12940
+ line: undefined,
12941
+ column: undefined
12942
+ },
12943
+ end: {
12944
+ line: undefined,
12945
+ column: undefined
12946
+ }
12947
+ }],
12948
+ line: 18
12949
+ },
12950
+ "1": {
12951
+ loc: {
12952
+ start: {
12953
+ line: 19,
12954
+ column: 8
12955
+ },
12956
+ end: {
12957
+ line: 20,
12958
+ column: 51
12959
+ }
12960
+ },
12961
+ type: "binary-expr",
12962
+ locations: [{
12963
+ start: {
12964
+ line: 19,
12965
+ column: 8
12966
+ },
12967
+ end: {
12968
+ line: 19,
12969
+ column: 63
12970
+ }
12971
+ }, {
12972
+ start: {
12973
+ line: 20,
12974
+ column: 8
12975
+ },
12976
+ end: {
12977
+ line: 20,
12978
+ column: 51
12979
+ }
12980
+ }],
12981
+ line: 19
12810
12982
  }
12811
12983
  },
12812
- branchMap: {},
12813
12984
  s: {
12814
12985
  "0": 0,
12815
12986
  "1": 0,
12816
- "2": 0
12987
+ "2": 0,
12988
+ "3": 0
12817
12989
  },
12818
12990
  f: {
12819
12991
  "0": 0,
12820
12992
  "1": 0
12821
12993
  },
12822
- b: {},
12994
+ b: {
12995
+ "0": [0, 0],
12996
+ "1": [0, 0]
12997
+ },
12823
12998
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
12824
- hash: "99621e2419ab45f2ef3dd6dbba2f9546291d8eaf"
12999
+ hash: "67d76858a516be65391287557ec86bfe4065390a"
12825
13000
  };
12826
13001
  var coverage = global[gcv] || (global[gcv] = {});
12827
13002
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -12830,70 +13005,388 @@
12830
13005
  var actualCoverage = coverage[path];
12831
13006
  {
12832
13007
  // @ts-ignore
12833
- cov_1sexdwysae = function () {
13008
+ cov_1ppagvbu7n = function () {
12834
13009
  return actualCoverage;
12835
13010
  };
12836
13011
  }
12837
13012
  return actualCoverage;
12838
13013
  }
12839
- cov_1sexdwysae();
12840
- cov_1sexdwysae().s[0]++;
12841
- var isConstantsFile = function isConstantsFile(context) {
12842
- cov_1sexdwysae().f[0]++;
12843
- cov_1sexdwysae().s[1]++;
12844
- return CONSTANTS_FILES.some(function (filePath) {
12845
- cov_1sexdwysae().f[1]++;
12846
- cov_1sexdwysae().s[2]++;
12847
- return filePath.test(path__default["default"].resolve(context.getFilename()));
12848
- });
13014
+ cov_1ppagvbu7n();
13015
+ var noDanglingConstants = {
13016
+ meta: {
13017
+ type: "suggestion",
13018
+ docs: {
13019
+ description: "Indicates that any constant outside a constant.[js|jsx] file should be moved to a constant.[js|jsx] file."
13020
+ }
13021
+ },
13022
+ create: function create(context) {
13023
+ cov_1ppagvbu7n().f[0]++;
13024
+ cov_1ppagvbu7n().s[0]++;
13025
+ return {
13026
+ VariableDeclaration: function VariableDeclaration(node) {
13027
+ cov_1ppagvbu7n().f[1]++;
13028
+ cov_1ppagvbu7n().s[1]++;
13029
+ if ((cov_1ppagvbu7n().b[1][0]++, !isExcludedFile(CONSTANTS_FILES, context.getFilename())) && (cov_1ppagvbu7n().b[1][1]++, matches(CONSTANT_DECLARATION_PATTERN, node))) {
13030
+ cov_1ppagvbu7n().b[0][0]++;
13031
+ var constantName = (cov_1ppagvbu7n().s[2]++, node.declarations[0].id.name);
13032
+ cov_1ppagvbu7n().s[3]++;
13033
+ context.report(node, moveToConstantsJs(constantName));
13034
+ } else {
13035
+ cov_1ppagvbu7n().b[0][1]++;
13036
+ }
13037
+ }
13038
+ };
13039
+ }
12849
13040
  };
12850
13041
 
12851
- function cov_1ppagvbu7n() {
12852
- var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/constants/no-dangling-constants.js";
12853
- var hash = "453af03f3dd7f85ab3bf4c8db8a9fd491e49a472";
13042
+ function cov_1hbt2gy24u() {
13043
+ var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/ensure-compact-objects/constants.js";
13044
+ var hash = "efcf21ee2ae95b9913d326332d0e428ef1f30f58";
12854
13045
  var global = new Function("return this")();
12855
13046
  var gcv = "__coverage__";
12856
13047
  var coverageData = {
12857
- path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/constants/no-dangling-constants.js",
13048
+ path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/ensure-compact-objects/constants.js",
12858
13049
  statementMap: {
12859
13050
  "0": {
12860
13051
  start: {
12861
- line: 16,
13052
+ line: 6,
13053
+ column: 41
13054
+ },
13055
+ end: {
13056
+ line: 9,
13057
+ column: 1
13058
+ }
13059
+ },
13060
+ "1": {
13061
+ start: {
13062
+ line: 11,
13063
+ column: 39
13064
+ },
13065
+ end: {
13066
+ line: 13,
13067
+ column: 1
13068
+ }
13069
+ }
13070
+ },
13071
+ fnMap: {},
13072
+ branchMap: {},
13073
+ s: {
13074
+ "0": 0,
13075
+ "1": 0
13076
+ },
13077
+ f: {},
13078
+ b: {},
13079
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
13080
+ hash: "efcf21ee2ae95b9913d326332d0e428ef1f30f58"
13081
+ };
13082
+ var coverage = global[gcv] || (global[gcv] = {});
13083
+ if (!coverage[path] || coverage[path].hash !== hash) {
13084
+ coverage[path] = coverageData;
13085
+ }
13086
+ var actualCoverage = coverage[path];
13087
+ {
13088
+ // @ts-ignore
13089
+ cov_1hbt2gy24u = function () {
13090
+ return actualCoverage;
13091
+ };
13092
+ }
13093
+ return actualCoverage;
13094
+ }
13095
+ cov_1hbt2gy24u();
13096
+ var OBJECT_EXPRESSION_PATTERN = (cov_1hbt2gy24u().s[0]++, {
13097
+ type: TYPES.OBJECT_EXPRESSION,
13098
+ properties: isNotEmpty$1
13099
+ });
13100
+ var ARRAY_OR_OBJECT_PATTERN = (cov_1hbt2gy24u().s[1]++, {
13101
+ type: ramda.includes(ramda.__, [TYPES.ARRAY_EXPRESSION, TYPES.PROPERTY])
13102
+ });
13103
+
13104
+ function cov_17yhjdv6rr() {
13105
+ var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/ensure-compact-objects/index.js";
13106
+ var hash = "bc220bea68267c3c797a9839f5dc276073d3b9c7";
13107
+ var global = new Function("return this")();
13108
+ var gcv = "__coverage__";
13109
+ var coverageData = {
13110
+ path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/ensure-compact-objects/index.js",
13111
+ statementMap: {
13112
+ "0": {
13113
+ start: {
13114
+ line: 10,
13115
+ column: 26
13116
+ },
13117
+ end: {
13118
+ line: 10,
13119
+ column: 45
13120
+ }
13121
+ },
13122
+ "1": {
13123
+ start: {
13124
+ line: 20,
12862
13125
  column: 22
12863
13126
  },
12864
13127
  end: {
12865
- line: 26,
13128
+ line: 68,
12866
13129
  column: 3
12867
13130
  }
12868
13131
  },
12869
- "1": {
13132
+ "2": {
12870
13133
  start: {
12871
- line: 18,
13134
+ line: 22,
12872
13135
  column: 6
12873
13136
  },
12874
13137
  end: {
12875
- line: 24,
12876
- column: 7
13138
+ line: 22,
13139
+ column: 60
12877
13140
  }
12878
13141
  },
12879
- "2": {
13142
+ "3": {
12880
13143
  start: {
12881
13144
  line: 22,
12882
- column: 29
13145
+ column: 53
12883
13146
  },
12884
13147
  end: {
12885
13148
  line: 22,
13149
+ column: 60
13150
+ }
13151
+ },
13152
+ "4": {
13153
+ start: {
13154
+ line: 24,
13155
+ column: 6
13156
+ },
13157
+ end: {
13158
+ line: 24,
13159
+ column: 64
13160
+ }
13161
+ },
13162
+ "5": {
13163
+ start: {
13164
+ line: 24,
12886
13165
  column: 57
13166
+ },
13167
+ end: {
13168
+ line: 24,
13169
+ column: 64
12887
13170
  }
12888
13171
  },
12889
- "3": {
13172
+ "6": {
12890
13173
  start: {
12891
- line: 23,
13174
+ line: 26,
13175
+ column: 25
13176
+ },
13177
+ end: {
13178
+ line: 26,
13179
+ column: 48
13180
+ }
13181
+ },
13182
+ "7": {
13183
+ start: {
13184
+ line: 28,
13185
+ column: 26
13186
+ },
13187
+ end: {
13188
+ line: 28,
13189
+ column: 72
13190
+ }
13191
+ },
13192
+ "8": {
13193
+ start: {
13194
+ line: 29,
13195
+ column: 6
13196
+ },
13197
+ end: {
13198
+ line: 29,
13199
+ column: 30
13200
+ }
13201
+ },
13202
+ "9": {
13203
+ start: {
13204
+ line: 29,
13205
+ column: 23
13206
+ },
13207
+ end: {
13208
+ line: 29,
13209
+ column: 30
13210
+ }
13211
+ },
13212
+ "10": {
13213
+ start: {
13214
+ line: 31,
13215
+ column: 31
13216
+ },
13217
+ end: {
13218
+ line: 31,
13219
+ column: 50
13220
+ }
13221
+ },
13222
+ "11": {
13223
+ start: {
13224
+ line: 32,
13225
+ column: 31
13226
+ },
13227
+ end: {
13228
+ line: 32,
13229
+ column: 48
13230
+ }
13231
+ },
13232
+ "12": {
13233
+ start: {
13234
+ line: 34,
13235
+ column: 6
13236
+ },
13237
+ end: {
13238
+ line: 34,
13239
+ column: 56
13240
+ }
13241
+ },
13242
+ "13": {
13243
+ start: {
13244
+ line: 34,
13245
+ column: 49
13246
+ },
13247
+ end: {
13248
+ line: 34,
13249
+ column: 56
13250
+ }
13251
+ },
13252
+ "14": {
13253
+ start: {
13254
+ line: 36,
13255
+ column: 35
13256
+ },
13257
+ end: {
13258
+ line: 38,
13259
+ column: 19
13260
+ }
13261
+ },
13262
+ "15": {
13263
+ start: {
13264
+ line: 37,
13265
+ column: 25
13266
+ },
13267
+ end: {
13268
+ line: 37,
13269
+ column: 53
13270
+ }
13271
+ },
13272
+ "16": {
13273
+ start: {
13274
+ line: 40,
13275
+ column: 18
13276
+ },
13277
+ end: {
13278
+ line: 40,
13279
+ column: 47
13280
+ }
13281
+ },
13282
+ "17": {
13283
+ start: {
13284
+ line: 42,
13285
+ column: 6
13286
+ },
13287
+ end: {
13288
+ line: 42,
13289
+ column: 36
13290
+ }
13291
+ },
13292
+ "18": {
13293
+ start: {
13294
+ line: 42,
13295
+ column: 29
13296
+ },
13297
+ end: {
13298
+ line: 42,
13299
+ column: 36
13300
+ }
13301
+ },
13302
+ "19": {
13303
+ start: {
13304
+ line: 44,
13305
+ column: 33
13306
+ },
13307
+ end: {
13308
+ line: 44,
13309
+ column: 54
13310
+ }
13311
+ },
13312
+ "20": {
13313
+ start: {
13314
+ line: 45,
13315
+ column: 33
13316
+ },
13317
+ end: {
13318
+ line: 45,
13319
+ column: 52
13320
+ }
13321
+ },
13322
+ "21": {
13323
+ start: {
13324
+ line: 48,
12892
13325
  column: 8
12893
13326
  },
12894
13327
  end: {
12895
- line: 23,
12896
- column: 62
13328
+ line: 51,
13329
+ column: 28
13330
+ }
13331
+ },
13332
+ "22": {
13333
+ start: {
13334
+ line: 54,
13335
+ column: 8
13336
+ },
13337
+ end: {
13338
+ line: 54,
13339
+ column: 79
13340
+ }
13341
+ },
13342
+ "23": {
13343
+ start: {
13344
+ line: 57,
13345
+ column: 8
13346
+ },
13347
+ end: {
13348
+ line: 57,
13349
+ column: 72
13350
+ }
13351
+ },
13352
+ "24": {
13353
+ start: {
13354
+ line: 59,
13355
+ column: 6
13356
+ },
13357
+ end: {
13358
+ line: 59,
13359
+ column: 44
13360
+ }
13361
+ },
13362
+ "25": {
13363
+ start: {
13364
+ line: 59,
13365
+ column: 37
13366
+ },
13367
+ end: {
13368
+ line: 59,
13369
+ column: 44
13370
+ }
13371
+ },
13372
+ "26": {
13373
+ start: {
13374
+ line: 61,
13375
+ column: 6
13376
+ },
13377
+ end: {
13378
+ line: 66,
13379
+ column: 9
13380
+ }
13381
+ },
13382
+ "27": {
13383
+ start: {
13384
+ line: 65,
13385
+ column: 22
13386
+ },
13387
+ end: {
13388
+ line: 65,
13389
+ column: 50
12897
13390
  }
12898
13391
  }
12899
13392
  },
@@ -12902,72 +13395,153 @@
12902
13395
  name: "(anonymous_0)",
12903
13396
  decl: {
12904
13397
  start: {
12905
- line: 16,
13398
+ line: 20,
12906
13399
  column: 10
12907
13400
  },
12908
13401
  end: {
12909
- line: 16,
13402
+ line: 20,
12910
13403
  column: 11
12911
13404
  }
12912
13405
  },
12913
13406
  loc: {
12914
13407
  start: {
12915
- line: 16,
13408
+ line: 20,
12916
13409
  column: 22
12917
13410
  },
12918
13411
  end: {
12919
- line: 26,
13412
+ line: 68,
12920
13413
  column: 3
12921
13414
  }
12922
13415
  },
12923
- line: 16
13416
+ line: 20
12924
13417
  },
12925
13418
  "1": {
12926
13419
  name: "(anonymous_1)",
12927
13420
  decl: {
12928
13421
  start: {
12929
- line: 17,
13422
+ line: 21,
12930
13423
  column: 4
12931
13424
  },
12932
13425
  end: {
12933
- line: 17,
13426
+ line: 21,
12934
13427
  column: 5
12935
13428
  }
12936
13429
  },
12937
13430
  loc: {
12938
13431
  start: {
12939
- line: 17,
12940
- column: 30
13432
+ line: 21,
13433
+ column: 27
12941
13434
  },
12942
13435
  end: {
12943
- line: 25,
13436
+ line: 67,
12944
13437
  column: 5
12945
13438
  }
12946
13439
  },
12947
- line: 17
13440
+ line: 21
13441
+ },
13442
+ "2": {
13443
+ name: "(anonymous_2)",
13444
+ decl: {
13445
+ start: {
13446
+ line: 37,
13447
+ column: 13
13448
+ },
13449
+ end: {
13450
+ line: 37,
13451
+ column: 14
13452
+ }
13453
+ },
13454
+ loc: {
13455
+ start: {
13456
+ line: 37,
13457
+ column: 25
13458
+ },
13459
+ end: {
13460
+ line: 37,
13461
+ column: 53
13462
+ }
13463
+ },
13464
+ line: 37
13465
+ },
13466
+ "3": {
13467
+ name: "(anonymous_3)",
13468
+ decl: {
13469
+ start: {
13470
+ line: 65,
13471
+ column: 13
13472
+ },
13473
+ end: {
13474
+ line: 65,
13475
+ column: 14
13476
+ }
13477
+ },
13478
+ loc: {
13479
+ start: {
13480
+ line: 65,
13481
+ column: 22
13482
+ },
13483
+ end: {
13484
+ line: 65,
13485
+ column: 50
13486
+ }
13487
+ },
13488
+ line: 65
12948
13489
  }
12949
13490
  },
12950
13491
  branchMap: {
12951
13492
  "0": {
12952
13493
  loc: {
12953
13494
  start: {
12954
- line: 18,
13495
+ line: 22,
12955
13496
  column: 6
12956
13497
  },
12957
13498
  end: {
13499
+ line: 22,
13500
+ column: 60
13501
+ }
13502
+ },
13503
+ type: "if",
13504
+ locations: [{
13505
+ start: {
13506
+ line: 22,
13507
+ column: 6
13508
+ },
13509
+ end: {
13510
+ line: 22,
13511
+ column: 60
13512
+ }
13513
+ }, {
13514
+ start: {
13515
+ line: undefined,
13516
+ column: undefined
13517
+ },
13518
+ end: {
13519
+ line: undefined,
13520
+ column: undefined
13521
+ }
13522
+ }],
13523
+ line: 22
13524
+ },
13525
+ "1": {
13526
+ loc: {
13527
+ start: {
12958
13528
  line: 24,
12959
- column: 7
13529
+ column: 6
13530
+ },
13531
+ end: {
13532
+ line: 24,
13533
+ column: 64
12960
13534
  }
12961
13535
  },
12962
13536
  type: "if",
12963
13537
  locations: [{
12964
13538
  start: {
12965
- line: 18,
13539
+ line: 24,
12966
13540
  column: 6
12967
13541
  },
12968
13542
  end: {
12969
13543
  line: 24,
12970
- column: 7
13544
+ column: 64
12971
13545
  }
12972
13546
  }, {
12973
13547
  start: {
@@ -12979,58 +13553,221 @@
12979
13553
  column: undefined
12980
13554
  }
12981
13555
  }],
12982
- line: 18
13556
+ line: 24
12983
13557
  },
12984
- "1": {
13558
+ "2": {
12985
13559
  loc: {
12986
13560
  start: {
12987
- line: 19,
13561
+ line: 29,
13562
+ column: 6
13563
+ },
13564
+ end: {
13565
+ line: 29,
13566
+ column: 30
13567
+ }
13568
+ },
13569
+ type: "if",
13570
+ locations: [{
13571
+ start: {
13572
+ line: 29,
13573
+ column: 6
13574
+ },
13575
+ end: {
13576
+ line: 29,
13577
+ column: 30
13578
+ }
13579
+ }, {
13580
+ start: {
13581
+ line: undefined,
13582
+ column: undefined
13583
+ },
13584
+ end: {
13585
+ line: undefined,
13586
+ column: undefined
13587
+ }
13588
+ }],
13589
+ line: 29
13590
+ },
13591
+ "3": {
13592
+ loc: {
13593
+ start: {
13594
+ line: 34,
13595
+ column: 6
13596
+ },
13597
+ end: {
13598
+ line: 34,
13599
+ column: 56
13600
+ }
13601
+ },
13602
+ type: "if",
13603
+ locations: [{
13604
+ start: {
13605
+ line: 34,
13606
+ column: 6
13607
+ },
13608
+ end: {
13609
+ line: 34,
13610
+ column: 56
13611
+ }
13612
+ }, {
13613
+ start: {
13614
+ line: undefined,
13615
+ column: undefined
13616
+ },
13617
+ end: {
13618
+ line: undefined,
13619
+ column: undefined
13620
+ }
13621
+ }],
13622
+ line: 34
13623
+ },
13624
+ "4": {
13625
+ loc: {
13626
+ start: {
13627
+ line: 42,
13628
+ column: 6
13629
+ },
13630
+ end: {
13631
+ line: 42,
13632
+ column: 36
13633
+ }
13634
+ },
13635
+ type: "if",
13636
+ locations: [{
13637
+ start: {
13638
+ line: 42,
13639
+ column: 6
13640
+ },
13641
+ end: {
13642
+ line: 42,
13643
+ column: 36
13644
+ }
13645
+ }, {
13646
+ start: {
13647
+ line: undefined,
13648
+ column: undefined
13649
+ },
13650
+ end: {
13651
+ line: undefined,
13652
+ column: undefined
13653
+ }
13654
+ }],
13655
+ line: 42
13656
+ },
13657
+ "5": {
13658
+ loc: {
13659
+ start: {
13660
+ line: 48,
12988
13661
  column: 8
12989
13662
  },
12990
13663
  end: {
12991
- line: 20,
12992
- column: 52
13664
+ line: 51,
13665
+ column: 28
12993
13666
  }
12994
13667
  },
12995
13668
  type: "binary-expr",
12996
13669
  locations: [{
12997
13670
  start: {
12998
- line: 19,
13671
+ line: 48,
12999
13672
  column: 8
13000
13673
  },
13001
13674
  end: {
13002
- line: 19,
13003
- column: 33
13675
+ line: 51,
13676
+ column: 22
13004
13677
  }
13005
13678
  }, {
13006
13679
  start: {
13007
- line: 20,
13008
- column: 8
13680
+ line: 51,
13681
+ column: 26
13009
13682
  },
13010
13683
  end: {
13011
- line: 20,
13012
- column: 52
13684
+ line: 51,
13685
+ column: 28
13013
13686
  }
13014
13687
  }],
13015
- line: 19
13688
+ line: 48
13689
+ },
13690
+ "6": {
13691
+ loc: {
13692
+ start: {
13693
+ line: 59,
13694
+ column: 6
13695
+ },
13696
+ end: {
13697
+ line: 59,
13698
+ column: 44
13699
+ }
13700
+ },
13701
+ type: "if",
13702
+ locations: [{
13703
+ start: {
13704
+ line: 59,
13705
+ column: 6
13706
+ },
13707
+ end: {
13708
+ line: 59,
13709
+ column: 44
13710
+ }
13711
+ }, {
13712
+ start: {
13713
+ line: undefined,
13714
+ column: undefined
13715
+ },
13716
+ end: {
13717
+ line: undefined,
13718
+ column: undefined
13719
+ }
13720
+ }],
13721
+ line: 59
13016
13722
  }
13017
13723
  },
13018
13724
  s: {
13019
13725
  "0": 0,
13020
13726
  "1": 0,
13021
13727
  "2": 0,
13022
- "3": 0
13728
+ "3": 0,
13729
+ "4": 0,
13730
+ "5": 0,
13731
+ "6": 0,
13732
+ "7": 0,
13733
+ "8": 0,
13734
+ "9": 0,
13735
+ "10": 0,
13736
+ "11": 0,
13737
+ "12": 0,
13738
+ "13": 0,
13739
+ "14": 0,
13740
+ "15": 0,
13741
+ "16": 0,
13742
+ "17": 0,
13743
+ "18": 0,
13744
+ "19": 0,
13745
+ "20": 0,
13746
+ "21": 0,
13747
+ "22": 0,
13748
+ "23": 0,
13749
+ "24": 0,
13750
+ "25": 0,
13751
+ "26": 0,
13752
+ "27": 0
13023
13753
  },
13024
13754
  f: {
13025
13755
  "0": 0,
13026
- "1": 0
13756
+ "1": 0,
13757
+ "2": 0,
13758
+ "3": 0
13027
13759
  },
13028
13760
  b: {
13029
13761
  "0": [0, 0],
13030
- "1": [0, 0]
13762
+ "1": [0, 0],
13763
+ "2": [0, 0],
13764
+ "3": [0, 0],
13765
+ "4": [0, 0],
13766
+ "5": [0, 0],
13767
+ "6": [0, 0]
13031
13768
  },
13032
13769
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
13033
- hash: "453af03f3dd7f85ab3bf4c8db8a9fd491e49a472"
13770
+ hash: "bc220bea68267c3c797a9839f5dc276073d3b9c7"
13034
13771
  };
13035
13772
  var coverage = global[gcv] || (global[gcv] = {});
13036
13773
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -13039,35 +13776,110 @@
13039
13776
  var actualCoverage = coverage[path];
13040
13777
  {
13041
13778
  // @ts-ignore
13042
- cov_1ppagvbu7n = function () {
13779
+ cov_17yhjdv6rr = function () {
13043
13780
  return actualCoverage;
13044
13781
  };
13045
13782
  }
13046
13783
  return actualCoverage;
13047
13784
  }
13048
- cov_1ppagvbu7n();
13049
- var noDanglingConstants = {
13785
+ cov_17yhjdv6rr();
13786
+ var _ref = (cov_17yhjdv6rr().s[0]++, require("prettier")),
13787
+ resolveConfig = _ref.resolveConfig;
13788
+ var ensureCompactObjects = {
13050
13789
  meta: {
13051
- type: "suggestion",
13790
+ type: "problem",
13052
13791
  docs: {
13053
- description: "Indicates that any constant outside a constant.[js|jsx] file should be moved to a constant.[js|jsx] file."
13054
- }
13792
+ description: "Ensures compact objects"
13793
+ },
13794
+ fixable: "whitespace"
13055
13795
  },
13056
13796
  create: function create(context) {
13057
- cov_1ppagvbu7n().f[0]++;
13058
- cov_1ppagvbu7n().s[0]++;
13797
+ cov_17yhjdv6rr().f[0]++;
13798
+ cov_17yhjdv6rr().s[1]++;
13059
13799
  return {
13060
- VariableDeclaration: function VariableDeclaration(node) {
13061
- cov_1ppagvbu7n().f[1]++;
13062
- cov_1ppagvbu7n().s[1]++;
13063
- if ((cov_1ppagvbu7n().b[1][0]++, !isConstantsFile(context)) && (cov_1ppagvbu7n().b[1][1]++, matches(CONSTANT_DECALARATION_PATTERN, node))) {
13064
- cov_1ppagvbu7n().b[0][0]++;
13065
- var constantName = (cov_1ppagvbu7n().s[2]++, node.declarations[0].id.name);
13066
- cov_1ppagvbu7n().s[3]++;
13067
- context.report(node, moveToConstantsJs(constantName));
13800
+ ObjectExpression: function ObjectExpression(node) {
13801
+ var _resolveConfig$sync;
13802
+ cov_17yhjdv6rr().f[1]++;
13803
+ cov_17yhjdv6rr().s[2]++;
13804
+ if (!matches(OBJECT_EXPRESSION_PATTERN, node)) {
13805
+ cov_17yhjdv6rr().b[0][0]++;
13806
+ cov_17yhjdv6rr().s[3]++;
13807
+ return;
13068
13808
  } else {
13069
- cov_1ppagvbu7n().b[0][1]++;
13809
+ cov_17yhjdv6rr().b[0][1]++;
13070
13810
  }
13811
+ cov_17yhjdv6rr().s[4]++;
13812
+ if (matches(ARRAY_OR_OBJECT_PATTERN, node.parent)) {
13813
+ cov_17yhjdv6rr().b[1][0]++;
13814
+ cov_17yhjdv6rr().s[5]++;
13815
+ return;
13816
+ } else {
13817
+ cov_17yhjdv6rr().b[1][1]++;
13818
+ }
13819
+ var sourceCode = (cov_17yhjdv6rr().s[6]++, context.getSourceCode());
13820
+ var hasComments = (cov_17yhjdv6rr().s[7]++, isNotEmpty$1(sourceCode.getCommentsInside(node)));
13821
+ cov_17yhjdv6rr().s[8]++;
13822
+ if (hasComments) {
13823
+ cov_17yhjdv6rr().b[2][0]++;
13824
+ cov_17yhjdv6rr().s[9]++;
13825
+ return;
13826
+ } else {
13827
+ cov_17yhjdv6rr().b[2][1]++;
13828
+ }
13829
+ var openingBraceLine = (cov_17yhjdv6rr().s[10]++, node.loc.start.line);
13830
+ var closingBraceLine = (cov_17yhjdv6rr().s[11]++, node.loc.end.line);
13831
+ cov_17yhjdv6rr().s[12]++;
13832
+ if (openingBraceLine === closingBraceLine) {
13833
+ cov_17yhjdv6rr().b[3][0]++;
13834
+ cov_17yhjdv6rr().s[13]++;
13835
+ return;
13836
+ } else {
13837
+ cov_17yhjdv6rr().b[3][1]++;
13838
+ }
13839
+ var singleLineExpression = (cov_17yhjdv6rr().s[14]++, node.properties.map(function (property) {
13840
+ cov_17yhjdv6rr().f[2]++;
13841
+ cov_17yhjdv6rr().s[15]++;
13842
+ return sourceCode.getText(property);
13843
+ }).join(", "));
13844
+ var _fix = (cov_17yhjdv6rr().s[16]++, "{ ".concat(singleLineExpression, " }"));
13845
+ cov_17yhjdv6rr().s[17]++;
13846
+ if (/\r|\n/.test(_fix)) {
13847
+ cov_17yhjdv6rr().b[4][0]++;
13848
+ cov_17yhjdv6rr().s[18]++;
13849
+ return;
13850
+ } else {
13851
+ cov_17yhjdv6rr().b[4][1]++;
13852
+ }
13853
+ var openingBraceColumn = (cov_17yhjdv6rr().s[19]++, node.loc.start.column);
13854
+ var closingBraceColumn = (cov_17yhjdv6rr().s[20]++, node.loc.end.column);
13855
+ var printWidth = (cov_17yhjdv6rr().s[21]++, (cov_17yhjdv6rr().b[5][0]++, (_resolveConfig$sync = resolveConfig.sync(context.getFilename(), {
13856
+ useCache: true,
13857
+ editorconfig: true
13858
+ })) === null || _resolveConfig$sync === void 0 ? void 0 : _resolveConfig$sync.printWidth) || (cov_17yhjdv6rr().b[5][1]++, 80));
13859
+ var countOfTokensAfterClosingBrace = (cov_17yhjdv6rr().s[22]++, sourceCode.lines[closingBraceLine - 1].slice(closingBraceColumn).length);
13860
+ var resultLength = (cov_17yhjdv6rr().s[23]++, openingBraceColumn + _fix.length + countOfTokensAfterClosingBrace);
13861
+ cov_17yhjdv6rr().s[24]++;
13862
+ if (resultLength > printWidth) {
13863
+ cov_17yhjdv6rr().b[6][0]++;
13864
+ cov_17yhjdv6rr().s[25]++;
13865
+ return;
13866
+ } else {
13867
+ cov_17yhjdv6rr().b[6][1]++;
13868
+ }
13869
+ cov_17yhjdv6rr().s[26]++;
13870
+ context.report({
13871
+ node: node,
13872
+ loc: {
13873
+ start: node.loc.start,
13874
+ end: node.loc.end
13875
+ },
13876
+ message: replaceWith(_fix),
13877
+ fix: function fix(fixer) {
13878
+ cov_17yhjdv6rr().f[3]++;
13879
+ cov_17yhjdv6rr().s[27]++;
13880
+ return fixer.replaceText(node, _fix);
13881
+ }
13882
+ });
13071
13883
  }
13072
13884
  };
13073
13885
  }
@@ -21357,7 +22169,7 @@
21357
22169
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21358
22170
  var translationFiles = (cov_1dbv2r7tr6().s[0]++, []);
21359
22171
  var previousOptions = (cov_1dbv2r7tr6().s[1]++, null);
21360
- var watcher = (cov_1dbv2r7tr6().s[2]++, null);
22172
+ var watcher$1 = (cov_1dbv2r7tr6().s[2]++, null);
21361
22173
  var i18next = (cov_1dbv2r7tr6().s[3]++, ramda.memoizeWith(function () {
21362
22174
  cov_1dbv2r7tr6().f[0]++;
21363
22175
  cov_1dbv2r7tr6().s[4]++;
@@ -21390,7 +22202,7 @@
21390
22202
  var watchTranslationsDir = function watchTranslationsDir(translationsDirPath) {
21391
22203
  cov_1dbv2r7tr6().f[3]++;
21392
22204
  cov_1dbv2r7tr6().s[13]++;
21393
- return watcher = fs.watch(translationsDirPath, {
22205
+ return watcher$1 = fs.watch(translationsDirPath, {
21394
22206
  persistent: false
21395
22207
  }, function (_, changedFileName) {
21396
22208
  cov_1dbv2r7tr6().f[4]++;
@@ -21526,7 +22338,7 @@
21526
22338
  cov_1dbv2r7tr6().b[6][1]++;
21527
22339
  }
21528
22340
  cov_1dbv2r7tr6().s[40]++;
21529
- if (!watcher) {
22341
+ if (!watcher$1) {
21530
22342
  cov_1dbv2r7tr6().b[7][0]++;
21531
22343
  cov_1dbv2r7tr6().s[41]++;
21532
22344
  watchTranslationsDir(context.options[0].translationsDir);
@@ -52313,7 +53125,7 @@
52313
53125
 
52314
53126
  function cov_1qf21ie77k() {
52315
53127
  var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/webpack-aliases-and-jsconfig-paths-should-be-in-sync.js";
52316
- var hash = "6f4d69e46c06f0f4dd2f2bc5a765b30a9a62efe3";
53128
+ var hash = "8a9e23dd18d6ad26961969c2cc9e23399eb291a7";
52317
53129
  var global = new Function("return this")();
52318
53130
  var gcv = "__coverage__";
52319
53131
  var coverageData = {
@@ -52331,241 +53143,261 @@
52331
53143
  },
52332
53144
  "1": {
52333
53145
  start: {
52334
- line: 10,
52335
- column: 26
53146
+ line: 9,
53147
+ column: 14
52336
53148
  },
52337
53149
  end: {
52338
- line: 15,
52339
- column: 3
53150
+ line: 9,
53151
+ column: 18
52340
53152
  }
52341
53153
  },
52342
53154
  "2": {
52343
53155
  start: {
52344
53156
  line: 11,
52345
- column: 2
53157
+ column: 26
52346
53158
  },
52347
53159
  end: {
52348
- line: 15,
52349
- column: 3
53160
+ line: 16,
53161
+ column: 4
52350
53162
  }
52351
53163
  },
52352
53164
  "3": {
52353
53165
  start: {
52354
- line: 14,
53166
+ line: 12,
53167
+ column: 3
53168
+ },
53169
+ end: {
53170
+ line: 16,
53171
+ column: 3
53172
+ }
53173
+ },
53174
+ "4": {
53175
+ start: {
53176
+ line: 15,
52355
53177
  column: 11
52356
53178
  },
52357
53179
  end: {
52358
- line: 14,
53180
+ line: 15,
52359
53181
  column: 49
52360
53182
  }
52361
53183
  },
52362
- "4": {
53184
+ "5": {
52363
53185
  start: {
52364
- line: 25,
53186
+ line: 26,
52365
53187
  column: 4
52366
53188
  },
52367
53189
  end: {
52368
- line: 25,
53190
+ line: 26,
52369
53191
  column: 59
52370
53192
  }
52371
53193
  },
52372
- "5": {
53194
+ "6": {
52373
53195
  start: {
52374
- line: 25,
53196
+ line: 26,
52375
53197
  column: 49
52376
53198
  },
52377
53199
  end: {
52378
- line: 25,
53200
+ line: 26,
52379
53201
  column: 59
52380
53202
  }
52381
53203
  },
52382
- "6": {
53204
+ "7": {
52383
53205
  start: {
52384
- line: 27,
53206
+ line: 28,
52385
53207
  column: 4
52386
53208
  },
52387
53209
  end: {
52388
- line: 27,
52389
- column: 62
53210
+ line: 28,
53211
+ column: 76
52390
53212
  }
52391
53213
  },
52392
- "7": {
53214
+ "8": {
52393
53215
  start: {
52394
- line: 29,
53216
+ line: 28,
53217
+ column: 18
53218
+ },
53219
+ end: {
53220
+ line: 28,
53221
+ column: 76
53222
+ }
53223
+ },
53224
+ "9": {
53225
+ start: {
53226
+ line: 30,
52395
53227
  column: 4
52396
53228
  },
52397
53229
  end: {
52398
- line: 55,
53230
+ line: 56,
52399
53231
  column: 6
52400
53232
  }
52401
53233
  },
52402
- "8": {
53234
+ "10": {
52403
53235
  start: {
52404
- line: 31,
53236
+ line: 32,
52405
53237
  column: 25
52406
53238
  },
52407
53239
  end: {
52408
- line: 31,
53240
+ line: 32,
52409
53241
  column: 46
52410
53242
  }
52411
53243
  },
52412
- "9": {
53244
+ "11": {
52413
53245
  start: {
52414
- line: 33,
53246
+ line: 34,
52415
53247
  column: 10
52416
53248
  },
52417
53249
  end: {
52418
- line: 33,
53250
+ line: 34,
52419
53251
  column: 58
52420
53252
  }
52421
53253
  },
52422
- "10": {
53254
+ "12": {
52423
53255
  start: {
52424
- line: 34,
53256
+ line: 35,
52425
53257
  column: 8
52426
53258
  },
52427
53259
  end: {
52428
- line: 34,
53260
+ line: 35,
52429
53261
  column: 39
52430
53262
  }
52431
53263
  },
52432
- "11": {
53264
+ "13": {
52433
53265
  start: {
52434
- line: 34,
53266
+ line: 35,
52435
53267
  column: 32
52436
53268
  },
52437
53269
  end: {
52438
- line: 34,
53270
+ line: 35,
52439
53271
  column: 39
52440
53272
  }
52441
53273
  },
52442
- "12": {
53274
+ "14": {
52443
53275
  start: {
52444
- line: 37,
53276
+ line: 38,
52445
53277
  column: 10
52446
53278
  },
52447
53279
  end: {
52448
- line: 37,
53280
+ line: 38,
52449
53281
  column: 52
52450
53282
  }
52451
53283
  },
52452
- "13": {
53284
+ "15": {
52453
53285
  start: {
52454
- line: 38,
53286
+ line: 39,
52455
53287
  column: 8
52456
53288
  },
52457
53289
  end: {
52458
- line: 38,
53290
+ line: 39,
52459
53291
  column: 43
52460
53292
  }
52461
53293
  },
52462
- "14": {
53294
+ "16": {
52463
53295
  start: {
52464
- line: 38,
53296
+ line: 39,
52465
53297
  column: 36
52466
53298
  },
52467
53299
  end: {
52468
- line: 38,
53300
+ line: 39,
52469
53301
  column: 43
52470
53302
  }
52471
53303
  },
52472
- "15": {
53304
+ "17": {
52473
53305
  start: {
52474
- line: 40,
53306
+ line: 41,
52475
53307
  column: 8
52476
53308
  },
52477
53309
  end: {
52478
- line: 42,
53310
+ line: 43,
52479
53311
  column: 9
52480
53312
  }
52481
53313
  },
52482
- "16": {
53314
+ "18": {
52483
53315
  start: {
52484
- line: 41,
53316
+ line: 42,
52485
53317
  column: 10
52486
53318
  },
52487
53319
  end: {
52488
- line: 41,
53320
+ line: 42,
52489
53321
  column: 79
52490
53322
  }
52491
53323
  },
52492
- "17": {
53324
+ "19": {
52493
53325
  start: {
52494
- line: 44,
53326
+ line: 45,
52495
53327
  column: 30
52496
53328
  },
52497
53329
  end: {
52498
- line: 44,
53330
+ line: 45,
52499
53331
  column: 66
52500
53332
  }
52501
53333
  },
52502
- "18": {
53334
+ "20": {
52503
53335
  start: {
52504
- line: 45,
53336
+ line: 46,
52505
53337
  column: 8
52506
53338
  },
52507
53339
  end: {
52508
- line: 45,
53340
+ line: 46,
52509
53341
  column: 35
52510
53342
  }
52511
53343
  },
52512
- "19": {
53344
+ "21": {
52513
53345
  start: {
52514
- line: 45,
53346
+ line: 46,
52515
53347
  column: 28
52516
53348
  },
52517
53349
  end: {
52518
- line: 45,
53350
+ line: 46,
52519
53351
  column: 35
52520
53352
  }
52521
53353
  },
52522
- "20": {
53354
+ "22": {
52523
53355
  start: {
52524
- line: 47,
53356
+ line: 48,
52525
53357
  column: 26
52526
53358
  },
52527
53359
  end: {
52528
- line: 47,
53360
+ line: 48,
52529
53361
  column: 39
52530
53362
  }
52531
53363
  },
52532
- "21": {
53364
+ "23": {
52533
53365
  start: {
52534
- line: 48,
53366
+ line: 49,
52535
53367
  column: 24
52536
53368
  },
52537
53369
  end: {
52538
- line: 50,
53370
+ line: 51,
52539
53371
  column: 9
52540
53372
  }
52541
53373
  },
52542
- "22": {
53374
+ "24": {
52543
53375
  start: {
52544
- line: 51,
53376
+ line: 52,
52545
53377
  column: 8
52546
53378
  },
52547
53379
  end: {
52548
- line: 51,
53380
+ line: 52,
52549
53381
  column: 28
52550
53382
  }
52551
53383
  },
52552
- "23": {
53384
+ "25": {
52553
53385
  start: {
52554
- line: 51,
53386
+ line: 52,
52555
53387
  column: 21
52556
53388
  },
52557
53389
  end: {
52558
- line: 51,
53390
+ line: 52,
52559
53391
  column: 28
52560
53392
  }
52561
53393
  },
52562
- "24": {
53394
+ "26": {
52563
53395
  start: {
52564
- line: 53,
53396
+ line: 54,
52565
53397
  column: 8
52566
53398
  },
52567
53399
  end: {
52568
- line: 53,
53400
+ line: 54,
52569
53401
  column: 68
52570
53402
  }
52571
53403
  }
@@ -52575,119 +53407,119 @@
52575
53407
  name: "(anonymous_0)",
52576
53408
  decl: {
52577
53409
  start: {
52578
- line: 10,
53410
+ line: 11,
52579
53411
  column: 26
52580
53412
  },
52581
53413
  end: {
52582
- line: 10,
53414
+ line: 11,
52583
53415
  column: 27
52584
53416
  }
52585
53417
  },
52586
53418
  loc: {
52587
53419
  start: {
52588
- line: 11,
52589
- column: 2
53420
+ line: 12,
53421
+ column: 3
52590
53422
  },
52591
53423
  end: {
52592
- line: 15,
53424
+ line: 16,
52593
53425
  column: 3
52594
53426
  }
52595
53427
  },
52596
- line: 11
53428
+ line: 12
52597
53429
  },
52598
53430
  "1": {
52599
53431
  name: "(anonymous_1)",
52600
53432
  decl: {
52601
53433
  start: {
52602
- line: 14,
53434
+ line: 15,
52603
53435
  column: 4
52604
53436
  },
52605
53437
  end: {
52606
- line: 14,
53438
+ line: 15,
52607
53439
  column: 5
52608
53440
  }
52609
53441
  },
52610
53442
  loc: {
52611
53443
  start: {
52612
- line: 14,
53444
+ line: 15,
52613
53445
  column: 11
52614
53446
  },
52615
53447
  end: {
52616
- line: 14,
53448
+ line: 15,
52617
53449
  column: 49
52618
53450
  }
52619
53451
  },
52620
- line: 14
53452
+ line: 15
52621
53453
  },
52622
53454
  "2": {
52623
53455
  name: "(anonymous_2)",
52624
53456
  decl: {
52625
53457
  start: {
52626
- line: 24,
53458
+ line: 25,
52627
53459
  column: 10
52628
53460
  },
52629
53461
  end: {
52630
- line: 24,
53462
+ line: 25,
52631
53463
  column: 11
52632
53464
  }
52633
53465
  },
52634
53466
  loc: {
52635
53467
  start: {
52636
- line: 24,
53468
+ line: 25,
52637
53469
  column: 21
52638
53470
  },
52639
53471
  end: {
52640
- line: 56,
53472
+ line: 57,
52641
53473
  column: 3
52642
53474
  }
52643
53475
  },
52644
- line: 24
53476
+ line: 25
52645
53477
  },
52646
53478
  "3": {
52647
53479
  name: "(anonymous_3)",
52648
53480
  decl: {
52649
53481
  start: {
52650
- line: 30,
53482
+ line: 31,
52651
53483
  column: 6
52652
53484
  },
52653
53485
  end: {
52654
- line: 30,
53486
+ line: 31,
52655
53487
  column: 7
52656
53488
  }
52657
53489
  },
52658
53490
  loc: {
52659
53491
  start: {
52660
- line: 30,
53492
+ line: 31,
52661
53493
  column: 21
52662
53494
  },
52663
53495
  end: {
52664
- line: 54,
53496
+ line: 55,
52665
53497
  column: 7
52666
53498
  }
52667
53499
  },
52668
- line: 30
53500
+ line: 31
52669
53501
  }
52670
53502
  },
52671
53503
  branchMap: {
52672
53504
  "0": {
52673
53505
  loc: {
52674
53506
  start: {
52675
- line: 25,
53507
+ line: 26,
52676
53508
  column: 4
52677
53509
  },
52678
53510
  end: {
52679
- line: 25,
53511
+ line: 26,
52680
53512
  column: 59
52681
53513
  }
52682
53514
  },
52683
53515
  type: "if",
52684
53516
  locations: [{
52685
53517
  start: {
52686
- line: 25,
53518
+ line: 26,
52687
53519
  column: 4
52688
53520
  },
52689
53521
  end: {
52690
- line: 25,
53522
+ line: 26,
52691
53523
  column: 59
52692
53524
  }
52693
53525
  }, {
@@ -52700,27 +53532,60 @@
52700
53532
  column: undefined
52701
53533
  }
52702
53534
  }],
52703
- line: 25
53535
+ line: 26
52704
53536
  },
52705
53537
  "1": {
52706
53538
  loc: {
52707
53539
  start: {
52708
- line: 34,
53540
+ line: 28,
53541
+ column: 4
53542
+ },
53543
+ end: {
53544
+ line: 28,
53545
+ column: 76
53546
+ }
53547
+ },
53548
+ type: "if",
53549
+ locations: [{
53550
+ start: {
53551
+ line: 28,
53552
+ column: 4
53553
+ },
53554
+ end: {
53555
+ line: 28,
53556
+ column: 76
53557
+ }
53558
+ }, {
53559
+ start: {
53560
+ line: undefined,
53561
+ column: undefined
53562
+ },
53563
+ end: {
53564
+ line: undefined,
53565
+ column: undefined
53566
+ }
53567
+ }],
53568
+ line: 28
53569
+ },
53570
+ "2": {
53571
+ loc: {
53572
+ start: {
53573
+ line: 35,
52709
53574
  column: 8
52710
53575
  },
52711
53576
  end: {
52712
- line: 34,
53577
+ line: 35,
52713
53578
  column: 39
52714
53579
  }
52715
53580
  },
52716
53581
  type: "if",
52717
53582
  locations: [{
52718
53583
  start: {
52719
- line: 34,
53584
+ line: 35,
52720
53585
  column: 8
52721
53586
  },
52722
53587
  end: {
52723
- line: 34,
53588
+ line: 35,
52724
53589
  column: 39
52725
53590
  }
52726
53591
  }, {
@@ -52733,27 +53598,27 @@
52733
53598
  column: undefined
52734
53599
  }
52735
53600
  }],
52736
- line: 34
53601
+ line: 35
52737
53602
  },
52738
- "2": {
53603
+ "3": {
52739
53604
  loc: {
52740
53605
  start: {
52741
- line: 38,
53606
+ line: 39,
52742
53607
  column: 8
52743
53608
  },
52744
53609
  end: {
52745
- line: 38,
53610
+ line: 39,
52746
53611
  column: 43
52747
53612
  }
52748
53613
  },
52749
53614
  type: "if",
52750
53615
  locations: [{
52751
53616
  start: {
52752
- line: 38,
53617
+ line: 39,
52753
53618
  column: 8
52754
53619
  },
52755
53620
  end: {
52756
- line: 38,
53621
+ line: 39,
52757
53622
  column: 43
52758
53623
  }
52759
53624
  }, {
@@ -52766,27 +53631,27 @@
52766
53631
  column: undefined
52767
53632
  }
52768
53633
  }],
52769
- line: 38
53634
+ line: 39
52770
53635
  },
52771
- "3": {
53636
+ "4": {
52772
53637
  loc: {
52773
53638
  start: {
52774
- line: 40,
53639
+ line: 41,
52775
53640
  column: 8
52776
53641
  },
52777
53642
  end: {
52778
- line: 42,
53643
+ line: 43,
52779
53644
  column: 9
52780
53645
  }
52781
53646
  },
52782
53647
  type: "if",
52783
53648
  locations: [{
52784
53649
  start: {
52785
- line: 40,
53650
+ line: 41,
52786
53651
  column: 8
52787
53652
  },
52788
53653
  end: {
52789
- line: 42,
53654
+ line: 43,
52790
53655
  column: 9
52791
53656
  }
52792
53657
  }, {
@@ -52799,27 +53664,27 @@
52799
53664
  column: undefined
52800
53665
  }
52801
53666
  }],
52802
- line: 40
53667
+ line: 41
52803
53668
  },
52804
- "4": {
53669
+ "5": {
52805
53670
  loc: {
52806
53671
  start: {
52807
- line: 45,
53672
+ line: 46,
52808
53673
  column: 8
52809
53674
  },
52810
53675
  end: {
52811
- line: 45,
53676
+ line: 46,
52812
53677
  column: 35
52813
53678
  }
52814
53679
  },
52815
53680
  type: "if",
52816
53681
  locations: [{
52817
53682
  start: {
52818
- line: 45,
53683
+ line: 46,
52819
53684
  column: 8
52820
53685
  },
52821
53686
  end: {
52822
- line: 45,
53687
+ line: 46,
52823
53688
  column: 35
52824
53689
  }
52825
53690
  }, {
@@ -52832,27 +53697,27 @@
52832
53697
  column: undefined
52833
53698
  }
52834
53699
  }],
52835
- line: 45
53700
+ line: 46
52836
53701
  },
52837
- "5": {
53702
+ "6": {
52838
53703
  loc: {
52839
53704
  start: {
52840
- line: 51,
53705
+ line: 52,
52841
53706
  column: 8
52842
53707
  },
52843
53708
  end: {
52844
- line: 51,
53709
+ line: 52,
52845
53710
  column: 28
52846
53711
  }
52847
53712
  },
52848
53713
  type: "if",
52849
53714
  locations: [{
52850
53715
  start: {
52851
- line: 51,
53716
+ line: 52,
52852
53717
  column: 8
52853
53718
  },
52854
53719
  end: {
52855
- line: 51,
53720
+ line: 52,
52856
53721
  column: 28
52857
53722
  }
52858
53723
  }, {
@@ -52865,7 +53730,7 @@
52865
53730
  column: undefined
52866
53731
  }
52867
53732
  }],
52868
- line: 51
53733
+ line: 52
52869
53734
  }
52870
53735
  },
52871
53736
  s: {
@@ -52893,7 +53758,9 @@
52893
53758
  "21": 0,
52894
53759
  "22": 0,
52895
53760
  "23": 0,
52896
- "24": 0
53761
+ "24": 0,
53762
+ "25": 0,
53763
+ "26": 0
52897
53764
  },
52898
53765
  f: {
52899
53766
  "0": 0,
@@ -52907,10 +53774,11 @@
52907
53774
  "2": [0, 0],
52908
53775
  "3": [0, 0],
52909
53776
  "4": [0, 0],
52910
- "5": [0, 0]
53777
+ "5": [0, 0],
53778
+ "6": [0, 0]
52911
53779
  },
52912
53780
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
52913
- hash: "6f4d69e46c06f0f4dd2f2bc5a765b30a9a62efe3"
53781
+ hash: "8a9e23dd18d6ad26961969c2cc9e23399eb291a7"
52914
53782
  };
52915
53783
  var coverage = global[gcv] || (global[gcv] = {});
52916
53784
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -52927,15 +53795,16 @@
52927
53795
  }
52928
53796
  cov_1qf21ie77k();
52929
53797
  var jsconfigData = (cov_1qf21ie77k().s[0]++, null);
52930
- cov_1qf21ie77k().s[1]++;
53798
+ var watcher = (cov_1qf21ie77k().s[1]++, null);
53799
+ cov_1qf21ie77k().s[2]++;
52931
53800
  var watchJsConfigFile = function watchJsConfigFile(filePath) {
52932
53801
  cov_1qf21ie77k().f[0]++;
52933
- cov_1qf21ie77k().s[2]++;
52934
- return fs__default["default"].watch(filePath, {
53802
+ cov_1qf21ie77k().s[3]++;
53803
+ return watcher = fs__default["default"].watch(filePath, {
52935
53804
  persistent: false
52936
53805
  }, function () {
52937
53806
  cov_1qf21ie77k().f[1]++;
52938
- cov_1qf21ie77k().s[3]++;
53807
+ cov_1qf21ie77k().s[4]++;
52939
53808
  return jsconfigData = parseJsonData(filePath);
52940
53809
  });
52941
53810
  };
@@ -52947,71 +53816,78 @@
52947
53816
  }
52948
53817
  },
52949
53818
  create: function create(context) {
52950
- var _context$options, _context$options$, _context$options2, _context$options2$;
53819
+ var _context$options, _context$options$;
52951
53820
  cov_1qf21ie77k().f[2]++;
52952
- cov_1qf21ie77k().s[4]++;
53821
+ cov_1qf21ie77k().s[5]++;
52953
53822
  if (!((_context$options = context.options) !== null && _context$options !== void 0 && (_context$options$ = _context$options[0]) !== null && _context$options$ !== void 0 && _context$options$.jsconfigFilePath)) {
52954
53823
  cov_1qf21ie77k().b[0][0]++;
52955
- cov_1qf21ie77k().s[5]++;
53824
+ cov_1qf21ie77k().s[6]++;
52956
53825
  return {};
52957
53826
  } else {
52958
53827
  cov_1qf21ie77k().b[0][1]++;
52959
53828
  }
52960
- cov_1qf21ie77k().s[6]++;
52961
- watchJsConfigFile((_context$options2 = context.options) === null || _context$options2 === void 0 ? void 0 : (_context$options2$ = _context$options2[0]) === null || _context$options2$ === void 0 ? void 0 : _context$options2$.jsconfigFilePath);
52962
53829
  cov_1qf21ie77k().s[7]++;
53830
+ if (!watcher) {
53831
+ var _context$options2, _context$options2$;
53832
+ cov_1qf21ie77k().b[1][0]++;
53833
+ cov_1qf21ie77k().s[8]++;
53834
+ watchJsConfigFile((_context$options2 = context.options) === null || _context$options2 === void 0 ? void 0 : (_context$options2$ = _context$options2[0]) === null || _context$options2$ === void 0 ? void 0 : _context$options2$.jsconfigFilePath);
53835
+ } else {
53836
+ cov_1qf21ie77k().b[1][1]++;
53837
+ }
53838
+ cov_1qf21ie77k().s[9]++;
52963
53839
  return {
52964
53840
  Property: function Property(node) {
52965
53841
  var _context$options3, _context$options3$, _node$parent, _node$parent$parent, _node$parent$parent$k, _jsconfigData, _jsconfigData$compile;
52966
53842
  cov_1qf21ie77k().f[3]++;
52967
- var filename = (cov_1qf21ie77k().s[8]++, context.getFilename());
52968
- var isInsideAliasFile = (cov_1qf21ie77k().s[9]++, filename === ((_context$options3 = context.options) === null || _context$options3 === void 0 ? void 0 : (_context$options3$ = _context$options3[0]) === null || _context$options3$ === void 0 ? void 0 : _context$options3$.aliasFilePath));
52969
- cov_1qf21ie77k().s[10]++;
53843
+ var filename = (cov_1qf21ie77k().s[10]++, context.getFilename());
53844
+ var isInsideAliasFile = (cov_1qf21ie77k().s[11]++, filename === ((_context$options3 = context.options) === null || _context$options3 === void 0 ? void 0 : (_context$options3$ = _context$options3[0]) === null || _context$options3$ === void 0 ? void 0 : _context$options3$.aliasFilePath));
53845
+ cov_1qf21ie77k().s[12]++;
52970
53846
  if (!isInsideAliasFile) {
52971
- cov_1qf21ie77k().b[1][0]++;
52972
- cov_1qf21ie77k().s[11]++;
52973
- return;
52974
- } else {
52975
- cov_1qf21ie77k().b[1][1]++;
52976
- }
52977
- var isInsideAliasProperty = (cov_1qf21ie77k().s[12]++, ((_node$parent = node.parent) === null || _node$parent === void 0 ? void 0 : (_node$parent$parent = _node$parent.parent) === null || _node$parent$parent === void 0 ? void 0 : (_node$parent$parent$k = _node$parent$parent.key) === null || _node$parent$parent$k === void 0 ? void 0 : _node$parent$parent$k.name) === "alias");
52978
- cov_1qf21ie77k().s[13]++;
52979
- if (!isInsideAliasProperty) {
52980
53847
  cov_1qf21ie77k().b[2][0]++;
52981
- cov_1qf21ie77k().s[14]++;
53848
+ cov_1qf21ie77k().s[13]++;
52982
53849
  return;
52983
53850
  } else {
52984
53851
  cov_1qf21ie77k().b[2][1]++;
52985
53852
  }
53853
+ var isInsideAliasProperty = (cov_1qf21ie77k().s[14]++, ((_node$parent = node.parent) === null || _node$parent === void 0 ? void 0 : (_node$parent$parent = _node$parent.parent) === null || _node$parent$parent === void 0 ? void 0 : (_node$parent$parent$k = _node$parent$parent.key) === null || _node$parent$parent$k === void 0 ? void 0 : _node$parent$parent$k.name) === "alias");
52986
53854
  cov_1qf21ie77k().s[15]++;
52987
- if (jsconfigData === null) {
52988
- var _context$options4, _context$options4$;
53855
+ if (!isInsideAliasProperty) {
52989
53856
  cov_1qf21ie77k().b[3][0]++;
52990
53857
  cov_1qf21ie77k().s[16]++;
52991
- jsconfigData = parseJsonData((_context$options4 = context.options) === null || _context$options4 === void 0 ? void 0 : (_context$options4$ = _context$options4[0]) === null || _context$options4$ === void 0 ? void 0 : _context$options4$.jsconfigFilePath);
53858
+ return;
52992
53859
  } else {
52993
53860
  cov_1qf21ie77k().b[3][1]++;
52994
53861
  }
52995
- var jsconfigPaths = (cov_1qf21ie77k().s[17]++, (_jsconfigData = jsconfigData) === null || _jsconfigData === void 0 ? void 0 : (_jsconfigData$compile = _jsconfigData.compilerOptions) === null || _jsconfigData$compile === void 0 ? void 0 : _jsconfigData$compile.paths);
52996
- cov_1qf21ie77k().s[18]++;
52997
- if (!jsconfigPaths) {
53862
+ cov_1qf21ie77k().s[17]++;
53863
+ if (jsconfigData === null) {
53864
+ var _context$options4, _context$options4$;
52998
53865
  cov_1qf21ie77k().b[4][0]++;
52999
- cov_1qf21ie77k().s[19]++;
53000
- return;
53866
+ cov_1qf21ie77k().s[18]++;
53867
+ jsconfigData = parseJsonData((_context$options4 = context.options) === null || _context$options4 === void 0 ? void 0 : (_context$options4$ = _context$options4[0]) === null || _context$options4$ === void 0 ? void 0 : _context$options4$.jsconfigFilePath);
53001
53868
  } else {
53002
53869
  cov_1qf21ie77k().b[4][1]++;
53003
53870
  }
53004
- var aliasName = (cov_1qf21ie77k().s[20]++, node.key.name);
53005
- var matches = (cov_1qf21ie77k().s[21]++, Object.keys(jsconfigPaths).some(ramda.includes(ramda.__, [aliasName, "".concat(aliasName, "/*")])));
53006
- cov_1qf21ie77k().s[22]++;
53007
- if (matches) {
53871
+ var jsconfigPaths = (cov_1qf21ie77k().s[19]++, (_jsconfigData = jsconfigData) === null || _jsconfigData === void 0 ? void 0 : (_jsconfigData$compile = _jsconfigData.compilerOptions) === null || _jsconfigData$compile === void 0 ? void 0 : _jsconfigData$compile.paths);
53872
+ cov_1qf21ie77k().s[20]++;
53873
+ if (!jsconfigPaths) {
53008
53874
  cov_1qf21ie77k().b[5][0]++;
53009
- cov_1qf21ie77k().s[23]++;
53875
+ cov_1qf21ie77k().s[21]++;
53010
53876
  return;
53011
53877
  } else {
53012
53878
  cov_1qf21ie77k().b[5][1]++;
53013
53879
  }
53880
+ var aliasName = (cov_1qf21ie77k().s[22]++, node.key.name);
53881
+ var matches = (cov_1qf21ie77k().s[23]++, Object.keys(jsconfigPaths).some(ramda.includes(ramda.__, [aliasName, "".concat(aliasName, "/*")])));
53014
53882
  cov_1qf21ie77k().s[24]++;
53883
+ if (matches) {
53884
+ cov_1qf21ie77k().b[6][0]++;
53885
+ cov_1qf21ie77k().s[25]++;
53886
+ return;
53887
+ } else {
53888
+ cov_1qf21ie77k().b[6][1]++;
53889
+ }
53890
+ cov_1qf21ie77k().s[26]++;
53015
53891
  context.report({
53016
53892
  node: node,
53017
53893
  message: addInJsconfig(aliasName)
@@ -55929,6 +56805,7 @@
55929
56805
  "api-connector-should-use-default-export": apiConnectorShouldUseDefaultExport,
55930
56806
  "combine-multiple-independent-awaits": combineMultipleIndependentAwaits,
55931
56807
  "consistent-button-link-anchor": consistentButtonLinkAnchor,
56808
+ "ensure-compact-objects": ensureCompactObjects,
55932
56809
  "ensure-zustand-stores-are-type-annotated": ensureZustandStoresAreTypeAnnotated,
55933
56810
  "files-inside-react-query-folder-should-end-with-api": filesInsideReactQueryFolderShouldEndWithApi,
55934
56811
  "file-name-and-export-name-standards": fileNameAndExportNameStandards,