@bigbinary/eslint-plugin-neeto 1.0.41 → 1.0.43
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.
- package/README.md +1 -0
- package/dist/index.js +1073 -203
- 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", {
|
|
@@ -299,11 +300,12 @@
|
|
|
299
300
|
"@bigbinary/neeto/use-trans-components-and-values-props": "error",
|
|
300
301
|
"@bigbinary/neeto/use-webpack-alias": ["error", resolve.alias],
|
|
301
302
|
"@bigbinary/neeto/use-zustand-for-global-state-management": "error",
|
|
302
|
-
"@bigbinary/neeto/use-zustand-pick-transformer": "
|
|
303
|
+
"@bigbinary/neeto/use-zustand-pick-transformer": "warn",
|
|
303
304
|
"@bigbinary/neeto/webpack-aliases-and-jsconfig-paths-should-be-in-sync": ["error", {
|
|
304
305
|
jsconfigFilePath: path__default["default"].resolve(__dirname, "../../../..", "app/javascript/jsconfig.json"),
|
|
305
306
|
aliasFilePath: path__default["default"].resolve(__dirname, "../../../..", "config/webpack/resolve.js")
|
|
306
307
|
}],
|
|
308
|
+
"@bigbinary/neeto/zustand-recommend-comparator-function-usage": "warn",
|
|
307
309
|
"@bigbinary/neeto/zustand-use-prop-to-pick-single-item": "error"
|
|
308
310
|
};
|
|
309
311
|
|
|
@@ -1888,7 +1890,7 @@
|
|
|
1888
1890
|
|
|
1889
1891
|
function cov_2gzkxmjfjh() {
|
|
1890
1892
|
var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/utils/helpers.js";
|
|
1891
|
-
var hash = "
|
|
1893
|
+
var hash = "79afad8cb58f5560a516c50429ccb68875a7a543";
|
|
1892
1894
|
var global = new Function("return this")();
|
|
1893
1895
|
var gcv = "__coverage__";
|
|
1894
1896
|
var coverageData = {
|
|
@@ -2457,11 +2459,11 @@
|
|
|
2457
2459
|
"56": {
|
|
2458
2460
|
start: {
|
|
2459
2461
|
line: 153,
|
|
2460
|
-
column:
|
|
2462
|
+
column: 30
|
|
2461
2463
|
},
|
|
2462
2464
|
end: {
|
|
2463
|
-
line:
|
|
2464
|
-
column:
|
|
2465
|
+
line: 154,
|
|
2466
|
+
column: 71
|
|
2465
2467
|
}
|
|
2466
2468
|
},
|
|
2467
2469
|
"57": {
|
|
@@ -2470,47 +2472,77 @@
|
|
|
2470
2472
|
column: 2
|
|
2471
2473
|
},
|
|
2472
2474
|
end: {
|
|
2473
|
-
line:
|
|
2474
|
-
column:
|
|
2475
|
+
line: 154,
|
|
2476
|
+
column: 71
|
|
2475
2477
|
}
|
|
2476
2478
|
},
|
|
2477
2479
|
"58": {
|
|
2478
2480
|
start: {
|
|
2479
|
-
line:
|
|
2480
|
-
column:
|
|
2481
|
+
line: 154,
|
|
2482
|
+
column: 33
|
|
2481
2483
|
},
|
|
2482
2484
|
end: {
|
|
2483
|
-
line:
|
|
2484
|
-
column:
|
|
2485
|
+
line: 154,
|
|
2486
|
+
column: 70
|
|
2485
2487
|
}
|
|
2486
2488
|
},
|
|
2487
2489
|
"59": {
|
|
2488
2490
|
start: {
|
|
2489
2491
|
line: 156,
|
|
2490
|
-
column:
|
|
2492
|
+
column: 29
|
|
2491
2493
|
},
|
|
2492
2494
|
end: {
|
|
2493
|
-
line:
|
|
2494
|
-
column:
|
|
2495
|
+
line: 165,
|
|
2496
|
+
column: 1
|
|
2495
2497
|
}
|
|
2496
2498
|
},
|
|
2497
2499
|
"60": {
|
|
2500
|
+
start: {
|
|
2501
|
+
line: 157,
|
|
2502
|
+
column: 2
|
|
2503
|
+
},
|
|
2504
|
+
end: {
|
|
2505
|
+
line: 164,
|
|
2506
|
+
column: 3
|
|
2507
|
+
}
|
|
2508
|
+
},
|
|
2509
|
+
"61": {
|
|
2498
2510
|
start: {
|
|
2499
2511
|
line: 158,
|
|
2500
|
-
column:
|
|
2512
|
+
column: 21
|
|
2501
2513
|
},
|
|
2502
2514
|
end: {
|
|
2503
2515
|
line: 158,
|
|
2516
|
+
column: 57
|
|
2517
|
+
}
|
|
2518
|
+
},
|
|
2519
|
+
"62": {
|
|
2520
|
+
start: {
|
|
2521
|
+
line: 159,
|
|
2522
|
+
column: 27
|
|
2523
|
+
},
|
|
2524
|
+
end: {
|
|
2525
|
+
line: 159,
|
|
2526
|
+
column: 63
|
|
2527
|
+
}
|
|
2528
|
+
},
|
|
2529
|
+
"63": {
|
|
2530
|
+
start: {
|
|
2531
|
+
line: 161,
|
|
2532
|
+
column: 4
|
|
2533
|
+
},
|
|
2534
|
+
end: {
|
|
2535
|
+
line: 161,
|
|
2504
2536
|
column: 26
|
|
2505
2537
|
}
|
|
2506
2538
|
},
|
|
2507
|
-
"
|
|
2539
|
+
"64": {
|
|
2508
2540
|
start: {
|
|
2509
|
-
line:
|
|
2541
|
+
line: 163,
|
|
2510
2542
|
column: 4
|
|
2511
2543
|
},
|
|
2512
2544
|
end: {
|
|
2513
|
-
line:
|
|
2545
|
+
line: 163,
|
|
2514
2546
|
column: 14
|
|
2515
2547
|
}
|
|
2516
2548
|
}
|
|
@@ -2977,24 +3009,72 @@
|
|
|
2977
3009
|
decl: {
|
|
2978
3010
|
start: {
|
|
2979
3011
|
line: 153,
|
|
2980
|
-
column:
|
|
3012
|
+
column: 30
|
|
2981
3013
|
},
|
|
2982
3014
|
end: {
|
|
2983
3015
|
line: 153,
|
|
3016
|
+
column: 31
|
|
3017
|
+
}
|
|
3018
|
+
},
|
|
3019
|
+
loc: {
|
|
3020
|
+
start: {
|
|
3021
|
+
line: 154,
|
|
3022
|
+
column: 2
|
|
3023
|
+
},
|
|
3024
|
+
end: {
|
|
3025
|
+
line: 154,
|
|
3026
|
+
column: 71
|
|
3027
|
+
}
|
|
3028
|
+
},
|
|
3029
|
+
line: 154
|
|
3030
|
+
},
|
|
3031
|
+
"20": {
|
|
3032
|
+
name: "(anonymous_20)",
|
|
3033
|
+
decl: {
|
|
3034
|
+
start: {
|
|
3035
|
+
line: 154,
|
|
3036
|
+
column: 21
|
|
3037
|
+
},
|
|
3038
|
+
end: {
|
|
3039
|
+
line: 154,
|
|
3040
|
+
column: 22
|
|
3041
|
+
}
|
|
3042
|
+
},
|
|
3043
|
+
loc: {
|
|
3044
|
+
start: {
|
|
3045
|
+
line: 154,
|
|
3046
|
+
column: 33
|
|
3047
|
+
},
|
|
3048
|
+
end: {
|
|
3049
|
+
line: 154,
|
|
3050
|
+
column: 70
|
|
3051
|
+
}
|
|
3052
|
+
},
|
|
3053
|
+
line: 154
|
|
3054
|
+
},
|
|
3055
|
+
"21": {
|
|
3056
|
+
name: "(anonymous_21)",
|
|
3057
|
+
decl: {
|
|
3058
|
+
start: {
|
|
3059
|
+
line: 156,
|
|
3060
|
+
column: 29
|
|
3061
|
+
},
|
|
3062
|
+
end: {
|
|
3063
|
+
line: 156,
|
|
2984
3064
|
column: 30
|
|
2985
3065
|
}
|
|
2986
3066
|
},
|
|
2987
3067
|
loc: {
|
|
2988
3068
|
start: {
|
|
2989
|
-
line:
|
|
3069
|
+
line: 156,
|
|
2990
3070
|
column: 41
|
|
2991
3071
|
},
|
|
2992
3072
|
end: {
|
|
2993
|
-
line:
|
|
3073
|
+
line: 165,
|
|
2994
3074
|
column: 1
|
|
2995
3075
|
}
|
|
2996
3076
|
},
|
|
2997
|
-
line:
|
|
3077
|
+
line: 156
|
|
2998
3078
|
}
|
|
2999
3079
|
},
|
|
3000
3080
|
branchMap: {
|
|
@@ -3481,7 +3561,10 @@
|
|
|
3481
3561
|
"58": 0,
|
|
3482
3562
|
"59": 0,
|
|
3483
3563
|
"60": 0,
|
|
3484
|
-
"61": 0
|
|
3564
|
+
"61": 0,
|
|
3565
|
+
"62": 0,
|
|
3566
|
+
"63": 0,
|
|
3567
|
+
"64": 0
|
|
3485
3568
|
},
|
|
3486
3569
|
f: {
|
|
3487
3570
|
"0": 0,
|
|
@@ -3503,7 +3586,9 @@
|
|
|
3503
3586
|
"16": 0,
|
|
3504
3587
|
"17": 0,
|
|
3505
3588
|
"18": 0,
|
|
3506
|
-
"19": 0
|
|
3589
|
+
"19": 0,
|
|
3590
|
+
"20": 0,
|
|
3591
|
+
"21": 0
|
|
3507
3592
|
},
|
|
3508
3593
|
b: {
|
|
3509
3594
|
"0": [0, 0],
|
|
@@ -3521,7 +3606,7 @@
|
|
|
3521
3606
|
"12": [0, 0]
|
|
3522
3607
|
},
|
|
3523
3608
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
3524
|
-
hash: "
|
|
3609
|
+
hash: "79afad8cb58f5560a516c50429ccb68875a7a543"
|
|
3525
3610
|
};
|
|
3526
3611
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
3527
3612
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -3782,16 +3867,26 @@
|
|
|
3782
3867
|
return isOptionalChainingPresent(node) ? (cov_2gzkxmjfjh().b[12][0]++, "_".concat(funcName)) : (cov_2gzkxmjfjh().b[12][1]++, funcName);
|
|
3783
3868
|
};
|
|
3784
3869
|
cov_2gzkxmjfjh().s[56]++;
|
|
3785
|
-
var
|
|
3870
|
+
var isExcludedFile = function isExcludedFile(excludedFiles, filename) {
|
|
3786
3871
|
cov_2gzkxmjfjh().f[19]++;
|
|
3787
3872
|
cov_2gzkxmjfjh().s[57]++;
|
|
3873
|
+
return excludedFiles.some(function (filePath) {
|
|
3874
|
+
cov_2gzkxmjfjh().f[20]++;
|
|
3875
|
+
cov_2gzkxmjfjh().s[58]++;
|
|
3876
|
+
return filePath.test(path__default["default"].resolve(filename));
|
|
3877
|
+
});
|
|
3878
|
+
};
|
|
3879
|
+
cov_2gzkxmjfjh().s[59]++;
|
|
3880
|
+
var parseJsonData = function parseJsonData(filePath) {
|
|
3881
|
+
cov_2gzkxmjfjh().f[21]++;
|
|
3882
|
+
cov_2gzkxmjfjh().s[60]++;
|
|
3788
3883
|
try {
|
|
3789
|
-
var jsonData = (cov_2gzkxmjfjh().s[
|
|
3790
|
-
var parsedJsonData = (cov_2gzkxmjfjh().s[
|
|
3791
|
-
cov_2gzkxmjfjh().s[
|
|
3884
|
+
var jsonData = (cov_2gzkxmjfjh().s[61]++, fs__default["default"].readFileSync(filePath).toString());
|
|
3885
|
+
var parsedJsonData = (cov_2gzkxmjfjh().s[62]++, JSON.parse(removeComments(jsonData)));
|
|
3886
|
+
cov_2gzkxmjfjh().s[63]++;
|
|
3792
3887
|
return parsedJsonData;
|
|
3793
3888
|
} catch (_unused) {
|
|
3794
|
-
cov_2gzkxmjfjh().s[
|
|
3889
|
+
cov_2gzkxmjfjh().s[64]++;
|
|
3795
3890
|
return {};
|
|
3796
3891
|
}
|
|
3797
3892
|
};
|
|
@@ -12604,7 +12699,7 @@
|
|
|
12604
12699
|
|
|
12605
12700
|
function cov_6133n876n() {
|
|
12606
12701
|
var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/constants/constants.js";
|
|
12607
|
-
var hash = "
|
|
12702
|
+
var hash = "15ea80414af64725a307fd12eb7614ae25e4d766";
|
|
12608
12703
|
var global = new Function("return this")();
|
|
12609
12704
|
var gcv = "__coverage__";
|
|
12610
12705
|
var coverageData = {
|
|
@@ -12633,7 +12728,7 @@
|
|
|
12633
12728
|
"2": {
|
|
12634
12729
|
start: {
|
|
12635
12730
|
line: 4,
|
|
12636
|
-
column:
|
|
12731
|
+
column: 44
|
|
12637
12732
|
},
|
|
12638
12733
|
end: {
|
|
12639
12734
|
line: 7,
|
|
@@ -12689,7 +12784,7 @@
|
|
|
12689
12784
|
},
|
|
12690
12785
|
b: {},
|
|
12691
12786
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
12692
|
-
hash: "
|
|
12787
|
+
hash: "15ea80414af64725a307fd12eb7614ae25e4d766"
|
|
12693
12788
|
};
|
|
12694
12789
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
12695
12790
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -12707,7 +12802,7 @@
|
|
|
12707
12802
|
cov_6133n876n();
|
|
12708
12803
|
var CONSTANT_CASE_PATTERN = (cov_6133n876n().s[0]++, /^[A-Z0-9_]*$/);
|
|
12709
12804
|
var CONSTANTS_FILES = (cov_6133n876n().s[1]++, [/constants\//, /.*constants.(js|jsx)$/i]);
|
|
12710
|
-
var
|
|
12805
|
+
var CONSTANT_DECLARATION_PATTERN = (cov_6133n876n().s[2]++, {
|
|
12711
12806
|
kind: "const",
|
|
12712
12807
|
declarations: [{
|
|
12713
12808
|
id: {
|
|
@@ -12720,42 +12815,52 @@
|
|
|
12720
12815
|
}]
|
|
12721
12816
|
});
|
|
12722
12817
|
|
|
12723
|
-
function
|
|
12724
|
-
var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/constants/
|
|
12725
|
-
var hash = "
|
|
12818
|
+
function cov_1ppagvbu7n() {
|
|
12819
|
+
var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/constants/no-dangling-constants.js";
|
|
12820
|
+
var hash = "67d76858a516be65391287557ec86bfe4065390a";
|
|
12726
12821
|
var global = new Function("return this")();
|
|
12727
12822
|
var gcv = "__coverage__";
|
|
12728
12823
|
var coverageData = {
|
|
12729
|
-
path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/constants/
|
|
12824
|
+
path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/constants/no-dangling-constants.js",
|
|
12730
12825
|
statementMap: {
|
|
12731
12826
|
"0": {
|
|
12732
12827
|
start: {
|
|
12733
|
-
line:
|
|
12734
|
-
column:
|
|
12828
|
+
line: 16,
|
|
12829
|
+
column: 22
|
|
12735
12830
|
},
|
|
12736
12831
|
end: {
|
|
12737
|
-
line:
|
|
12832
|
+
line: 26,
|
|
12738
12833
|
column: 3
|
|
12739
12834
|
}
|
|
12740
12835
|
},
|
|
12741
12836
|
"1": {
|
|
12742
12837
|
start: {
|
|
12743
|
-
line:
|
|
12744
|
-
column:
|
|
12838
|
+
line: 18,
|
|
12839
|
+
column: 6
|
|
12745
12840
|
},
|
|
12746
12841
|
end: {
|
|
12747
|
-
line:
|
|
12748
|
-
column:
|
|
12842
|
+
line: 24,
|
|
12843
|
+
column: 7
|
|
12749
12844
|
}
|
|
12750
12845
|
},
|
|
12751
12846
|
"2": {
|
|
12752
12847
|
start: {
|
|
12753
|
-
line:
|
|
12754
|
-
column:
|
|
12848
|
+
line: 22,
|
|
12849
|
+
column: 29
|
|
12755
12850
|
},
|
|
12756
12851
|
end: {
|
|
12757
|
-
line:
|
|
12758
|
-
column:
|
|
12852
|
+
line: 22,
|
|
12853
|
+
column: 57
|
|
12854
|
+
}
|
|
12855
|
+
},
|
|
12856
|
+
"3": {
|
|
12857
|
+
start: {
|
|
12858
|
+
line: 23,
|
|
12859
|
+
column: 8
|
|
12860
|
+
},
|
|
12861
|
+
end: {
|
|
12862
|
+
line: 23,
|
|
12863
|
+
column: 62
|
|
12759
12864
|
}
|
|
12760
12865
|
}
|
|
12761
12866
|
},
|
|
@@ -12764,64 +12869,135 @@
|
|
|
12764
12869
|
name: "(anonymous_0)",
|
|
12765
12870
|
decl: {
|
|
12766
12871
|
start: {
|
|
12767
|
-
line:
|
|
12768
|
-
column:
|
|
12872
|
+
line: 16,
|
|
12873
|
+
column: 10
|
|
12769
12874
|
},
|
|
12770
12875
|
end: {
|
|
12771
|
-
line:
|
|
12772
|
-
column:
|
|
12876
|
+
line: 16,
|
|
12877
|
+
column: 11
|
|
12773
12878
|
}
|
|
12774
12879
|
},
|
|
12775
12880
|
loc: {
|
|
12776
12881
|
start: {
|
|
12777
|
-
line:
|
|
12778
|
-
column:
|
|
12882
|
+
line: 16,
|
|
12883
|
+
column: 22
|
|
12779
12884
|
},
|
|
12780
12885
|
end: {
|
|
12781
|
-
line:
|
|
12886
|
+
line: 26,
|
|
12782
12887
|
column: 3
|
|
12783
12888
|
}
|
|
12784
12889
|
},
|
|
12785
|
-
line:
|
|
12890
|
+
line: 16
|
|
12786
12891
|
},
|
|
12787
12892
|
"1": {
|
|
12788
12893
|
name: "(anonymous_1)",
|
|
12789
12894
|
decl: {
|
|
12790
12895
|
start: {
|
|
12791
|
-
line:
|
|
12792
|
-
column:
|
|
12896
|
+
line: 17,
|
|
12897
|
+
column: 4
|
|
12793
12898
|
},
|
|
12794
12899
|
end: {
|
|
12795
|
-
line:
|
|
12796
|
-
column:
|
|
12900
|
+
line: 17,
|
|
12901
|
+
column: 5
|
|
12797
12902
|
}
|
|
12798
12903
|
},
|
|
12799
12904
|
loc: {
|
|
12800
12905
|
start: {
|
|
12801
|
-
line:
|
|
12802
|
-
column:
|
|
12906
|
+
line: 17,
|
|
12907
|
+
column: 30
|
|
12803
12908
|
},
|
|
12804
12909
|
end: {
|
|
12805
|
-
line:
|
|
12806
|
-
column:
|
|
12910
|
+
line: 25,
|
|
12911
|
+
column: 5
|
|
12807
12912
|
}
|
|
12808
12913
|
},
|
|
12809
|
-
line:
|
|
12914
|
+
line: 17
|
|
12915
|
+
}
|
|
12916
|
+
},
|
|
12917
|
+
branchMap: {
|
|
12918
|
+
"0": {
|
|
12919
|
+
loc: {
|
|
12920
|
+
start: {
|
|
12921
|
+
line: 18,
|
|
12922
|
+
column: 6
|
|
12923
|
+
},
|
|
12924
|
+
end: {
|
|
12925
|
+
line: 24,
|
|
12926
|
+
column: 7
|
|
12927
|
+
}
|
|
12928
|
+
},
|
|
12929
|
+
type: "if",
|
|
12930
|
+
locations: [{
|
|
12931
|
+
start: {
|
|
12932
|
+
line: 18,
|
|
12933
|
+
column: 6
|
|
12934
|
+
},
|
|
12935
|
+
end: {
|
|
12936
|
+
line: 24,
|
|
12937
|
+
column: 7
|
|
12938
|
+
}
|
|
12939
|
+
}, {
|
|
12940
|
+
start: {
|
|
12941
|
+
line: undefined,
|
|
12942
|
+
column: undefined
|
|
12943
|
+
},
|
|
12944
|
+
end: {
|
|
12945
|
+
line: undefined,
|
|
12946
|
+
column: undefined
|
|
12947
|
+
}
|
|
12948
|
+
}],
|
|
12949
|
+
line: 18
|
|
12950
|
+
},
|
|
12951
|
+
"1": {
|
|
12952
|
+
loc: {
|
|
12953
|
+
start: {
|
|
12954
|
+
line: 19,
|
|
12955
|
+
column: 8
|
|
12956
|
+
},
|
|
12957
|
+
end: {
|
|
12958
|
+
line: 20,
|
|
12959
|
+
column: 51
|
|
12960
|
+
}
|
|
12961
|
+
},
|
|
12962
|
+
type: "binary-expr",
|
|
12963
|
+
locations: [{
|
|
12964
|
+
start: {
|
|
12965
|
+
line: 19,
|
|
12966
|
+
column: 8
|
|
12967
|
+
},
|
|
12968
|
+
end: {
|
|
12969
|
+
line: 19,
|
|
12970
|
+
column: 63
|
|
12971
|
+
}
|
|
12972
|
+
}, {
|
|
12973
|
+
start: {
|
|
12974
|
+
line: 20,
|
|
12975
|
+
column: 8
|
|
12976
|
+
},
|
|
12977
|
+
end: {
|
|
12978
|
+
line: 20,
|
|
12979
|
+
column: 51
|
|
12980
|
+
}
|
|
12981
|
+
}],
|
|
12982
|
+
line: 19
|
|
12810
12983
|
}
|
|
12811
12984
|
},
|
|
12812
|
-
branchMap: {},
|
|
12813
12985
|
s: {
|
|
12814
12986
|
"0": 0,
|
|
12815
12987
|
"1": 0,
|
|
12816
|
-
"2": 0
|
|
12988
|
+
"2": 0,
|
|
12989
|
+
"3": 0
|
|
12817
12990
|
},
|
|
12818
12991
|
f: {
|
|
12819
12992
|
"0": 0,
|
|
12820
12993
|
"1": 0
|
|
12821
12994
|
},
|
|
12822
|
-
b: {
|
|
12995
|
+
b: {
|
|
12996
|
+
"0": [0, 0],
|
|
12997
|
+
"1": [0, 0]
|
|
12998
|
+
},
|
|
12823
12999
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
12824
|
-
hash: "
|
|
13000
|
+
hash: "67d76858a516be65391287557ec86bfe4065390a"
|
|
12825
13001
|
};
|
|
12826
13002
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
12827
13003
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -12830,70 +13006,388 @@
|
|
|
12830
13006
|
var actualCoverage = coverage[path];
|
|
12831
13007
|
{
|
|
12832
13008
|
// @ts-ignore
|
|
12833
|
-
|
|
13009
|
+
cov_1ppagvbu7n = function () {
|
|
12834
13010
|
return actualCoverage;
|
|
12835
13011
|
};
|
|
12836
13012
|
}
|
|
12837
13013
|
return actualCoverage;
|
|
12838
13014
|
}
|
|
12839
|
-
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
13015
|
+
cov_1ppagvbu7n();
|
|
13016
|
+
var noDanglingConstants = {
|
|
13017
|
+
meta: {
|
|
13018
|
+
type: "suggestion",
|
|
13019
|
+
docs: {
|
|
13020
|
+
description: "Indicates that any constant outside a constant.[js|jsx] file should be moved to a constant.[js|jsx] file."
|
|
13021
|
+
}
|
|
13022
|
+
},
|
|
13023
|
+
create: function create(context) {
|
|
13024
|
+
cov_1ppagvbu7n().f[0]++;
|
|
13025
|
+
cov_1ppagvbu7n().s[0]++;
|
|
13026
|
+
return {
|
|
13027
|
+
VariableDeclaration: function VariableDeclaration(node) {
|
|
13028
|
+
cov_1ppagvbu7n().f[1]++;
|
|
13029
|
+
cov_1ppagvbu7n().s[1]++;
|
|
13030
|
+
if ((cov_1ppagvbu7n().b[1][0]++, !isExcludedFile(CONSTANTS_FILES, context.getFilename())) && (cov_1ppagvbu7n().b[1][1]++, matches(CONSTANT_DECLARATION_PATTERN, node))) {
|
|
13031
|
+
cov_1ppagvbu7n().b[0][0]++;
|
|
13032
|
+
var constantName = (cov_1ppagvbu7n().s[2]++, node.declarations[0].id.name);
|
|
13033
|
+
cov_1ppagvbu7n().s[3]++;
|
|
13034
|
+
context.report(node, moveToConstantsJs(constantName));
|
|
13035
|
+
} else {
|
|
13036
|
+
cov_1ppagvbu7n().b[0][1]++;
|
|
13037
|
+
}
|
|
13038
|
+
}
|
|
13039
|
+
};
|
|
13040
|
+
}
|
|
12849
13041
|
};
|
|
12850
13042
|
|
|
12851
|
-
function
|
|
12852
|
-
var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/
|
|
12853
|
-
var hash = "
|
|
13043
|
+
function cov_1hbt2gy24u() {
|
|
13044
|
+
var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/ensure-compact-objects/constants.js";
|
|
13045
|
+
var hash = "efcf21ee2ae95b9913d326332d0e428ef1f30f58";
|
|
12854
13046
|
var global = new Function("return this")();
|
|
12855
13047
|
var gcv = "__coverage__";
|
|
12856
13048
|
var coverageData = {
|
|
12857
|
-
path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/
|
|
13049
|
+
path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/ensure-compact-objects/constants.js",
|
|
12858
13050
|
statementMap: {
|
|
12859
13051
|
"0": {
|
|
12860
13052
|
start: {
|
|
12861
|
-
line:
|
|
12862
|
-
column:
|
|
13053
|
+
line: 6,
|
|
13054
|
+
column: 41
|
|
13055
|
+
},
|
|
13056
|
+
end: {
|
|
13057
|
+
line: 9,
|
|
13058
|
+
column: 1
|
|
13059
|
+
}
|
|
13060
|
+
},
|
|
13061
|
+
"1": {
|
|
13062
|
+
start: {
|
|
13063
|
+
line: 11,
|
|
13064
|
+
column: 39
|
|
13065
|
+
},
|
|
13066
|
+
end: {
|
|
13067
|
+
line: 13,
|
|
13068
|
+
column: 1
|
|
13069
|
+
}
|
|
13070
|
+
}
|
|
13071
|
+
},
|
|
13072
|
+
fnMap: {},
|
|
13073
|
+
branchMap: {},
|
|
13074
|
+
s: {
|
|
13075
|
+
"0": 0,
|
|
13076
|
+
"1": 0
|
|
13077
|
+
},
|
|
13078
|
+
f: {},
|
|
13079
|
+
b: {},
|
|
13080
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
13081
|
+
hash: "efcf21ee2ae95b9913d326332d0e428ef1f30f58"
|
|
13082
|
+
};
|
|
13083
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
13084
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
13085
|
+
coverage[path] = coverageData;
|
|
13086
|
+
}
|
|
13087
|
+
var actualCoverage = coverage[path];
|
|
13088
|
+
{
|
|
13089
|
+
// @ts-ignore
|
|
13090
|
+
cov_1hbt2gy24u = function () {
|
|
13091
|
+
return actualCoverage;
|
|
13092
|
+
};
|
|
13093
|
+
}
|
|
13094
|
+
return actualCoverage;
|
|
13095
|
+
}
|
|
13096
|
+
cov_1hbt2gy24u();
|
|
13097
|
+
var OBJECT_EXPRESSION_PATTERN = (cov_1hbt2gy24u().s[0]++, {
|
|
13098
|
+
type: TYPES.OBJECT_EXPRESSION,
|
|
13099
|
+
properties: isNotEmpty$1
|
|
13100
|
+
});
|
|
13101
|
+
var ARRAY_OR_OBJECT_PATTERN = (cov_1hbt2gy24u().s[1]++, {
|
|
13102
|
+
type: ramda.includes(ramda.__, [TYPES.ARRAY_EXPRESSION, TYPES.PROPERTY])
|
|
13103
|
+
});
|
|
13104
|
+
|
|
13105
|
+
function cov_17yhjdv6rr() {
|
|
13106
|
+
var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/ensure-compact-objects/index.js";
|
|
13107
|
+
var hash = "bc220bea68267c3c797a9839f5dc276073d3b9c7";
|
|
13108
|
+
var global = new Function("return this")();
|
|
13109
|
+
var gcv = "__coverage__";
|
|
13110
|
+
var coverageData = {
|
|
13111
|
+
path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/ensure-compact-objects/index.js",
|
|
13112
|
+
statementMap: {
|
|
13113
|
+
"0": {
|
|
13114
|
+
start: {
|
|
13115
|
+
line: 10,
|
|
13116
|
+
column: 26
|
|
13117
|
+
},
|
|
13118
|
+
end: {
|
|
13119
|
+
line: 10,
|
|
13120
|
+
column: 45
|
|
13121
|
+
}
|
|
13122
|
+
},
|
|
13123
|
+
"1": {
|
|
13124
|
+
start: {
|
|
13125
|
+
line: 20,
|
|
13126
|
+
column: 22
|
|
13127
|
+
},
|
|
13128
|
+
end: {
|
|
13129
|
+
line: 68,
|
|
13130
|
+
column: 3
|
|
13131
|
+
}
|
|
13132
|
+
},
|
|
13133
|
+
"2": {
|
|
13134
|
+
start: {
|
|
13135
|
+
line: 22,
|
|
13136
|
+
column: 6
|
|
13137
|
+
},
|
|
13138
|
+
end: {
|
|
13139
|
+
line: 22,
|
|
13140
|
+
column: 60
|
|
13141
|
+
}
|
|
13142
|
+
},
|
|
13143
|
+
"3": {
|
|
13144
|
+
start: {
|
|
13145
|
+
line: 22,
|
|
13146
|
+
column: 53
|
|
13147
|
+
},
|
|
13148
|
+
end: {
|
|
13149
|
+
line: 22,
|
|
13150
|
+
column: 60
|
|
13151
|
+
}
|
|
13152
|
+
},
|
|
13153
|
+
"4": {
|
|
13154
|
+
start: {
|
|
13155
|
+
line: 24,
|
|
13156
|
+
column: 6
|
|
13157
|
+
},
|
|
13158
|
+
end: {
|
|
13159
|
+
line: 24,
|
|
13160
|
+
column: 64
|
|
13161
|
+
}
|
|
13162
|
+
},
|
|
13163
|
+
"5": {
|
|
13164
|
+
start: {
|
|
13165
|
+
line: 24,
|
|
13166
|
+
column: 57
|
|
13167
|
+
},
|
|
13168
|
+
end: {
|
|
13169
|
+
line: 24,
|
|
13170
|
+
column: 64
|
|
13171
|
+
}
|
|
13172
|
+
},
|
|
13173
|
+
"6": {
|
|
13174
|
+
start: {
|
|
13175
|
+
line: 26,
|
|
13176
|
+
column: 25
|
|
13177
|
+
},
|
|
13178
|
+
end: {
|
|
13179
|
+
line: 26,
|
|
13180
|
+
column: 48
|
|
13181
|
+
}
|
|
13182
|
+
},
|
|
13183
|
+
"7": {
|
|
13184
|
+
start: {
|
|
13185
|
+
line: 28,
|
|
13186
|
+
column: 26
|
|
13187
|
+
},
|
|
13188
|
+
end: {
|
|
13189
|
+
line: 28,
|
|
13190
|
+
column: 72
|
|
13191
|
+
}
|
|
13192
|
+
},
|
|
13193
|
+
"8": {
|
|
13194
|
+
start: {
|
|
13195
|
+
line: 29,
|
|
13196
|
+
column: 6
|
|
13197
|
+
},
|
|
13198
|
+
end: {
|
|
13199
|
+
line: 29,
|
|
13200
|
+
column: 30
|
|
13201
|
+
}
|
|
13202
|
+
},
|
|
13203
|
+
"9": {
|
|
13204
|
+
start: {
|
|
13205
|
+
line: 29,
|
|
13206
|
+
column: 23
|
|
13207
|
+
},
|
|
13208
|
+
end: {
|
|
13209
|
+
line: 29,
|
|
13210
|
+
column: 30
|
|
13211
|
+
}
|
|
13212
|
+
},
|
|
13213
|
+
"10": {
|
|
13214
|
+
start: {
|
|
13215
|
+
line: 31,
|
|
13216
|
+
column: 31
|
|
13217
|
+
},
|
|
13218
|
+
end: {
|
|
13219
|
+
line: 31,
|
|
13220
|
+
column: 50
|
|
13221
|
+
}
|
|
13222
|
+
},
|
|
13223
|
+
"11": {
|
|
13224
|
+
start: {
|
|
13225
|
+
line: 32,
|
|
13226
|
+
column: 31
|
|
13227
|
+
},
|
|
13228
|
+
end: {
|
|
13229
|
+
line: 32,
|
|
13230
|
+
column: 48
|
|
13231
|
+
}
|
|
13232
|
+
},
|
|
13233
|
+
"12": {
|
|
13234
|
+
start: {
|
|
13235
|
+
line: 34,
|
|
13236
|
+
column: 6
|
|
13237
|
+
},
|
|
13238
|
+
end: {
|
|
13239
|
+
line: 34,
|
|
13240
|
+
column: 56
|
|
13241
|
+
}
|
|
13242
|
+
},
|
|
13243
|
+
"13": {
|
|
13244
|
+
start: {
|
|
13245
|
+
line: 34,
|
|
13246
|
+
column: 49
|
|
13247
|
+
},
|
|
13248
|
+
end: {
|
|
13249
|
+
line: 34,
|
|
13250
|
+
column: 56
|
|
13251
|
+
}
|
|
13252
|
+
},
|
|
13253
|
+
"14": {
|
|
13254
|
+
start: {
|
|
13255
|
+
line: 36,
|
|
13256
|
+
column: 35
|
|
13257
|
+
},
|
|
13258
|
+
end: {
|
|
13259
|
+
line: 38,
|
|
13260
|
+
column: 19
|
|
13261
|
+
}
|
|
13262
|
+
},
|
|
13263
|
+
"15": {
|
|
13264
|
+
start: {
|
|
13265
|
+
line: 37,
|
|
13266
|
+
column: 25
|
|
13267
|
+
},
|
|
13268
|
+
end: {
|
|
13269
|
+
line: 37,
|
|
13270
|
+
column: 53
|
|
13271
|
+
}
|
|
13272
|
+
},
|
|
13273
|
+
"16": {
|
|
13274
|
+
start: {
|
|
13275
|
+
line: 40,
|
|
13276
|
+
column: 18
|
|
13277
|
+
},
|
|
13278
|
+
end: {
|
|
13279
|
+
line: 40,
|
|
13280
|
+
column: 47
|
|
13281
|
+
}
|
|
13282
|
+
},
|
|
13283
|
+
"17": {
|
|
13284
|
+
start: {
|
|
13285
|
+
line: 42,
|
|
13286
|
+
column: 6
|
|
13287
|
+
},
|
|
13288
|
+
end: {
|
|
13289
|
+
line: 42,
|
|
13290
|
+
column: 36
|
|
13291
|
+
}
|
|
13292
|
+
},
|
|
13293
|
+
"18": {
|
|
13294
|
+
start: {
|
|
13295
|
+
line: 42,
|
|
13296
|
+
column: 29
|
|
13297
|
+
},
|
|
13298
|
+
end: {
|
|
13299
|
+
line: 42,
|
|
13300
|
+
column: 36
|
|
13301
|
+
}
|
|
13302
|
+
},
|
|
13303
|
+
"19": {
|
|
13304
|
+
start: {
|
|
13305
|
+
line: 44,
|
|
13306
|
+
column: 33
|
|
13307
|
+
},
|
|
13308
|
+
end: {
|
|
13309
|
+
line: 44,
|
|
13310
|
+
column: 54
|
|
13311
|
+
}
|
|
13312
|
+
},
|
|
13313
|
+
"20": {
|
|
13314
|
+
start: {
|
|
13315
|
+
line: 45,
|
|
13316
|
+
column: 33
|
|
13317
|
+
},
|
|
13318
|
+
end: {
|
|
13319
|
+
line: 45,
|
|
13320
|
+
column: 52
|
|
13321
|
+
}
|
|
13322
|
+
},
|
|
13323
|
+
"21": {
|
|
13324
|
+
start: {
|
|
13325
|
+
line: 48,
|
|
13326
|
+
column: 8
|
|
13327
|
+
},
|
|
13328
|
+
end: {
|
|
13329
|
+
line: 51,
|
|
13330
|
+
column: 28
|
|
13331
|
+
}
|
|
13332
|
+
},
|
|
13333
|
+
"22": {
|
|
13334
|
+
start: {
|
|
13335
|
+
line: 54,
|
|
13336
|
+
column: 8
|
|
13337
|
+
},
|
|
13338
|
+
end: {
|
|
13339
|
+
line: 54,
|
|
13340
|
+
column: 79
|
|
13341
|
+
}
|
|
13342
|
+
},
|
|
13343
|
+
"23": {
|
|
13344
|
+
start: {
|
|
13345
|
+
line: 57,
|
|
13346
|
+
column: 8
|
|
13347
|
+
},
|
|
13348
|
+
end: {
|
|
13349
|
+
line: 57,
|
|
13350
|
+
column: 72
|
|
13351
|
+
}
|
|
13352
|
+
},
|
|
13353
|
+
"24": {
|
|
13354
|
+
start: {
|
|
13355
|
+
line: 59,
|
|
13356
|
+
column: 6
|
|
12863
13357
|
},
|
|
12864
13358
|
end: {
|
|
12865
|
-
line:
|
|
12866
|
-
column:
|
|
13359
|
+
line: 59,
|
|
13360
|
+
column: 44
|
|
12867
13361
|
}
|
|
12868
13362
|
},
|
|
12869
|
-
"
|
|
13363
|
+
"25": {
|
|
12870
13364
|
start: {
|
|
12871
|
-
line:
|
|
12872
|
-
column:
|
|
13365
|
+
line: 59,
|
|
13366
|
+
column: 37
|
|
12873
13367
|
},
|
|
12874
13368
|
end: {
|
|
12875
|
-
line:
|
|
12876
|
-
column:
|
|
13369
|
+
line: 59,
|
|
13370
|
+
column: 44
|
|
12877
13371
|
}
|
|
12878
13372
|
},
|
|
12879
|
-
"
|
|
13373
|
+
"26": {
|
|
12880
13374
|
start: {
|
|
12881
|
-
line:
|
|
12882
|
-
column:
|
|
13375
|
+
line: 61,
|
|
13376
|
+
column: 6
|
|
12883
13377
|
},
|
|
12884
13378
|
end: {
|
|
12885
|
-
line:
|
|
12886
|
-
column:
|
|
13379
|
+
line: 66,
|
|
13380
|
+
column: 9
|
|
12887
13381
|
}
|
|
12888
13382
|
},
|
|
12889
|
-
"
|
|
13383
|
+
"27": {
|
|
12890
13384
|
start: {
|
|
12891
|
-
line:
|
|
12892
|
-
column:
|
|
13385
|
+
line: 65,
|
|
13386
|
+
column: 22
|
|
12893
13387
|
},
|
|
12894
13388
|
end: {
|
|
12895
|
-
line:
|
|
12896
|
-
column:
|
|
13389
|
+
line: 65,
|
|
13390
|
+
column: 50
|
|
12897
13391
|
}
|
|
12898
13392
|
}
|
|
12899
13393
|
},
|
|
@@ -12902,72 +13396,153 @@
|
|
|
12902
13396
|
name: "(anonymous_0)",
|
|
12903
13397
|
decl: {
|
|
12904
13398
|
start: {
|
|
12905
|
-
line:
|
|
13399
|
+
line: 20,
|
|
12906
13400
|
column: 10
|
|
12907
13401
|
},
|
|
12908
13402
|
end: {
|
|
12909
|
-
line:
|
|
13403
|
+
line: 20,
|
|
12910
13404
|
column: 11
|
|
12911
13405
|
}
|
|
12912
13406
|
},
|
|
12913
13407
|
loc: {
|
|
12914
13408
|
start: {
|
|
12915
|
-
line:
|
|
13409
|
+
line: 20,
|
|
12916
13410
|
column: 22
|
|
12917
13411
|
},
|
|
12918
13412
|
end: {
|
|
12919
|
-
line:
|
|
13413
|
+
line: 68,
|
|
12920
13414
|
column: 3
|
|
12921
13415
|
}
|
|
12922
13416
|
},
|
|
12923
|
-
line:
|
|
13417
|
+
line: 20
|
|
12924
13418
|
},
|
|
12925
13419
|
"1": {
|
|
12926
13420
|
name: "(anonymous_1)",
|
|
12927
13421
|
decl: {
|
|
12928
13422
|
start: {
|
|
12929
|
-
line:
|
|
13423
|
+
line: 21,
|
|
12930
13424
|
column: 4
|
|
12931
13425
|
},
|
|
12932
13426
|
end: {
|
|
12933
|
-
line:
|
|
13427
|
+
line: 21,
|
|
12934
13428
|
column: 5
|
|
12935
13429
|
}
|
|
12936
13430
|
},
|
|
12937
13431
|
loc: {
|
|
12938
13432
|
start: {
|
|
12939
|
-
line:
|
|
12940
|
-
column:
|
|
13433
|
+
line: 21,
|
|
13434
|
+
column: 27
|
|
12941
13435
|
},
|
|
12942
13436
|
end: {
|
|
12943
|
-
line:
|
|
13437
|
+
line: 67,
|
|
12944
13438
|
column: 5
|
|
12945
13439
|
}
|
|
12946
13440
|
},
|
|
12947
|
-
line:
|
|
13441
|
+
line: 21
|
|
13442
|
+
},
|
|
13443
|
+
"2": {
|
|
13444
|
+
name: "(anonymous_2)",
|
|
13445
|
+
decl: {
|
|
13446
|
+
start: {
|
|
13447
|
+
line: 37,
|
|
13448
|
+
column: 13
|
|
13449
|
+
},
|
|
13450
|
+
end: {
|
|
13451
|
+
line: 37,
|
|
13452
|
+
column: 14
|
|
13453
|
+
}
|
|
13454
|
+
},
|
|
13455
|
+
loc: {
|
|
13456
|
+
start: {
|
|
13457
|
+
line: 37,
|
|
13458
|
+
column: 25
|
|
13459
|
+
},
|
|
13460
|
+
end: {
|
|
13461
|
+
line: 37,
|
|
13462
|
+
column: 53
|
|
13463
|
+
}
|
|
13464
|
+
},
|
|
13465
|
+
line: 37
|
|
13466
|
+
},
|
|
13467
|
+
"3": {
|
|
13468
|
+
name: "(anonymous_3)",
|
|
13469
|
+
decl: {
|
|
13470
|
+
start: {
|
|
13471
|
+
line: 65,
|
|
13472
|
+
column: 13
|
|
13473
|
+
},
|
|
13474
|
+
end: {
|
|
13475
|
+
line: 65,
|
|
13476
|
+
column: 14
|
|
13477
|
+
}
|
|
13478
|
+
},
|
|
13479
|
+
loc: {
|
|
13480
|
+
start: {
|
|
13481
|
+
line: 65,
|
|
13482
|
+
column: 22
|
|
13483
|
+
},
|
|
13484
|
+
end: {
|
|
13485
|
+
line: 65,
|
|
13486
|
+
column: 50
|
|
13487
|
+
}
|
|
13488
|
+
},
|
|
13489
|
+
line: 65
|
|
12948
13490
|
}
|
|
12949
13491
|
},
|
|
12950
13492
|
branchMap: {
|
|
12951
13493
|
"0": {
|
|
12952
13494
|
loc: {
|
|
12953
13495
|
start: {
|
|
12954
|
-
line:
|
|
13496
|
+
line: 22,
|
|
13497
|
+
column: 6
|
|
13498
|
+
},
|
|
13499
|
+
end: {
|
|
13500
|
+
line: 22,
|
|
13501
|
+
column: 60
|
|
13502
|
+
}
|
|
13503
|
+
},
|
|
13504
|
+
type: "if",
|
|
13505
|
+
locations: [{
|
|
13506
|
+
start: {
|
|
13507
|
+
line: 22,
|
|
13508
|
+
column: 6
|
|
13509
|
+
},
|
|
13510
|
+
end: {
|
|
13511
|
+
line: 22,
|
|
13512
|
+
column: 60
|
|
13513
|
+
}
|
|
13514
|
+
}, {
|
|
13515
|
+
start: {
|
|
13516
|
+
line: undefined,
|
|
13517
|
+
column: undefined
|
|
13518
|
+
},
|
|
13519
|
+
end: {
|
|
13520
|
+
line: undefined,
|
|
13521
|
+
column: undefined
|
|
13522
|
+
}
|
|
13523
|
+
}],
|
|
13524
|
+
line: 22
|
|
13525
|
+
},
|
|
13526
|
+
"1": {
|
|
13527
|
+
loc: {
|
|
13528
|
+
start: {
|
|
13529
|
+
line: 24,
|
|
12955
13530
|
column: 6
|
|
12956
13531
|
},
|
|
12957
13532
|
end: {
|
|
12958
13533
|
line: 24,
|
|
12959
|
-
column:
|
|
13534
|
+
column: 64
|
|
12960
13535
|
}
|
|
12961
13536
|
},
|
|
12962
13537
|
type: "if",
|
|
12963
13538
|
locations: [{
|
|
12964
13539
|
start: {
|
|
12965
|
-
line:
|
|
13540
|
+
line: 24,
|
|
12966
13541
|
column: 6
|
|
12967
13542
|
},
|
|
12968
13543
|
end: {
|
|
12969
13544
|
line: 24,
|
|
12970
|
-
column:
|
|
13545
|
+
column: 64
|
|
12971
13546
|
}
|
|
12972
13547
|
}, {
|
|
12973
13548
|
start: {
|
|
@@ -12979,58 +13554,221 @@
|
|
|
12979
13554
|
column: undefined
|
|
12980
13555
|
}
|
|
12981
13556
|
}],
|
|
12982
|
-
line:
|
|
13557
|
+
line: 24
|
|
12983
13558
|
},
|
|
12984
|
-
"
|
|
13559
|
+
"2": {
|
|
12985
13560
|
loc: {
|
|
12986
13561
|
start: {
|
|
12987
|
-
line:
|
|
13562
|
+
line: 29,
|
|
13563
|
+
column: 6
|
|
13564
|
+
},
|
|
13565
|
+
end: {
|
|
13566
|
+
line: 29,
|
|
13567
|
+
column: 30
|
|
13568
|
+
}
|
|
13569
|
+
},
|
|
13570
|
+
type: "if",
|
|
13571
|
+
locations: [{
|
|
13572
|
+
start: {
|
|
13573
|
+
line: 29,
|
|
13574
|
+
column: 6
|
|
13575
|
+
},
|
|
13576
|
+
end: {
|
|
13577
|
+
line: 29,
|
|
13578
|
+
column: 30
|
|
13579
|
+
}
|
|
13580
|
+
}, {
|
|
13581
|
+
start: {
|
|
13582
|
+
line: undefined,
|
|
13583
|
+
column: undefined
|
|
13584
|
+
},
|
|
13585
|
+
end: {
|
|
13586
|
+
line: undefined,
|
|
13587
|
+
column: undefined
|
|
13588
|
+
}
|
|
13589
|
+
}],
|
|
13590
|
+
line: 29
|
|
13591
|
+
},
|
|
13592
|
+
"3": {
|
|
13593
|
+
loc: {
|
|
13594
|
+
start: {
|
|
13595
|
+
line: 34,
|
|
13596
|
+
column: 6
|
|
13597
|
+
},
|
|
13598
|
+
end: {
|
|
13599
|
+
line: 34,
|
|
13600
|
+
column: 56
|
|
13601
|
+
}
|
|
13602
|
+
},
|
|
13603
|
+
type: "if",
|
|
13604
|
+
locations: [{
|
|
13605
|
+
start: {
|
|
13606
|
+
line: 34,
|
|
13607
|
+
column: 6
|
|
13608
|
+
},
|
|
13609
|
+
end: {
|
|
13610
|
+
line: 34,
|
|
13611
|
+
column: 56
|
|
13612
|
+
}
|
|
13613
|
+
}, {
|
|
13614
|
+
start: {
|
|
13615
|
+
line: undefined,
|
|
13616
|
+
column: undefined
|
|
13617
|
+
},
|
|
13618
|
+
end: {
|
|
13619
|
+
line: undefined,
|
|
13620
|
+
column: undefined
|
|
13621
|
+
}
|
|
13622
|
+
}],
|
|
13623
|
+
line: 34
|
|
13624
|
+
},
|
|
13625
|
+
"4": {
|
|
13626
|
+
loc: {
|
|
13627
|
+
start: {
|
|
13628
|
+
line: 42,
|
|
13629
|
+
column: 6
|
|
13630
|
+
},
|
|
13631
|
+
end: {
|
|
13632
|
+
line: 42,
|
|
13633
|
+
column: 36
|
|
13634
|
+
}
|
|
13635
|
+
},
|
|
13636
|
+
type: "if",
|
|
13637
|
+
locations: [{
|
|
13638
|
+
start: {
|
|
13639
|
+
line: 42,
|
|
13640
|
+
column: 6
|
|
13641
|
+
},
|
|
13642
|
+
end: {
|
|
13643
|
+
line: 42,
|
|
13644
|
+
column: 36
|
|
13645
|
+
}
|
|
13646
|
+
}, {
|
|
13647
|
+
start: {
|
|
13648
|
+
line: undefined,
|
|
13649
|
+
column: undefined
|
|
13650
|
+
},
|
|
13651
|
+
end: {
|
|
13652
|
+
line: undefined,
|
|
13653
|
+
column: undefined
|
|
13654
|
+
}
|
|
13655
|
+
}],
|
|
13656
|
+
line: 42
|
|
13657
|
+
},
|
|
13658
|
+
"5": {
|
|
13659
|
+
loc: {
|
|
13660
|
+
start: {
|
|
13661
|
+
line: 48,
|
|
12988
13662
|
column: 8
|
|
12989
13663
|
},
|
|
12990
13664
|
end: {
|
|
12991
|
-
line:
|
|
12992
|
-
column:
|
|
13665
|
+
line: 51,
|
|
13666
|
+
column: 28
|
|
12993
13667
|
}
|
|
12994
13668
|
},
|
|
12995
13669
|
type: "binary-expr",
|
|
12996
13670
|
locations: [{
|
|
12997
13671
|
start: {
|
|
12998
|
-
line:
|
|
13672
|
+
line: 48,
|
|
12999
13673
|
column: 8
|
|
13000
13674
|
},
|
|
13001
13675
|
end: {
|
|
13002
|
-
line:
|
|
13003
|
-
column:
|
|
13676
|
+
line: 51,
|
|
13677
|
+
column: 22
|
|
13004
13678
|
}
|
|
13005
13679
|
}, {
|
|
13006
13680
|
start: {
|
|
13007
|
-
line:
|
|
13008
|
-
column:
|
|
13681
|
+
line: 51,
|
|
13682
|
+
column: 26
|
|
13009
13683
|
},
|
|
13010
13684
|
end: {
|
|
13011
|
-
line:
|
|
13012
|
-
column:
|
|
13685
|
+
line: 51,
|
|
13686
|
+
column: 28
|
|
13013
13687
|
}
|
|
13014
13688
|
}],
|
|
13015
|
-
line:
|
|
13689
|
+
line: 48
|
|
13690
|
+
},
|
|
13691
|
+
"6": {
|
|
13692
|
+
loc: {
|
|
13693
|
+
start: {
|
|
13694
|
+
line: 59,
|
|
13695
|
+
column: 6
|
|
13696
|
+
},
|
|
13697
|
+
end: {
|
|
13698
|
+
line: 59,
|
|
13699
|
+
column: 44
|
|
13700
|
+
}
|
|
13701
|
+
},
|
|
13702
|
+
type: "if",
|
|
13703
|
+
locations: [{
|
|
13704
|
+
start: {
|
|
13705
|
+
line: 59,
|
|
13706
|
+
column: 6
|
|
13707
|
+
},
|
|
13708
|
+
end: {
|
|
13709
|
+
line: 59,
|
|
13710
|
+
column: 44
|
|
13711
|
+
}
|
|
13712
|
+
}, {
|
|
13713
|
+
start: {
|
|
13714
|
+
line: undefined,
|
|
13715
|
+
column: undefined
|
|
13716
|
+
},
|
|
13717
|
+
end: {
|
|
13718
|
+
line: undefined,
|
|
13719
|
+
column: undefined
|
|
13720
|
+
}
|
|
13721
|
+
}],
|
|
13722
|
+
line: 59
|
|
13016
13723
|
}
|
|
13017
13724
|
},
|
|
13018
13725
|
s: {
|
|
13019
13726
|
"0": 0,
|
|
13020
13727
|
"1": 0,
|
|
13021
13728
|
"2": 0,
|
|
13022
|
-
"3": 0
|
|
13729
|
+
"3": 0,
|
|
13730
|
+
"4": 0,
|
|
13731
|
+
"5": 0,
|
|
13732
|
+
"6": 0,
|
|
13733
|
+
"7": 0,
|
|
13734
|
+
"8": 0,
|
|
13735
|
+
"9": 0,
|
|
13736
|
+
"10": 0,
|
|
13737
|
+
"11": 0,
|
|
13738
|
+
"12": 0,
|
|
13739
|
+
"13": 0,
|
|
13740
|
+
"14": 0,
|
|
13741
|
+
"15": 0,
|
|
13742
|
+
"16": 0,
|
|
13743
|
+
"17": 0,
|
|
13744
|
+
"18": 0,
|
|
13745
|
+
"19": 0,
|
|
13746
|
+
"20": 0,
|
|
13747
|
+
"21": 0,
|
|
13748
|
+
"22": 0,
|
|
13749
|
+
"23": 0,
|
|
13750
|
+
"24": 0,
|
|
13751
|
+
"25": 0,
|
|
13752
|
+
"26": 0,
|
|
13753
|
+
"27": 0
|
|
13023
13754
|
},
|
|
13024
13755
|
f: {
|
|
13025
13756
|
"0": 0,
|
|
13026
|
-
"1": 0
|
|
13757
|
+
"1": 0,
|
|
13758
|
+
"2": 0,
|
|
13759
|
+
"3": 0
|
|
13027
13760
|
},
|
|
13028
13761
|
b: {
|
|
13029
13762
|
"0": [0, 0],
|
|
13030
|
-
"1": [0, 0]
|
|
13763
|
+
"1": [0, 0],
|
|
13764
|
+
"2": [0, 0],
|
|
13765
|
+
"3": [0, 0],
|
|
13766
|
+
"4": [0, 0],
|
|
13767
|
+
"5": [0, 0],
|
|
13768
|
+
"6": [0, 0]
|
|
13031
13769
|
},
|
|
13032
13770
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
13033
|
-
hash: "
|
|
13771
|
+
hash: "bc220bea68267c3c797a9839f5dc276073d3b9c7"
|
|
13034
13772
|
};
|
|
13035
13773
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
13036
13774
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -13039,35 +13777,110 @@
|
|
|
13039
13777
|
var actualCoverage = coverage[path];
|
|
13040
13778
|
{
|
|
13041
13779
|
// @ts-ignore
|
|
13042
|
-
|
|
13780
|
+
cov_17yhjdv6rr = function () {
|
|
13043
13781
|
return actualCoverage;
|
|
13044
13782
|
};
|
|
13045
13783
|
}
|
|
13046
13784
|
return actualCoverage;
|
|
13047
13785
|
}
|
|
13048
|
-
|
|
13049
|
-
var
|
|
13786
|
+
cov_17yhjdv6rr();
|
|
13787
|
+
var _ref = (cov_17yhjdv6rr().s[0]++, require("prettier")),
|
|
13788
|
+
resolveConfig = _ref.resolveConfig;
|
|
13789
|
+
var ensureCompactObjects = {
|
|
13050
13790
|
meta: {
|
|
13051
|
-
type: "
|
|
13791
|
+
type: "problem",
|
|
13052
13792
|
docs: {
|
|
13053
|
-
description: "
|
|
13054
|
-
}
|
|
13793
|
+
description: "Ensures compact objects"
|
|
13794
|
+
},
|
|
13795
|
+
fixable: "whitespace"
|
|
13055
13796
|
},
|
|
13056
13797
|
create: function create(context) {
|
|
13057
|
-
|
|
13058
|
-
|
|
13798
|
+
cov_17yhjdv6rr().f[0]++;
|
|
13799
|
+
cov_17yhjdv6rr().s[1]++;
|
|
13059
13800
|
return {
|
|
13060
|
-
|
|
13061
|
-
|
|
13062
|
-
|
|
13063
|
-
|
|
13064
|
-
|
|
13065
|
-
|
|
13066
|
-
|
|
13067
|
-
|
|
13801
|
+
ObjectExpression: function ObjectExpression(node) {
|
|
13802
|
+
var _resolveConfig$sync;
|
|
13803
|
+
cov_17yhjdv6rr().f[1]++;
|
|
13804
|
+
cov_17yhjdv6rr().s[2]++;
|
|
13805
|
+
if (!matches(OBJECT_EXPRESSION_PATTERN, node)) {
|
|
13806
|
+
cov_17yhjdv6rr().b[0][0]++;
|
|
13807
|
+
cov_17yhjdv6rr().s[3]++;
|
|
13808
|
+
return;
|
|
13068
13809
|
} else {
|
|
13069
|
-
|
|
13810
|
+
cov_17yhjdv6rr().b[0][1]++;
|
|
13811
|
+
}
|
|
13812
|
+
cov_17yhjdv6rr().s[4]++;
|
|
13813
|
+
if (matches(ARRAY_OR_OBJECT_PATTERN, node.parent)) {
|
|
13814
|
+
cov_17yhjdv6rr().b[1][0]++;
|
|
13815
|
+
cov_17yhjdv6rr().s[5]++;
|
|
13816
|
+
return;
|
|
13817
|
+
} else {
|
|
13818
|
+
cov_17yhjdv6rr().b[1][1]++;
|
|
13819
|
+
}
|
|
13820
|
+
var sourceCode = (cov_17yhjdv6rr().s[6]++, context.getSourceCode());
|
|
13821
|
+
var hasComments = (cov_17yhjdv6rr().s[7]++, isNotEmpty$1(sourceCode.getCommentsInside(node)));
|
|
13822
|
+
cov_17yhjdv6rr().s[8]++;
|
|
13823
|
+
if (hasComments) {
|
|
13824
|
+
cov_17yhjdv6rr().b[2][0]++;
|
|
13825
|
+
cov_17yhjdv6rr().s[9]++;
|
|
13826
|
+
return;
|
|
13827
|
+
} else {
|
|
13828
|
+
cov_17yhjdv6rr().b[2][1]++;
|
|
13829
|
+
}
|
|
13830
|
+
var openingBraceLine = (cov_17yhjdv6rr().s[10]++, node.loc.start.line);
|
|
13831
|
+
var closingBraceLine = (cov_17yhjdv6rr().s[11]++, node.loc.end.line);
|
|
13832
|
+
cov_17yhjdv6rr().s[12]++;
|
|
13833
|
+
if (openingBraceLine === closingBraceLine) {
|
|
13834
|
+
cov_17yhjdv6rr().b[3][0]++;
|
|
13835
|
+
cov_17yhjdv6rr().s[13]++;
|
|
13836
|
+
return;
|
|
13837
|
+
} else {
|
|
13838
|
+
cov_17yhjdv6rr().b[3][1]++;
|
|
13839
|
+
}
|
|
13840
|
+
var singleLineExpression = (cov_17yhjdv6rr().s[14]++, node.properties.map(function (property) {
|
|
13841
|
+
cov_17yhjdv6rr().f[2]++;
|
|
13842
|
+
cov_17yhjdv6rr().s[15]++;
|
|
13843
|
+
return sourceCode.getText(property);
|
|
13844
|
+
}).join(", "));
|
|
13845
|
+
var _fix = (cov_17yhjdv6rr().s[16]++, "{ ".concat(singleLineExpression, " }"));
|
|
13846
|
+
cov_17yhjdv6rr().s[17]++;
|
|
13847
|
+
if (/\r|\n/.test(_fix)) {
|
|
13848
|
+
cov_17yhjdv6rr().b[4][0]++;
|
|
13849
|
+
cov_17yhjdv6rr().s[18]++;
|
|
13850
|
+
return;
|
|
13851
|
+
} else {
|
|
13852
|
+
cov_17yhjdv6rr().b[4][1]++;
|
|
13853
|
+
}
|
|
13854
|
+
var openingBraceColumn = (cov_17yhjdv6rr().s[19]++, node.loc.start.column);
|
|
13855
|
+
var closingBraceColumn = (cov_17yhjdv6rr().s[20]++, node.loc.end.column);
|
|
13856
|
+
var printWidth = (cov_17yhjdv6rr().s[21]++, (cov_17yhjdv6rr().b[5][0]++, (_resolveConfig$sync = resolveConfig.sync(context.getFilename(), {
|
|
13857
|
+
useCache: true,
|
|
13858
|
+
editorconfig: true
|
|
13859
|
+
})) === null || _resolveConfig$sync === void 0 ? void 0 : _resolveConfig$sync.printWidth) || (cov_17yhjdv6rr().b[5][1]++, 80));
|
|
13860
|
+
var countOfTokensAfterClosingBrace = (cov_17yhjdv6rr().s[22]++, sourceCode.lines[closingBraceLine - 1].slice(closingBraceColumn).length);
|
|
13861
|
+
var resultLength = (cov_17yhjdv6rr().s[23]++, openingBraceColumn + _fix.length + countOfTokensAfterClosingBrace);
|
|
13862
|
+
cov_17yhjdv6rr().s[24]++;
|
|
13863
|
+
if (resultLength > printWidth) {
|
|
13864
|
+
cov_17yhjdv6rr().b[6][0]++;
|
|
13865
|
+
cov_17yhjdv6rr().s[25]++;
|
|
13866
|
+
return;
|
|
13867
|
+
} else {
|
|
13868
|
+
cov_17yhjdv6rr().b[6][1]++;
|
|
13070
13869
|
}
|
|
13870
|
+
cov_17yhjdv6rr().s[26]++;
|
|
13871
|
+
context.report({
|
|
13872
|
+
node: node,
|
|
13873
|
+
loc: {
|
|
13874
|
+
start: node.loc.start,
|
|
13875
|
+
end: node.loc.end
|
|
13876
|
+
},
|
|
13877
|
+
message: replaceWith(_fix),
|
|
13878
|
+
fix: function fix(fixer) {
|
|
13879
|
+
cov_17yhjdv6rr().f[3]++;
|
|
13880
|
+
cov_17yhjdv6rr().s[27]++;
|
|
13881
|
+
return fixer.replaceText(node, _fix);
|
|
13882
|
+
}
|
|
13883
|
+
});
|
|
13071
13884
|
}
|
|
13072
13885
|
};
|
|
13073
13886
|
}
|
|
@@ -53087,7 +53900,7 @@
|
|
|
53087
53900
|
|
|
53088
53901
|
function cov_1xjehjxg0q() {
|
|
53089
53902
|
var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/zustand/constants.js";
|
|
53090
|
-
var hash = "
|
|
53903
|
+
var hash = "2ca751b709d72097d37f37cd2b0f163733ea900a";
|
|
53091
53904
|
var global = new Function("return this")();
|
|
53092
53905
|
var gcv = "__coverage__";
|
|
53093
53906
|
var coverageData = {
|
|
@@ -53325,31 +54138,41 @@
|
|
|
53325
54138
|
},
|
|
53326
54139
|
"23": {
|
|
53327
54140
|
start: {
|
|
53328
|
-
line:
|
|
53329
|
-
column:
|
|
54141
|
+
line: 207,
|
|
54142
|
+
column: 60
|
|
53330
54143
|
},
|
|
53331
54144
|
end: {
|
|
53332
|
-
line:
|
|
54145
|
+
line: 217,
|
|
53333
54146
|
column: 1
|
|
53334
54147
|
}
|
|
53335
54148
|
},
|
|
53336
54149
|
"24": {
|
|
53337
54150
|
start: {
|
|
53338
|
-
line:
|
|
53339
|
-
column:
|
|
54151
|
+
line: 219,
|
|
54152
|
+
column: 58
|
|
53340
54153
|
},
|
|
53341
54154
|
end: {
|
|
53342
|
-
line:
|
|
54155
|
+
line: 223,
|
|
53343
54156
|
column: 1
|
|
53344
54157
|
}
|
|
53345
54158
|
},
|
|
53346
54159
|
"25": {
|
|
53347
54160
|
start: {
|
|
53348
|
-
line:
|
|
54161
|
+
line: 225,
|
|
54162
|
+
column: 61
|
|
54163
|
+
},
|
|
54164
|
+
end: {
|
|
54165
|
+
line: 229,
|
|
54166
|
+
column: 1
|
|
54167
|
+
}
|
|
54168
|
+
},
|
|
54169
|
+
"26": {
|
|
54170
|
+
start: {
|
|
54171
|
+
line: 233,
|
|
53349
54172
|
column: 44
|
|
53350
54173
|
},
|
|
53351
54174
|
end: {
|
|
53352
|
-
line:
|
|
54175
|
+
line: 240,
|
|
53353
54176
|
column: 1
|
|
53354
54177
|
}
|
|
53355
54178
|
}
|
|
@@ -53612,7 +54435,8 @@
|
|
|
53612
54435
|
"22": 0,
|
|
53613
54436
|
"23": 0,
|
|
53614
54437
|
"24": 0,
|
|
53615
|
-
"25": 0
|
|
54438
|
+
"25": 0,
|
|
54439
|
+
"26": 0
|
|
53616
54440
|
},
|
|
53617
54441
|
f: {
|
|
53618
54442
|
"0": 0,
|
|
@@ -53627,7 +54451,7 @@
|
|
|
53627
54451
|
"2": [0, 0, 0]
|
|
53628
54452
|
},
|
|
53629
54453
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
53630
|
-
hash: "
|
|
54454
|
+
hash: "2ca751b709d72097d37f37cd2b0f163733ea900a"
|
|
53631
54455
|
};
|
|
53632
54456
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
53633
54457
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -53848,12 +54672,23 @@
|
|
|
53848
54672
|
}
|
|
53849
54673
|
}]
|
|
53850
54674
|
});
|
|
53851
|
-
|
|
53852
|
-
|
|
54675
|
+
|
|
54676
|
+
// const order = useSampleStore(...);
|
|
54677
|
+
var ZUSTAND_HOOK_USAGE_SINGLE_IDENTIFIER_PATTERN = (cov_1xjehjxg0q().s[23]++, {
|
|
54678
|
+
kind: "const",
|
|
54679
|
+
declarations: [{
|
|
54680
|
+
type: TYPES.VARIABLE_DECLARATOR,
|
|
54681
|
+
id: {
|
|
54682
|
+
type: TYPES.IDENTIFIER
|
|
54683
|
+
}
|
|
54684
|
+
}]
|
|
54685
|
+
});
|
|
54686
|
+
var ZUSTAND_HOOK_USAGE_SINGLE_ARGUMENT_PATTERN = (cov_1xjehjxg0q().s[24]++, ramda.assocPath(["declarations", 0, "init", "arguments"], ZustandHookSingleArgumentCheck, ZUSTAND_HOOK_USAGE_PATTERN));
|
|
54687
|
+
var ZUSTAND_HOOK_USAGE_MULTIPLE_ARGUMENTS_PATTERN = (cov_1xjehjxg0q().s[25]++, ramda.assocPath(["declarations", 0, "init", "arguments"], ZustandHookMultipleArgumentCheck, ZUSTAND_HOOK_USAGE_PATTERN));
|
|
53853
54688
|
|
|
53854
54689
|
// .....
|
|
53855
54690
|
// const useCurrentUserStore = create(....);
|
|
53856
|
-
var ZUSTAND_STORE_CREATE_PATTERN = (cov_1xjehjxg0q().s[
|
|
54691
|
+
var ZUSTAND_STORE_CREATE_PATTERN = (cov_1xjehjxg0q().s[26]++, {
|
|
53857
54692
|
kind: "const",
|
|
53858
54693
|
declarations: DECALARATION_PATTERN,
|
|
53859
54694
|
parent: {
|
|
@@ -54028,7 +54863,7 @@
|
|
|
54028
54863
|
cov_oxvttglej();
|
|
54029
54864
|
var ensureZustandStoresAreTypeAnnotated = {
|
|
54030
54865
|
meta: {
|
|
54031
|
-
type: "
|
|
54866
|
+
type: "problem",
|
|
54032
54867
|
docs: {
|
|
54033
54868
|
description: "Throw error if zustand stores are not type annotated via JSDoc comments"
|
|
54034
54869
|
}
|
|
@@ -54667,7 +55502,7 @@
|
|
|
54667
55502
|
cov_jfodn662q();
|
|
54668
55503
|
var zustandRecommendComparatorFunctionUsage = {
|
|
54669
55504
|
meta: {
|
|
54670
|
-
type: "
|
|
55505
|
+
type: "suggestion",
|
|
54671
55506
|
docs: {
|
|
54672
55507
|
description: "Warn about the usage of picking multiple state items without comparator function from inside zustand store hooks"
|
|
54673
55508
|
}
|
|
@@ -55000,7 +55835,7 @@
|
|
|
55000
55835
|
|
|
55001
55836
|
function cov_2h5ihxe0sh() {
|
|
55002
55837
|
var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/zustand/use-pick-transformer.js";
|
|
55003
|
-
var hash = "
|
|
55838
|
+
var hash = "9a1f7ec2aa8ca0b15973d446edcbf748306010fb";
|
|
55004
55839
|
var global = new Function("return this")();
|
|
55005
55840
|
var gcv = "__coverage__";
|
|
55006
55841
|
var coverageData = {
|
|
@@ -55008,41 +55843,41 @@
|
|
|
55008
55843
|
statementMap: {
|
|
55009
55844
|
"0": {
|
|
55010
55845
|
start: {
|
|
55011
|
-
line:
|
|
55846
|
+
line: 18,
|
|
55012
55847
|
column: 22
|
|
55013
55848
|
},
|
|
55014
55849
|
end: {
|
|
55015
|
-
line:
|
|
55850
|
+
line: 29,
|
|
55016
55851
|
column: 3
|
|
55017
55852
|
}
|
|
55018
55853
|
},
|
|
55019
55854
|
"1": {
|
|
55020
55855
|
start: {
|
|
55021
|
-
line:
|
|
55856
|
+
line: 20,
|
|
55022
55857
|
column: 6
|
|
55023
55858
|
},
|
|
55024
55859
|
end: {
|
|
55025
|
-
line:
|
|
55026
|
-
column:
|
|
55860
|
+
line: 25,
|
|
55861
|
+
column: 7
|
|
55027
55862
|
}
|
|
55028
55863
|
},
|
|
55029
55864
|
"2": {
|
|
55030
55865
|
start: {
|
|
55031
|
-
line:
|
|
55032
|
-
column:
|
|
55866
|
+
line: 24,
|
|
55867
|
+
column: 8
|
|
55033
55868
|
},
|
|
55034
55869
|
end: {
|
|
55035
|
-
line:
|
|
55036
|
-
column:
|
|
55870
|
+
line: 24,
|
|
55871
|
+
column: 15
|
|
55037
55872
|
}
|
|
55038
55873
|
},
|
|
55039
55874
|
"3": {
|
|
55040
55875
|
start: {
|
|
55041
|
-
line:
|
|
55876
|
+
line: 27,
|
|
55042
55877
|
column: 6
|
|
55043
55878
|
},
|
|
55044
55879
|
end: {
|
|
55045
|
-
line:
|
|
55880
|
+
line: 27,
|
|
55046
55881
|
column: 70
|
|
55047
55882
|
}
|
|
55048
55883
|
}
|
|
@@ -55052,72 +55887,72 @@
|
|
|
55052
55887
|
name: "(anonymous_0)",
|
|
55053
55888
|
decl: {
|
|
55054
55889
|
start: {
|
|
55055
|
-
line:
|
|
55890
|
+
line: 18,
|
|
55056
55891
|
column: 10
|
|
55057
55892
|
},
|
|
55058
55893
|
end: {
|
|
55059
|
-
line:
|
|
55894
|
+
line: 18,
|
|
55060
55895
|
column: 11
|
|
55061
55896
|
}
|
|
55062
55897
|
},
|
|
55063
55898
|
loc: {
|
|
55064
55899
|
start: {
|
|
55065
|
-
line:
|
|
55900
|
+
line: 18,
|
|
55066
55901
|
column: 22
|
|
55067
55902
|
},
|
|
55068
55903
|
end: {
|
|
55069
|
-
line:
|
|
55904
|
+
line: 29,
|
|
55070
55905
|
column: 3
|
|
55071
55906
|
}
|
|
55072
55907
|
},
|
|
55073
|
-
line:
|
|
55908
|
+
line: 18
|
|
55074
55909
|
},
|
|
55075
55910
|
"1": {
|
|
55076
55911
|
name: "(anonymous_1)",
|
|
55077
55912
|
decl: {
|
|
55078
55913
|
start: {
|
|
55079
|
-
line:
|
|
55914
|
+
line: 19,
|
|
55080
55915
|
column: 4
|
|
55081
55916
|
},
|
|
55082
55917
|
end: {
|
|
55083
|
-
line:
|
|
55918
|
+
line: 19,
|
|
55084
55919
|
column: 5
|
|
55085
55920
|
}
|
|
55086
55921
|
},
|
|
55087
55922
|
loc: {
|
|
55088
55923
|
start: {
|
|
55089
|
-
line:
|
|
55924
|
+
line: 19,
|
|
55090
55925
|
column: 30
|
|
55091
55926
|
},
|
|
55092
55927
|
end: {
|
|
55093
|
-
line:
|
|
55928
|
+
line: 28,
|
|
55094
55929
|
column: 5
|
|
55095
55930
|
}
|
|
55096
55931
|
},
|
|
55097
|
-
line:
|
|
55932
|
+
line: 19
|
|
55098
55933
|
}
|
|
55099
55934
|
},
|
|
55100
55935
|
branchMap: {
|
|
55101
55936
|
"0": {
|
|
55102
55937
|
loc: {
|
|
55103
55938
|
start: {
|
|
55104
|
-
line:
|
|
55939
|
+
line: 20,
|
|
55105
55940
|
column: 6
|
|
55106
55941
|
},
|
|
55107
55942
|
end: {
|
|
55108
|
-
line:
|
|
55109
|
-
column:
|
|
55943
|
+
line: 25,
|
|
55944
|
+
column: 7
|
|
55110
55945
|
}
|
|
55111
55946
|
},
|
|
55112
55947
|
type: "if",
|
|
55113
55948
|
locations: [{
|
|
55114
55949
|
start: {
|
|
55115
|
-
line:
|
|
55950
|
+
line: 20,
|
|
55116
55951
|
column: 6
|
|
55117
55952
|
},
|
|
55118
55953
|
end: {
|
|
55119
|
-
line:
|
|
55120
|
-
column:
|
|
55954
|
+
line: 25,
|
|
55955
|
+
column: 7
|
|
55121
55956
|
}
|
|
55122
55957
|
}, {
|
|
55123
55958
|
start: {
|
|
@@ -55129,7 +55964,40 @@
|
|
|
55129
55964
|
column: undefined
|
|
55130
55965
|
}
|
|
55131
55966
|
}],
|
|
55132
|
-
line:
|
|
55967
|
+
line: 20
|
|
55968
|
+
},
|
|
55969
|
+
"1": {
|
|
55970
|
+
loc: {
|
|
55971
|
+
start: {
|
|
55972
|
+
line: 21,
|
|
55973
|
+
column: 8
|
|
55974
|
+
},
|
|
55975
|
+
end: {
|
|
55976
|
+
line: 22,
|
|
55977
|
+
column: 67
|
|
55978
|
+
}
|
|
55979
|
+
},
|
|
55980
|
+
type: "binary-expr",
|
|
55981
|
+
locations: [{
|
|
55982
|
+
start: {
|
|
55983
|
+
line: 21,
|
|
55984
|
+
column: 8
|
|
55985
|
+
},
|
|
55986
|
+
end: {
|
|
55987
|
+
line: 21,
|
|
55988
|
+
column: 69
|
|
55989
|
+
}
|
|
55990
|
+
}, {
|
|
55991
|
+
start: {
|
|
55992
|
+
line: 22,
|
|
55993
|
+
column: 8
|
|
55994
|
+
},
|
|
55995
|
+
end: {
|
|
55996
|
+
line: 22,
|
|
55997
|
+
column: 67
|
|
55998
|
+
}
|
|
55999
|
+
}],
|
|
56000
|
+
line: 21
|
|
55133
56001
|
}
|
|
55134
56002
|
},
|
|
55135
56003
|
s: {
|
|
@@ -55143,10 +56011,11 @@
|
|
|
55143
56011
|
"1": 0
|
|
55144
56012
|
},
|
|
55145
56013
|
b: {
|
|
55146
|
-
"0": [0, 0]
|
|
56014
|
+
"0": [0, 0],
|
|
56015
|
+
"1": [0, 0]
|
|
55147
56016
|
},
|
|
55148
56017
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
55149
|
-
hash: "
|
|
56018
|
+
hash: "9a1f7ec2aa8ca0b15973d446edcbf748306010fb"
|
|
55150
56019
|
};
|
|
55151
56020
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
55152
56021
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -55164,7 +56033,7 @@
|
|
|
55164
56033
|
cov_2h5ihxe0sh();
|
|
55165
56034
|
var useZustandPickTransformer = {
|
|
55166
56035
|
meta: {
|
|
55167
|
-
type: "
|
|
56036
|
+
type: "suggestion",
|
|
55168
56037
|
docs: {
|
|
55169
56038
|
description: "Enforce the use of zustand-pick syntax from babel-preset-neeto."
|
|
55170
56039
|
}
|
|
@@ -55176,7 +56045,7 @@
|
|
|
55176
56045
|
VariableDeclaration: function VariableDeclaration(node) {
|
|
55177
56046
|
cov_2h5ihxe0sh().f[1]++;
|
|
55178
56047
|
cov_2h5ihxe0sh().s[1]++;
|
|
55179
|
-
if (!matches(ZUSTAND_HOOK_USAGE_MULTIPLE_ARGUMENTS_PATTERN, node)) {
|
|
56048
|
+
if ((cov_2h5ihxe0sh().b[1][0]++, !matches(ZUSTAND_HOOK_USAGE_MULTIPLE_ARGUMENTS_PATTERN, node)) || (cov_2h5ihxe0sh().b[1][1]++, matches(ZUSTAND_HOOK_USAGE_SINGLE_IDENTIFIER_PATTERN, node))) {
|
|
55180
56049
|
cov_2h5ihxe0sh().b[0][0]++;
|
|
55181
56050
|
cov_2h5ihxe0sh().s[2]++;
|
|
55182
56051
|
return;
|
|
@@ -55895,7 +56764,7 @@
|
|
|
55895
56764
|
cov_1scjdvsnf2();
|
|
55896
56765
|
var zustandUsePropToPickSingleItem = {
|
|
55897
56766
|
meta: {
|
|
55898
|
-
type: "
|
|
56767
|
+
type: "problem",
|
|
55899
56768
|
docs: {
|
|
55900
56769
|
description: "Throw error if pick function is used to pick a single item"
|
|
55901
56770
|
},
|
|
@@ -55993,6 +56862,7 @@
|
|
|
55993
56862
|
"api-connector-should-use-default-export": apiConnectorShouldUseDefaultExport,
|
|
55994
56863
|
"combine-multiple-independent-awaits": combineMultipleIndependentAwaits,
|
|
55995
56864
|
"consistent-button-link-anchor": consistentButtonLinkAnchor,
|
|
56865
|
+
"ensure-compact-objects": ensureCompactObjects,
|
|
55996
56866
|
"ensure-zustand-stores-are-type-annotated": ensureZustandStoresAreTypeAnnotated,
|
|
55997
56867
|
"files-inside-react-query-folder-should-end-with-api": filesInsideReactQueryFolderShouldEndWithApi,
|
|
55998
56868
|
"file-name-and-export-name-standards": fileNameAndExportNameStandards,
|