@bigbinary/eslint-plugin-neeto 1.0.38 → 1.0.39

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 +2 -0
  2. package/dist/index.js +2021 -236
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -217,6 +217,7 @@
217
217
  includes: ["/components/**", "/*.jsx"]
218
218
  }]
219
219
  }],
220
+ "@bigbinary/neeto/hard-coded-strings-should-be-localized": "warn",
220
221
  "@bigbinary/neeto/minimize-zustand-store-access-scope": "error",
221
222
  "@bigbinary/neeto/neetocommons-tips": "warn",
222
223
  "@bigbinary/neeto/no-axios-import-outside-apis": ["error", resolve.alias],
@@ -258,11 +259,11 @@
258
259
  "@bigbinary/neeto/use-trans-components-and-values-props": "error",
259
260
  "@bigbinary/neeto/use-webpack-alias": ["error", resolve.alias],
260
261
  "@bigbinary/neeto/use-zustand-for-global-state-management": "error",
262
+ "@bigbinary/neeto/use-zustand-pick-transformer": "error",
261
263
  "@bigbinary/neeto/webpack-aliases-and-jsconfig-paths-should-be-in-sync": ["error", {
262
264
  jsconfigFilePath: path$2.resolve(__dirname, "../../../..", "app/javascript/jsconfig.json"),
263
265
  aliasFilePath: path$2.resolve(__dirname, "../../../..", "config/webpack/resolve.js")
264
266
  }],
265
- "@bigbinary/neeto/zustand-recommend-comparator-function-usage": "warn",
266
267
  "@bigbinary/neeto/zustand-use-prop-to-pick-single-item": "error"
267
268
  };
268
269
 
@@ -832,7 +833,7 @@
832
833
 
833
834
  function cov_2kvndqkrrx() {
834
835
  var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/constants.js";
835
- var hash = "1a32ceebfdaf3ce469601e8f1fc5ece138adafa3";
836
+ var hash = "53bd781e1327ef447c0ea824b239c18890b59671";
836
837
  var global = new Function("return this")();
837
838
  var gcv = "__coverage__";
838
839
  var coverageData = {
@@ -894,57 +895,57 @@
894
895
  column: 21
895
896
  },
896
897
  end: {
897
- line: 59,
898
+ line: 61,
898
899
  column: 1
899
900
  }
900
901
  },
901
902
  "6": {
902
903
  start: {
903
- line: 61,
904
+ line: 63,
904
905
  column: 34
905
906
  },
906
907
  end: {
907
- line: 65,
908
+ line: 67,
908
909
  column: 1
909
910
  }
910
911
  },
911
912
  "7": {
912
913
  start: {
913
- line: 67,
914
+ line: 69,
914
915
  column: 32
915
916
  },
916
917
  end: {
917
- line: 67,
918
+ line: 69,
918
919
  column: 53
919
920
  }
920
921
  },
921
922
  "8": {
922
923
  start: {
923
- line: 69,
924
+ line: 71,
924
925
  column: 35
925
926
  },
926
927
  end: {
927
- line: 69,
928
+ line: 71,
928
929
  column: 49
929
930
  }
930
931
  },
931
932
  "9": {
932
933
  start: {
933
- line: 71,
934
+ line: 73,
934
935
  column: 33
935
936
  },
936
937
  end: {
937
- line: 71,
938
+ line: 73,
938
939
  column: 56
939
940
  }
940
941
  },
941
942
  "10": {
942
943
  start: {
943
- line: 73,
944
+ line: 75,
944
945
  column: 32
945
946
  },
946
947
  end: {
947
- line: 73,
948
+ line: 75,
948
949
  column: 46
949
950
  }
950
951
  }
@@ -967,7 +968,7 @@
967
968
  f: {},
968
969
  b: {},
969
970
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
970
- hash: "1a32ceebfdaf3ce469601e8f1fc5ece138adafa3"
971
+ hash: "53bd781e1327ef447c0ea824b239c18890b59671"
971
972
  };
972
973
  var coverage = global[gcv] || (global[gcv] = {});
973
974
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -991,6 +992,7 @@
991
992
  var TYPES = (cov_2kvndqkrrx().s[5]++, {
992
993
  ARRAY_EXPRESSION: "ArrayExpression",
993
994
  ARROW_FUNCTION_EXPRESSION: "ArrowFunctionExpression",
995
+ ASSIGNMENT_EXPRESSION: "AssignmentExpression",
994
996
  ASSIGNMENT_PATTERN: "AssignmentPattern",
995
997
  AWAIT_EXPRESSION: "AwaitExpression",
996
998
  BINARY_EXPRESSION: "BinaryExpression",
@@ -1013,6 +1015,7 @@
1013
1015
  JSX_EXPRESSION_CONTAINER: "JSXExpressionContainer",
1014
1016
  JSX_IDENTIFIER: "JSXIdentifier",
1015
1017
  JSX_OPENING_ELEMENT: "JSXOpeningElement",
1018
+ JSX_TEXT: "JSXText",
1016
1019
  LITERAL: "Literal",
1017
1020
  LOGICAL_EXPRESSION: "LogicalExpression",
1018
1021
  MEMBER_EXPRESSION: "MemberExpression",
@@ -3586,7 +3589,7 @@
3586
3589
 
3587
3590
  function cov_26237ygvis() {
3588
3591
  var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/utils/messages.js";
3589
- var hash = "63f64d98ea236f4c737f987542a6bf761941f20e";
3592
+ var hash = "9d85be1a1db801f1cf8f361dc88ad205dcf5c718";
3590
3593
  var global = new Function("return this")();
3591
3594
  var gcv = "__coverage__";
3592
3595
  var coverageData = {
@@ -4271,6 +4274,26 @@
4271
4274
  line: 174,
4272
4275
  column: 132
4273
4276
  }
4277
+ },
4278
+ "68": {
4279
+ start: {
4280
+ line: 177,
4281
+ column: 2
4282
+ },
4283
+ end: {
4284
+ line: 177,
4285
+ column: 132
4286
+ }
4287
+ },
4288
+ "69": {
4289
+ start: {
4290
+ line: 180,
4291
+ column: 2
4292
+ },
4293
+ end: {
4294
+ line: 180,
4295
+ column: 41
4296
+ }
4274
4297
  }
4275
4298
  },
4276
4299
  fnMap: {
@@ -4608,7 +4631,9 @@
4608
4631
  "64": 0,
4609
4632
  "65": 0,
4610
4633
  "66": 0,
4611
- "67": 0
4634
+ "67": 0,
4635
+ "68": 0,
4636
+ "69": 0
4612
4637
  },
4613
4638
  f: {
4614
4639
  "0": 0,
@@ -4625,7 +4650,7 @@
4625
4650
  },
4626
4651
  b: {},
4627
4652
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
4628
- hash: "63f64d98ea236f4c737f987542a6bf761941f20e"
4653
+ hash: "9d85be1a1db801f1cf8f361dc88ad205dcf5c718"
4629
4654
  };
4630
4655
  var coverage = global[gcv] || (global[gcv] = {});
4631
4656
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -4755,6 +4780,8 @@
4755
4780
  var USE_I18NEXT_PLURALS = (cov_26237ygvis().s[65]++, "Use plurals that comes with the `i18next` package for hard-coded strings. Refer: https://bit.ly/i18next-plurals");
4756
4781
  var USE_PLURALIZE_PACKAGE = (cov_26237ygvis().s[66]++, "Use `pluralize` package for dynamic values. Refer: https://bit.ly/i18next-plurals");
4757
4782
  var USE_COPY_TO_CLIPBOARD_FROM_NEETO_COMMONS = (cov_26237ygvis().s[67]++, "Use `copyToClipboard` from `@bigbinary/neeto-commons-frontend` package. Refer: https://bit.ly/copy-to-clipboard-utility-function");
4783
+ var USE_ZUSTAND_PICK_TRANSFORMER = (cov_26237ygvis().s[68]++, "Replace the boilerplate with zustand-pick syntax offered by babel-preset-neeto. Refer: https://bit.ly/zustand-pick-transform-doc");
4784
+ var HARD_CODED_STRING_SHOULD_BE_LOCALIZED = (cov_26237ygvis().s[69]++, "Hard-coded string should be localized");
4758
4785
 
4759
4786
  function cov_22o2x8aeul() {
4760
4787
  var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/api-connector-name-should-match-filename.js";
@@ -5505,7 +5532,7 @@
5505
5532
  }
5506
5533
  cov_1r7objfoj3();
5507
5534
  cov_1r7objfoj3().s[0]++;
5508
- var checkAndReport$4 = function checkAndReport(context, node) {
5535
+ var checkAndReport$5 = function checkAndReport(context, node) {
5509
5536
  cov_1r7objfoj3().f[0]++;
5510
5537
  cov_1r7objfoj3().s[1]++;
5511
5538
  if (!isInsideApisDirectory(context)) {
@@ -5535,7 +5562,7 @@
5535
5562
  ExportNamedDeclaration: function ExportNamedDeclaration(node) {
5536
5563
  cov_1r7objfoj3().f[2]++;
5537
5564
  cov_1r7objfoj3().s[5]++;
5538
- checkAndReport$4(context, node);
5565
+ checkAndReport$5(context, node);
5539
5566
  },
5540
5567
  ExportDefaultDeclaration: function ExportDefaultDeclaration(node) {
5541
5568
  cov_1r7objfoj3().f[3]++;
@@ -5548,7 +5575,7 @@
5548
5575
  cov_1r7objfoj3().b[1][1]++;
5549
5576
  }
5550
5577
  cov_1r7objfoj3().s[8]++;
5551
- checkAndReport$4(context, node);
5578
+ checkAndReport$5(context, node);
5552
5579
  }
5553
5580
  };
5554
5581
  }
@@ -7457,7 +7484,7 @@
7457
7484
  });
7458
7485
  };
7459
7486
  cov_uo36o8amo().s[39]++;
7460
- var checkAndReport$3 = function checkAndReport(context, node) {
7487
+ var checkAndReport$4 = function checkAndReport(context, node) {
7461
7488
  cov_uo36o8amo().f[9]++;
7462
7489
  cov_uo36o8amo().s[40]++;
7463
7490
  if (!node.async) {
@@ -7499,19 +7526,19 @@
7499
7526
  ArrowFunctionExpression: function ArrowFunctionExpression(node) {
7500
7527
  cov_uo36o8amo().f[12]++;
7501
7528
  cov_uo36o8amo().s[48]++;
7502
- checkAndReport$3(context, node);
7529
+ checkAndReport$4(context, node);
7503
7530
  },
7504
7531
  // const sum = function (a, b) { return a + b };
7505
7532
  FunctionExpression: function FunctionExpression(node) {
7506
7533
  cov_uo36o8amo().f[13]++;
7507
7534
  cov_uo36o8amo().s[49]++;
7508
- checkAndReport$3(context, node);
7535
+ checkAndReport$4(context, node);
7509
7536
  },
7510
7537
  // function sum (a, b) { return a + b };
7511
7538
  FunctionDeclaration: function FunctionDeclaration(node) {
7512
7539
  cov_uo36o8amo().f[14]++;
7513
7540
  cov_uo36o8amo().s[50]++;
7514
- checkAndReport$3(context, node);
7541
+ checkAndReport$4(context, node);
7515
7542
  }
7516
7543
  };
7517
7544
  }
@@ -17932,7 +17959,7 @@
17932
17959
 
17933
17960
  function cov_c0i3as1fp() {
17934
17961
  var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/localization/constants.js";
17935
- var hash = "50a77ca6d14e4e05ef27fd378f842869ea818565";
17962
+ var hash = "325f820598b43aef527c75520ffec8d9e4ab2cfd";
17936
17963
  var global = new Function("return this")();
17937
17964
  var gcv = "__coverage__";
17938
17965
  var coverageData = {
@@ -18107,6 +18134,56 @@
18107
18134
  line: 220,
18108
18135
  column: 1
18109
18136
  }
18137
+ },
18138
+ "17": {
18139
+ start: {
18140
+ line: 223,
18141
+ column: 46
18142
+ },
18143
+ end: {
18144
+ line: 236,
18145
+ column: 1
18146
+ }
18147
+ },
18148
+ "18": {
18149
+ start: {
18150
+ line: 239,
18151
+ column: 2
18152
+ },
18153
+ end: {
18154
+ line: 239,
18155
+ column: 60
18156
+ }
18157
+ },
18158
+ "19": {
18159
+ start: {
18160
+ line: 242,
18161
+ column: 2
18162
+ },
18163
+ end: {
18164
+ line: 242,
18165
+ column: 83
18166
+ }
18167
+ },
18168
+ "20": {
18169
+ start: {
18170
+ line: 245,
18171
+ column: 2
18172
+ },
18173
+ end: {
18174
+ line: 245,
18175
+ column: 45
18176
+ }
18177
+ },
18178
+ "21": {
18179
+ start: {
18180
+ line: 248,
18181
+ column: 2
18182
+ },
18183
+ end: {
18184
+ line: 248,
18185
+ column: 49
18186
+ }
18110
18187
  }
18111
18188
  },
18112
18189
  fnMap: {
@@ -18153,14 +18230,19 @@
18153
18230
  "13": 0,
18154
18231
  "14": 0,
18155
18232
  "15": 0,
18156
- "16": 0
18233
+ "16": 0,
18234
+ "17": 0,
18235
+ "18": 0,
18236
+ "19": 0,
18237
+ "20": 0,
18238
+ "21": 0
18157
18239
  },
18158
18240
  f: {
18159
18241
  "0": 0
18160
18242
  },
18161
18243
  b: {},
18162
18244
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
18163
- hash: "50a77ca6d14e4e05ef27fd378f842869ea818565"
18245
+ hash: "325f820598b43aef527c75520ffec8d9e4ab2cfd"
18164
18246
  };
18165
18247
  var coverage = global[gcv] || (global[gcv] = {});
18166
18248
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -18334,7 +18416,7 @@
18334
18416
  var PLURALIZE_CONDITIONAL_RENDER_PATTERN = (cov_c0i3as1fp().s[13]++, {
18335
18417
  test: {
18336
18418
  type: TYPES.BINARY_EXPRESSION,
18337
- operator: ">",
18419
+ operator: ramda.includes(ramda.__, [">", "==="]),
18338
18420
  right: {
18339
18421
  type: TYPES.LITERAL,
18340
18422
  value: 1
@@ -18383,508 +18465,1857 @@
18383
18465
  }
18384
18466
  });
18385
18467
 
18386
- function cov_1dbv2r7tr6() {
18387
- var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/localization/no-missing-localization.js";
18388
- var hash = "cd1228da81225da49b8d66a0863f86098040d0d6";
18468
+ // Toastr.success("message"), Toastr.error("message"), Toastr.warning("message"), Toastr.info("message")
18469
+ var TOASTR_CALL_EXPRESSION_PATTERN = (cov_c0i3as1fp().s[17]++, {
18470
+ type: TYPES.CALL_EXPRESSION,
18471
+ callee: {
18472
+ type: TYPES.MEMBER_EXPRESSION,
18473
+ object: {
18474
+ type: TYPES.IDENTIFIER,
18475
+ name: "Toastr"
18476
+ },
18477
+ property: {
18478
+ type: TYPES.IDENTIFIER,
18479
+ name: ramda.includes(ramda.__, ["success", "error", "warning", "info"])
18480
+ }
18481
+ }
18482
+ });
18483
+ var NATURAL_LANGUAGE_REGEX = (cov_c0i3as1fp().s[18]++, /^(?:(?:[a-z]+\s)+|\s(?:[a-z]+\s)+|[a-z]*(?:\s[a-z]+)+)$/i);
18484
+ var EXCLUDED_KEYWORDS_REGEX = (cov_c0i3as1fp().s[19]++, /^(.*classnames?|.*class|.*styles?|.*format|viewBox|d|keybinding|rel|sequence)$/i);
18485
+ var INCLUDED_KEYWORDS_REGEX = (cov_c0i3as1fp().s[20]++, /^(.*label|.*title|placeholder|helpText)$/i);
18486
+ var ONLY_NON_WORD_CHAR_REGEX = (cov_c0i3as1fp().s[21]++, /^[\s\n\r\t\W0-9_ ]*(&.*;)*[\s\n\r\t\W0-9_ ]*$/);
18487
+
18488
+ function cov_egnyqf63g() {
18489
+ var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/localization/hard-coded-strings-should-be-localized.js";
18490
+ var hash = "d88262455c5e97fb77cb9711bb56bdcb32f5c808";
18389
18491
  var global = new Function("return this")();
18390
18492
  var gcv = "__coverage__";
18391
18493
  var coverageData = {
18392
- path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/localization/no-missing-localization.js",
18494
+ path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/localization/hard-coded-strings-should-be-localized.js",
18393
18495
  statementMap: {
18394
18496
  "0": {
18395
18497
  start: {
18396
- line: 10,
18397
- column: 16
18498
+ line: 14,
18499
+ column: 20
18398
18500
  },
18399
18501
  end: {
18400
- line: 13,
18502
+ line: 27,
18401
18503
  column: 1
18402
18504
  }
18403
18505
  },
18404
18506
  "1": {
18405
18507
  start: {
18406
- line: 11,
18407
- column: 8
18508
+ line: 15,
18509
+ column: 2
18408
18510
  },
18409
18511
  end: {
18410
- line: 11,
18411
- column: 10
18512
+ line: 26,
18513
+ column: 3
18412
18514
  }
18413
18515
  },
18414
18516
  "2": {
18415
18517
  start: {
18416
- line: 12,
18417
- column: 8
18518
+ line: 17,
18519
+ column: 6
18418
18520
  },
18419
18521
  end: {
18420
- line: 12,
18421
- column: 26
18522
+ line: 17,
18523
+ column: 28
18422
18524
  }
18423
18525
  },
18424
18526
  "3": {
18425
18527
  start: {
18426
- line: 15,
18427
- column: 21
18528
+ line: 19,
18529
+ column: 6
18428
18530
  },
18429
18531
  end: {
18430
- line: 22,
18431
- column: 1
18532
+ line: 19,
18533
+ column: 27
18432
18534
  }
18433
18535
  },
18434
18536
  "4": {
18435
18537
  start: {
18436
- line: 16,
18437
- column: 28
18538
+ line: 21,
18539
+ column: 6
18438
18540
  },
18439
18541
  end: {
18440
- line: 16,
18441
- column: 57
18542
+ line: 21,
18543
+ column: 26
18442
18544
  }
18443
18545
  },
18444
18546
  "5": {
18445
18547
  start: {
18446
- line: 17,
18447
- column: 2
18548
+ line: 23,
18549
+ column: 6
18448
18550
  },
18449
18551
  end: {
18450
- line: 17,
18451
- column: 38
18552
+ line: 23,
18553
+ column: 28
18452
18554
  }
18453
18555
  },
18454
18556
  "6": {
18455
18557
  start: {
18456
- line: 17,
18457
- column: 26
18558
+ line: 25,
18559
+ column: 6
18458
18560
  },
18459
18561
  end: {
18460
- line: 17,
18461
- column: 38
18562
+ line: 25,
18563
+ column: 16
18462
18564
  }
18463
18565
  },
18464
18566
  "7": {
18465
18567
  start: {
18466
- line: 19,
18467
- column: 22
18568
+ line: 29,
18569
+ column: 21
18468
18570
  },
18469
18571
  end: {
18470
- line: 19,
18471
- column: 46
18572
+ line: 68,
18573
+ column: 1
18472
18574
  }
18473
18575
  },
18474
18576
  "8": {
18475
18577
  start: {
18476
- line: 21,
18578
+ line: 30,
18477
18579
  column: 2
18478
18580
  },
18479
18581
  end: {
18480
- line: 21,
18481
- column: 80
18582
+ line: 30,
18583
+ column: 50
18482
18584
  }
18483
18585
  },
18484
18586
  "9": {
18485
18587
  start: {
18486
- line: 24,
18487
- column: 23
18588
+ line: 30,
18589
+ column: 37
18488
18590
  },
18489
18591
  end: {
18490
- line: 50,
18491
- column: 1
18592
+ line: 30,
18593
+ column: 50
18492
18594
  }
18493
18595
  },
18494
18596
  "10": {
18495
18597
  start: {
18496
- line: 25,
18497
- column: 22
18598
+ line: 32,
18599
+ column: 34
18498
18600
  },
18499
18601
  end: {
18500
- line: 25,
18501
- column: 77
18602
+ line: 32,
18603
+ column: 74
18502
18604
  }
18503
18605
  },
18504
18606
  "11": {
18505
18607
  start: {
18506
- line: 26,
18507
- column: 20
18608
+ line: 33,
18609
+ column: 2
18508
18610
  },
18509
18611
  end: {
18510
- line: 26,
18511
- column: 71
18612
+ line: 33,
18613
+ column: 44
18512
18614
  }
18513
18615
  },
18514
18616
  "12": {
18515
18617
  start: {
18516
- line: 27,
18517
- column: 2
18618
+ line: 33,
18619
+ column: 31
18518
18620
  },
18519
18621
  end: {
18520
- line: 27,
18521
- column: 39
18622
+ line: 33,
18623
+ column: 44
18522
18624
  }
18523
18625
  },
18524
18626
  "13": {
18525
18627
  start: {
18526
- line: 27,
18527
- column: 32
18628
+ line: 35,
18629
+ column: 24
18528
18630
  },
18529
18631
  end: {
18530
- line: 27,
18531
- column: 39
18632
+ line: 35,
18633
+ column: 52
18532
18634
  }
18533
18635
  },
18534
18636
  "14": {
18535
18637
  start: {
18536
- line: 29,
18638
+ line: 36,
18537
18639
  column: 2
18538
18640
  },
18539
18641
  end: {
18540
- line: 29,
18541
- column: 41
18642
+ line: 36,
18643
+ column: 33
18542
18644
  }
18543
18645
  },
18544
18646
  "15": {
18545
18647
  start: {
18546
- line: 30,
18547
- column: 2
18648
+ line: 36,
18649
+ column: 21
18548
18650
  },
18549
18651
  end: {
18550
- line: 30,
18551
- column: 37
18652
+ line: 36,
18653
+ column: 33
18552
18654
  }
18553
18655
  },
18554
18656
  "16": {
18555
18657
  start: {
18556
- line: 33,
18557
- column: 2
18658
+ line: 38,
18659
+ column: 20
18558
18660
  },
18559
18661
  end: {
18560
- line: 37,
18561
- column: 5
18662
+ line: 38,
18663
+ column: 46
18562
18664
  }
18563
18665
  },
18564
18666
  "17": {
18565
18667
  start: {
18566
- line: 39,
18567
- column: 27
18668
+ line: 40,
18669
+ column: 2
18568
18670
  },
18569
18671
  end: {
18570
- line: 39,
18571
- column: 42
18672
+ line: 65,
18673
+ column: 3
18572
18674
  }
18573
18675
  },
18574
18676
  "18": {
18575
18677
  start: {
18576
18678
  line: 40,
18577
- column: 22
18679
+ column: 15
18578
18680
  },
18579
18681
  end: {
18580
- line: 42,
18581
- column: 3
18682
+ line: 40,
18683
+ column: 35
18582
18684
  }
18583
18685
  },
18584
18686
  "19": {
18585
18687
  start: {
18586
18688
  line: 41,
18587
- column: 4
18689
+ column: 19
18588
18690
  },
18589
18691
  end: {
18590
18692
  line: 41,
18591
- column: 62
18693
+ column: 31
18592
18694
  }
18593
18695
  },
18594
18696
  "20": {
18595
18697
  start: {
18596
- line: 44,
18597
- column: 2
18698
+ line: 43,
18699
+ column: 4
18598
18700
  },
18599
18701
  end: {
18600
- line: 49,
18601
- column: 3
18702
+ line: 43,
18703
+ column: 76
18602
18704
  }
18603
18705
  },
18604
18706
  "21": {
18605
18707
  start: {
18606
- line: 45,
18607
- column: 4
18708
+ line: 43,
18709
+ column: 63
18608
18710
  },
18609
18711
  end: {
18610
- line: 48,
18611
- column: 7
18712
+ line: 43,
18713
+ column: 76
18612
18714
  }
18613
18715
  },
18614
18716
  "22": {
18615
18717
  start: {
18616
- line: 52,
18617
- column: 22
18718
+ line: 45,
18719
+ column: 4
18618
18720
  },
18619
18721
  end: {
18620
- line: 53,
18621
- column: 55
18722
+ line: 49,
18723
+ column: 5
18622
18724
  }
18623
18725
  },
18624
18726
  "23": {
18625
18727
  start: {
18626
- line: 53,
18627
- column: 2
18728
+ line: 46,
18729
+ column: 27
18628
18730
  },
18629
18731
  end: {
18630
- line: 53,
18631
- column: 55
18732
+ line: 46,
18733
+ column: 74
18632
18734
  }
18633
18735
  },
18634
18736
  "24": {
18635
18737
  start: {
18636
- line: 55,
18637
- column: 21
18738
+ line: 48,
18739
+ column: 6
18638
18740
  },
18639
18741
  end: {
18640
- line: 60,
18641
- column: 8
18742
+ line: 48,
18743
+ column: 26
18642
18744
  }
18643
18745
  },
18644
18746
  "25": {
18645
18747
  start: {
18646
- line: 56,
18647
- column: 2
18748
+ line: 51,
18749
+ column: 21
18648
18750
  },
18649
18751
  end: {
18650
- line: 60,
18651
- column: 8
18752
+ line: 51,
18753
+ column: 40
18652
18754
  }
18653
18755
  },
18654
18756
  "26": {
18655
18757
  start: {
18656
- line: 57,
18758
+ line: 53,
18657
18759
  column: 4
18658
18760
  },
18659
18761
  end: {
18660
- line: 57,
18661
- column: 40
18762
+ line: 64,
18763
+ column: 5
18662
18764
  }
18663
18765
  },
18664
18766
  "27": {
18665
18767
  start: {
18666
- line: 59,
18667
- column: 4
18768
+ line: 54,
18769
+ column: 31
18668
18770
  },
18669
18771
  end: {
18670
- line: 59,
18671
- column: 15
18772
+ line: 54,
18773
+ column: 69
18672
18774
  }
18673
18775
  },
18674
18776
  "28": {
18675
18777
  start: {
18676
- line: 62,
18677
- column: 27
18778
+ line: 55,
18779
+ column: 6
18678
18780
  },
18679
18781
  end: {
18680
- line: 63,
18681
- column: 60
18782
+ line: 55,
18783
+ column: 40
18682
18784
  }
18683
18785
  },
18684
18786
  "29": {
18685
18787
  start: {
18686
- line: 63,
18687
- column: 2
18788
+ line: 55,
18789
+ column: 28
18688
18790
  },
18689
18791
  end: {
18690
- line: 63,
18691
- column: 60
18792
+ line: 55,
18793
+ column: 40
18692
18794
  }
18693
18795
  },
18694
18796
  "30": {
18695
18797
  start: {
18696
- line: 73,
18697
- column: 22
18798
+ line: 57,
18799
+ column: 40
18698
18800
  },
18699
18801
  end: {
18700
- line: 109,
18701
- column: 3
18802
+ line: 57,
18803
+ column: 78
18702
18804
  }
18703
18805
  },
18704
18806
  "31": {
18705
18807
  start: {
18706
- line: 75,
18808
+ line: 58,
18707
18809
  column: 6
18708
18810
  },
18709
18811
  end: {
18710
- line: 75,
18711
- column: 64
18812
+ line: 58,
18813
+ column: 51
18712
18814
  }
18713
18815
  },
18714
18816
  "32": {
18715
18817
  start: {
18716
- line: 75,
18717
- column: 57
18818
+ line: 58,
18819
+ column: 38
18718
18820
  },
18719
18821
  end: {
18720
- line: 75,
18721
- column: 64
18822
+ line: 58,
18823
+ column: 51
18722
18824
  }
18723
18825
  },
18724
18826
  "33": {
18725
18827
  start: {
18726
- line: 77,
18727
- column: 21
18828
+ line: 60,
18829
+ column: 31
18728
18830
  },
18729
18831
  end: {
18730
- line: 77,
18731
- column: 23
18832
+ line: 60,
18833
+ column: 69
18732
18834
  }
18733
18835
  },
18734
18836
  "34": {
18735
18837
  start: {
18736
- line: 78,
18838
+ line: 61,
18737
18839
  column: 6
18738
18840
  },
18739
18841
  end: {
18740
- line: 87,
18741
- column: 7
18842
+ line: 61,
18843
+ column: 41
18742
18844
  }
18743
18845
  },
18744
18846
  "35": {
18745
18847
  start: {
18746
- line: 79,
18747
- column: 8
18848
+ line: 61,
18849
+ column: 28
18748
18850
  },
18749
18851
  end: {
18750
- line: 79,
18751
- column: 70
18852
+ line: 61,
18853
+ column: 41
18752
18854
  }
18753
18855
  },
18754
18856
  "36": {
18755
18857
  start: {
18756
- line: 80,
18757
- column: 8
18858
+ line: 63,
18859
+ column: 6
18758
18860
  },
18759
18861
  end: {
18760
- line: 80,
18761
- column: 74
18862
+ line: 63,
18863
+ column: 18
18762
18864
  }
18763
18865
  },
18764
18866
  "37": {
18765
18867
  start: {
18766
- line: 81,
18767
- column: 13
18868
+ line: 67,
18869
+ column: 2
18768
18870
  },
18769
18871
  end: {
18770
- line: 87,
18771
- column: 7
18872
+ line: 67,
18873
+ column: 15
18772
18874
  }
18773
18875
  },
18774
18876
  "38": {
18775
18877
  start: {
18776
- line: 82,
18777
- column: 8
18878
+ line: 70,
18879
+ column: 23
18778
18880
  },
18779
18881
  end: {
18780
- line: 86,
18781
- column: 9
18882
+ line: 77,
18883
+ column: 1
18782
18884
  }
18783
18885
  },
18784
18886
  "39": {
18785
18887
  start: {
18786
- line: 83,
18787
- column: 10
18888
+ line: 72,
18889
+ column: 4
18788
18890
  },
18789
18891
  end: {
18790
- line: 83,
18791
- column: 27
18892
+ line: 72,
18893
+ column: 70
18792
18894
  }
18793
18895
  },
18794
18896
  "40": {
18795
18897
  start: {
18796
- line: 84,
18797
- column: 15
18898
+ line: 74,
18899
+ column: 2
18798
18900
  },
18799
18901
  end: {
18800
- line: 86,
18801
- column: 9
18902
+ line: 74,
18903
+ column: 54
18802
18904
  }
18803
18905
  },
18804
18906
  "41": {
18805
18907
  start: {
18806
- line: 85,
18807
- column: 10
18908
+ line: 74,
18909
+ column: 47
18808
18910
  },
18809
18911
  end: {
18810
- line: 85,
18811
- column: 27
18912
+ line: 74,
18913
+ column: 54
18812
18914
  }
18813
18915
  },
18814
18916
  "42": {
18815
18917
  start: {
18816
- line: 89,
18817
- column: 6
18918
+ line: 76,
18919
+ column: 2
18818
18920
  },
18819
18921
  end: {
18820
- line: 89,
18821
- column: 78
18922
+ line: 76,
18923
+ column: 75
18822
18924
  }
18823
18925
  },
18824
18926
  "43": {
18825
18927
  start: {
18826
- line: 92,
18827
- column: 6
18928
+ line: 86,
18929
+ column: 22
18828
18930
  },
18829
18931
  end: {
18830
- line: 92,
18831
- column: 45
18932
+ line: 96,
18933
+ column: 3
18832
18934
  }
18833
18935
  },
18834
18936
  "44": {
18835
18937
  start: {
18836
- line: 92,
18837
- column: 38
18938
+ line: 88,
18939
+ column: 6
18838
18940
  },
18839
18941
  end: {
18840
- line: 92,
18841
- column: 45
18942
+ line: 88,
18943
+ column: 36
18842
18944
  }
18843
18945
  },
18844
18946
  "45": {
18845
18947
  start: {
18846
- line: 94,
18847
- column: 22
18948
+ line: 91,
18949
+ column: 6
18848
18950
  },
18849
18951
  end: {
18850
- line: 94,
18851
- column: 52
18952
+ line: 91,
18953
+ column: 36
18852
18954
  }
18853
18955
  },
18854
18956
  "46": {
18855
18957
  start: {
18856
- line: 95,
18958
+ line: 94,
18857
18959
  column: 6
18858
18960
  },
18859
18961
  end: {
18860
- line: 95,
18861
- column: 27
18962
+ line: 94,
18963
+ column: 36
18862
18964
  }
18863
- },
18864
- "47": {
18865
- start: {
18866
- line: 95,
18867
- column: 20
18965
+ }
18966
+ },
18967
+ fnMap: {
18968
+ "0": {
18969
+ name: "(anonymous_0)",
18970
+ decl: {
18971
+ start: {
18972
+ line: 14,
18973
+ column: 20
18974
+ },
18975
+ end: {
18976
+ line: 14,
18977
+ column: 21
18978
+ }
18868
18979
  },
18869
- end: {
18870
- line: 95,
18871
- column: 27
18872
- }
18873
- },
18874
- "48": {
18875
- start: {
18876
- line: 97,
18877
- column: 22
18980
+ loc: {
18981
+ start: {
18982
+ line: 14,
18983
+ column: 28
18984
+ },
18985
+ end: {
18986
+ line: 27,
18987
+ column: 1
18988
+ }
18878
18989
  },
18879
- end: {
18880
- line: 97,
18881
- column: 35
18882
- }
18990
+ line: 14
18883
18991
  },
18884
- "49": {
18885
- start: {
18886
- line: 98,
18887
- column: 6
18992
+ "1": {
18993
+ name: "(anonymous_1)",
18994
+ decl: {
18995
+ start: {
18996
+ line: 29,
18997
+ column: 21
18998
+ },
18999
+ end: {
19000
+ line: 29,
19001
+ column: 22
19002
+ }
19003
+ },
19004
+ loc: {
19005
+ start: {
19006
+ line: 29,
19007
+ column: 51
19008
+ },
19009
+ end: {
19010
+ line: 68,
19011
+ column: 1
19012
+ }
19013
+ },
19014
+ line: 29
19015
+ },
19016
+ "2": {
19017
+ name: "(anonymous_2)",
19018
+ decl: {
19019
+ start: {
19020
+ line: 70,
19021
+ column: 23
19022
+ },
19023
+ end: {
19024
+ line: 70,
19025
+ column: 24
19026
+ }
19027
+ },
19028
+ loc: {
19029
+ start: {
19030
+ line: 70,
19031
+ column: 42
19032
+ },
19033
+ end: {
19034
+ line: 77,
19035
+ column: 1
19036
+ }
19037
+ },
19038
+ line: 70
19039
+ },
19040
+ "3": {
19041
+ name: "(anonymous_3)",
19042
+ decl: {
19043
+ start: {
19044
+ line: 86,
19045
+ column: 10
19046
+ },
19047
+ end: {
19048
+ line: 86,
19049
+ column: 11
19050
+ }
19051
+ },
19052
+ loc: {
19053
+ start: {
19054
+ line: 86,
19055
+ column: 22
19056
+ },
19057
+ end: {
19058
+ line: 96,
19059
+ column: 3
19060
+ }
19061
+ },
19062
+ line: 86
19063
+ },
19064
+ "4": {
19065
+ name: "(anonymous_4)",
19066
+ decl: {
19067
+ start: {
19068
+ line: 87,
19069
+ column: 4
19070
+ },
19071
+ end: {
19072
+ line: 87,
19073
+ column: 5
19074
+ }
19075
+ },
19076
+ loc: {
19077
+ start: {
19078
+ line: 87,
19079
+ column: 18
19080
+ },
19081
+ end: {
19082
+ line: 89,
19083
+ column: 5
19084
+ }
19085
+ },
19086
+ line: 87
19087
+ },
19088
+ "5": {
19089
+ name: "(anonymous_5)",
19090
+ decl: {
19091
+ start: {
19092
+ line: 90,
19093
+ column: 4
19094
+ },
19095
+ end: {
19096
+ line: 90,
19097
+ column: 5
19098
+ }
19099
+ },
19100
+ loc: {
19101
+ start: {
19102
+ line: 90,
19103
+ column: 26
19104
+ },
19105
+ end: {
19106
+ line: 92,
19107
+ column: 5
19108
+ }
19109
+ },
19110
+ line: 90
19111
+ },
19112
+ "6": {
19113
+ name: "(anonymous_6)",
19114
+ decl: {
19115
+ start: {
19116
+ line: 93,
19117
+ column: 4
19118
+ },
19119
+ end: {
19120
+ line: 93,
19121
+ column: 5
19122
+ }
19123
+ },
19124
+ loc: {
19125
+ start: {
19126
+ line: 93,
19127
+ column: 18
19128
+ },
19129
+ end: {
19130
+ line: 95,
19131
+ column: 5
19132
+ }
19133
+ },
19134
+ line: 93
19135
+ }
19136
+ },
19137
+ branchMap: {
19138
+ "0": {
19139
+ loc: {
19140
+ start: {
19141
+ line: 15,
19142
+ column: 2
19143
+ },
19144
+ end: {
19145
+ line: 26,
19146
+ column: 3
19147
+ }
19148
+ },
19149
+ type: "switch",
19150
+ locations: [{
19151
+ start: {
19152
+ line: 16,
19153
+ column: 4
19154
+ },
19155
+ end: {
19156
+ line: 17,
19157
+ column: 28
19158
+ }
19159
+ }, {
19160
+ start: {
19161
+ line: 18,
19162
+ column: 4
19163
+ },
19164
+ end: {
19165
+ line: 19,
19166
+ column: 27
19167
+ }
19168
+ }, {
19169
+ start: {
19170
+ line: 20,
19171
+ column: 4
19172
+ },
19173
+ end: {
19174
+ line: 21,
19175
+ column: 26
19176
+ }
19177
+ }, {
19178
+ start: {
19179
+ line: 22,
19180
+ column: 4
19181
+ },
19182
+ end: {
19183
+ line: 23,
19184
+ column: 28
19185
+ }
19186
+ }, {
19187
+ start: {
19188
+ line: 24,
19189
+ column: 4
19190
+ },
19191
+ end: {
19192
+ line: 25,
19193
+ column: 16
19194
+ }
19195
+ }],
19196
+ line: 15
19197
+ },
19198
+ "1": {
19199
+ loc: {
19200
+ start: {
19201
+ line: 30,
19202
+ column: 2
19203
+ },
19204
+ end: {
19205
+ line: 30,
19206
+ column: 50
19207
+ }
19208
+ },
19209
+ type: "if",
19210
+ locations: [{
19211
+ start: {
19212
+ line: 30,
19213
+ column: 2
19214
+ },
19215
+ end: {
19216
+ line: 30,
19217
+ column: 50
19218
+ }
19219
+ }, {
19220
+ start: {
19221
+ line: undefined,
19222
+ column: undefined
19223
+ },
19224
+ end: {
19225
+ line: undefined,
19226
+ column: undefined
19227
+ }
19228
+ }],
19229
+ line: 30
19230
+ },
19231
+ "2": {
19232
+ loc: {
19233
+ start: {
19234
+ line: 33,
19235
+ column: 2
19236
+ },
19237
+ end: {
19238
+ line: 33,
19239
+ column: 44
19240
+ }
19241
+ },
19242
+ type: "if",
19243
+ locations: [{
19244
+ start: {
19245
+ line: 33,
19246
+ column: 2
19247
+ },
19248
+ end: {
19249
+ line: 33,
19250
+ column: 44
19251
+ }
19252
+ }, {
19253
+ start: {
19254
+ line: undefined,
19255
+ column: undefined
19256
+ },
19257
+ end: {
19258
+ line: undefined,
19259
+ column: undefined
19260
+ }
19261
+ }],
19262
+ line: 33
19263
+ },
19264
+ "3": {
19265
+ loc: {
19266
+ start: {
19267
+ line: 36,
19268
+ column: 2
19269
+ },
19270
+ end: {
19271
+ line: 36,
19272
+ column: 33
19273
+ }
19274
+ },
19275
+ type: "if",
19276
+ locations: [{
19277
+ start: {
19278
+ line: 36,
19279
+ column: 2
19280
+ },
19281
+ end: {
19282
+ line: 36,
19283
+ column: 33
19284
+ }
19285
+ }, {
19286
+ start: {
19287
+ line: undefined,
19288
+ column: undefined
19289
+ },
19290
+ end: {
19291
+ line: undefined,
19292
+ column: undefined
19293
+ }
19294
+ }],
19295
+ line: 36
19296
+ },
19297
+ "4": {
19298
+ loc: {
19299
+ start: {
19300
+ line: 43,
19301
+ column: 4
19302
+ },
19303
+ end: {
19304
+ line: 43,
19305
+ column: 76
19306
+ }
19307
+ },
19308
+ type: "if",
19309
+ locations: [{
19310
+ start: {
19311
+ line: 43,
19312
+ column: 4
19313
+ },
19314
+ end: {
19315
+ line: 43,
19316
+ column: 76
19317
+ }
19318
+ }, {
19319
+ start: {
19320
+ line: undefined,
19321
+ column: undefined
19322
+ },
19323
+ end: {
19324
+ line: undefined,
19325
+ column: undefined
19326
+ }
19327
+ }],
19328
+ line: 43
19329
+ },
19330
+ "5": {
19331
+ loc: {
19332
+ start: {
19333
+ line: 45,
19334
+ column: 4
19335
+ },
19336
+ end: {
19337
+ line: 49,
19338
+ column: 5
19339
+ }
19340
+ },
19341
+ type: "if",
19342
+ locations: [{
19343
+ start: {
19344
+ line: 45,
19345
+ column: 4
19346
+ },
19347
+ end: {
19348
+ line: 49,
19349
+ column: 5
19350
+ }
19351
+ }, {
19352
+ start: {
19353
+ line: undefined,
19354
+ column: undefined
19355
+ },
19356
+ end: {
19357
+ line: undefined,
19358
+ column: undefined
19359
+ }
19360
+ }],
19361
+ line: 45
19362
+ },
19363
+ "6": {
19364
+ loc: {
19365
+ start: {
19366
+ line: 53,
19367
+ column: 4
19368
+ },
19369
+ end: {
19370
+ line: 64,
19371
+ column: 5
19372
+ }
19373
+ },
19374
+ type: "if",
19375
+ locations: [{
19376
+ start: {
19377
+ line: 53,
19378
+ column: 4
19379
+ },
19380
+ end: {
19381
+ line: 64,
19382
+ column: 5
19383
+ }
19384
+ }, {
19385
+ start: {
19386
+ line: undefined,
19387
+ column: undefined
19388
+ },
19389
+ end: {
19390
+ line: undefined,
19391
+ column: undefined
19392
+ }
19393
+ }],
19394
+ line: 53
19395
+ },
19396
+ "7": {
19397
+ loc: {
19398
+ start: {
19399
+ line: 55,
19400
+ column: 6
19401
+ },
19402
+ end: {
19403
+ line: 55,
19404
+ column: 40
19405
+ }
19406
+ },
19407
+ type: "if",
19408
+ locations: [{
19409
+ start: {
19410
+ line: 55,
19411
+ column: 6
19412
+ },
19413
+ end: {
19414
+ line: 55,
19415
+ column: 40
19416
+ }
19417
+ }, {
19418
+ start: {
19419
+ line: undefined,
19420
+ column: undefined
19421
+ },
19422
+ end: {
19423
+ line: undefined,
19424
+ column: undefined
19425
+ }
19426
+ }],
19427
+ line: 55
19428
+ },
19429
+ "8": {
19430
+ loc: {
19431
+ start: {
19432
+ line: 58,
19433
+ column: 6
19434
+ },
19435
+ end: {
19436
+ line: 58,
19437
+ column: 51
19438
+ }
19439
+ },
19440
+ type: "if",
19441
+ locations: [{
19442
+ start: {
19443
+ line: 58,
19444
+ column: 6
19445
+ },
19446
+ end: {
19447
+ line: 58,
19448
+ column: 51
19449
+ }
19450
+ }, {
19451
+ start: {
19452
+ line: undefined,
19453
+ column: undefined
19454
+ },
19455
+ end: {
19456
+ line: undefined,
19457
+ column: undefined
19458
+ }
19459
+ }],
19460
+ line: 58
19461
+ },
19462
+ "9": {
19463
+ loc: {
19464
+ start: {
19465
+ line: 61,
19466
+ column: 6
19467
+ },
19468
+ end: {
19469
+ line: 61,
19470
+ column: 41
19471
+ }
19472
+ },
19473
+ type: "if",
19474
+ locations: [{
19475
+ start: {
19476
+ line: 61,
19477
+ column: 6
19478
+ },
19479
+ end: {
19480
+ line: 61,
19481
+ column: 41
19482
+ }
19483
+ }, {
19484
+ start: {
19485
+ line: undefined,
19486
+ column: undefined
19487
+ },
19488
+ end: {
19489
+ line: undefined,
19490
+ column: undefined
19491
+ }
19492
+ }],
19493
+ line: 61
19494
+ },
19495
+ "10": {
19496
+ loc: {
19497
+ start: {
19498
+ line: 72,
19499
+ column: 4
19500
+ },
19501
+ end: {
19502
+ line: 72,
19503
+ column: 70
19504
+ }
19505
+ },
19506
+ type: "cond-expr",
19507
+ locations: [{
19508
+ start: {
19509
+ line: 72,
19510
+ column: 43
19511
+ },
19512
+ end: {
19513
+ line: 72,
19514
+ column: 57
19515
+ }
19516
+ }, {
19517
+ start: {
19518
+ line: 72,
19519
+ column: 60
19520
+ },
19521
+ end: {
19522
+ line: 72,
19523
+ column: 70
19524
+ }
19525
+ }],
19526
+ line: 72
19527
+ },
19528
+ "11": {
19529
+ loc: {
19530
+ start: {
19531
+ line: 74,
19532
+ column: 2
19533
+ },
19534
+ end: {
19535
+ line: 74,
19536
+ column: 54
19537
+ }
19538
+ },
19539
+ type: "if",
19540
+ locations: [{
19541
+ start: {
19542
+ line: 74,
19543
+ column: 2
19544
+ },
19545
+ end: {
19546
+ line: 74,
19547
+ column: 54
19548
+ }
19549
+ }, {
19550
+ start: {
19551
+ line: undefined,
19552
+ column: undefined
19553
+ },
19554
+ end: {
19555
+ line: undefined,
19556
+ column: undefined
19557
+ }
19558
+ }],
19559
+ line: 74
19560
+ }
19561
+ },
19562
+ s: {
19563
+ "0": 0,
19564
+ "1": 0,
19565
+ "2": 0,
19566
+ "3": 0,
19567
+ "4": 0,
19568
+ "5": 0,
19569
+ "6": 0,
19570
+ "7": 0,
19571
+ "8": 0,
19572
+ "9": 0,
19573
+ "10": 0,
19574
+ "11": 0,
19575
+ "12": 0,
19576
+ "13": 0,
19577
+ "14": 0,
19578
+ "15": 0,
19579
+ "16": 0,
19580
+ "17": 0,
19581
+ "18": 0,
19582
+ "19": 0,
19583
+ "20": 0,
19584
+ "21": 0,
19585
+ "22": 0,
19586
+ "23": 0,
19587
+ "24": 0,
19588
+ "25": 0,
19589
+ "26": 0,
19590
+ "27": 0,
19591
+ "28": 0,
19592
+ "29": 0,
19593
+ "30": 0,
19594
+ "31": 0,
19595
+ "32": 0,
19596
+ "33": 0,
19597
+ "34": 0,
19598
+ "35": 0,
19599
+ "36": 0,
19600
+ "37": 0,
19601
+ "38": 0,
19602
+ "39": 0,
19603
+ "40": 0,
19604
+ "41": 0,
19605
+ "42": 0,
19606
+ "43": 0,
19607
+ "44": 0,
19608
+ "45": 0,
19609
+ "46": 0
19610
+ },
19611
+ f: {
19612
+ "0": 0,
19613
+ "1": 0,
19614
+ "2": 0,
19615
+ "3": 0,
19616
+ "4": 0,
19617
+ "5": 0,
19618
+ "6": 0
19619
+ },
19620
+ b: {
19621
+ "0": [0, 0, 0, 0, 0],
19622
+ "1": [0, 0],
19623
+ "2": [0, 0],
19624
+ "3": [0, 0],
19625
+ "4": [0, 0],
19626
+ "5": [0, 0],
19627
+ "6": [0, 0],
19628
+ "7": [0, 0],
19629
+ "8": [0, 0],
19630
+ "9": [0, 0],
19631
+ "10": [0, 0],
19632
+ "11": [0, 0]
19633
+ },
19634
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
19635
+ hash: "d88262455c5e97fb77cb9711bb56bdcb32f5c808"
19636
+ };
19637
+ var coverage = global[gcv] || (global[gcv] = {});
19638
+ if (!coverage[path] || coverage[path].hash !== hash) {
19639
+ coverage[path] = coverageData;
19640
+ }
19641
+ var actualCoverage = coverage[path];
19642
+ {
19643
+ // @ts-ignore
19644
+ cov_egnyqf63g = function () {
19645
+ return actualCoverage;
19646
+ };
19647
+ }
19648
+ return actualCoverage;
19649
+ }
19650
+ cov_egnyqf63g();
19651
+ cov_egnyqf63g().s[0]++;
19652
+ var getNodeName = function getNodeName(node) {
19653
+ cov_egnyqf63g().f[0]++;
19654
+ cov_egnyqf63g().s[1]++;
19655
+ switch (node.type) {
19656
+ case TYPES.JSX_ATTRIBUTE:
19657
+ cov_egnyqf63g().b[0][0]++;
19658
+ cov_egnyqf63g().s[2]++;
19659
+ return node.name.name;
19660
+ case TYPES.PROPERTY:
19661
+ cov_egnyqf63g().b[0][1]++;
19662
+ cov_egnyqf63g().s[3]++;
19663
+ return node.key.name;
19664
+ case TYPES.VARIABLE_DECLARATOR:
19665
+ cov_egnyqf63g().b[0][2]++;
19666
+ cov_egnyqf63g().s[4]++;
19667
+ return node.id.name;
19668
+ case TYPES.ASSIGNMENT_EXPRESSION:
19669
+ cov_egnyqf63g().b[0][3]++;
19670
+ cov_egnyqf63g().s[5]++;
19671
+ return node.left.name;
19672
+ default:
19673
+ cov_egnyqf63g().b[0][4]++;
19674
+ cov_egnyqf63g().s[6]++;
19675
+ return "";
19676
+ }
19677
+ };
19678
+ cov_egnyqf63g().s[7]++;
19679
+ var shouldReport = function shouldReport(node, nodeValue, context) {
19680
+ cov_egnyqf63g().f[1]++;
19681
+ cov_egnyqf63g().s[8]++;
19682
+ if (typeof nodeValue !== "string") {
19683
+ cov_egnyqf63g().b[1][0]++;
19684
+ cov_egnyqf63g().s[9]++;
19685
+ return false;
19686
+ } else {
19687
+ cov_egnyqf63g().b[1][1]++;
19688
+ }
19689
+ var containOnlyNonWordChars = (cov_egnyqf63g().s[10]++, ONLY_NON_WORD_CHAR_REGEX.test(nodeValue));
19690
+ cov_egnyqf63g().s[11]++;
19691
+ if (containOnlyNonWordChars) {
19692
+ cov_egnyqf63g().b[2][0]++;
19693
+ cov_egnyqf63g().s[12]++;
19694
+ return false;
19695
+ } else {
19696
+ cov_egnyqf63g().b[2][1]++;
19697
+ }
19698
+ var isJSXTextType = (cov_egnyqf63g().s[13]++, node.type === TYPES.JSX_TEXT);
19699
+ cov_egnyqf63g().s[14]++;
19700
+ if (isJSXTextType) {
19701
+ cov_egnyqf63g().b[3][0]++;
19702
+ cov_egnyqf63g().s[15]++;
19703
+ return true;
19704
+ } else {
19705
+ cov_egnyqf63g().b[3][1]++;
19706
+ }
19707
+ var ancestors = (cov_egnyqf63g().s[16]++, context.getAncestors(node));
19708
+ cov_egnyqf63g().s[17]++;
19709
+ for (var i = (cov_egnyqf63g().s[18]++, ancestors.length - 1); i > 0; i--) {
19710
+ var _parent$init;
19711
+ var parent = (cov_egnyqf63g().s[19]++, ancestors[i]);
19712
+ cov_egnyqf63g().s[20]++;
19713
+ if (((_parent$init = parent.init) === null || _parent$init === void 0 ? void 0 : _parent$init.type) === TYPES.ARROW_FUNCTION_EXPRESSION) {
19714
+ cov_egnyqf63g().b[4][0]++;
19715
+ cov_egnyqf63g().s[21]++;
19716
+ return false;
19717
+ } else {
19718
+ cov_egnyqf63g().b[4][1]++;
19719
+ }
19720
+ cov_egnyqf63g().s[22]++;
19721
+ if (parent.type === TYPES.CALL_EXPRESSION) {
19722
+ cov_egnyqf63g().b[5][0]++;
19723
+ var isToastrFunc = (cov_egnyqf63g().s[23]++, matches(TOASTR_CALL_EXPRESSION_PATTERN, parent));
19724
+ cov_egnyqf63g().s[24]++;
19725
+ return isToastrFunc;
19726
+ } else {
19727
+ cov_egnyqf63g().b[5][1]++;
19728
+ }
19729
+ var nodeName = (cov_egnyqf63g().s[25]++, getNodeName(parent));
19730
+ cov_egnyqf63g().s[26]++;
19731
+ if (nodeName) {
19732
+ cov_egnyqf63g().b[6][0]++;
19733
+ var isInIncludedList = (cov_egnyqf63g().s[27]++, INCLUDED_KEYWORDS_REGEX.test(nodeName));
19734
+ cov_egnyqf63g().s[28]++;
19735
+ if (isInIncludedList) {
19736
+ cov_egnyqf63g().b[7][0]++;
19737
+ cov_egnyqf63g().s[29]++;
19738
+ return true;
19739
+ } else {
19740
+ cov_egnyqf63g().b[7][1]++;
19741
+ }
19742
+ var isMatchesNaturalLangRegex = (cov_egnyqf63g().s[30]++, NATURAL_LANGUAGE_REGEX.test(nodeValue));
19743
+ cov_egnyqf63g().s[31]++;
19744
+ if (!isMatchesNaturalLangRegex) {
19745
+ cov_egnyqf63g().b[8][0]++;
19746
+ cov_egnyqf63g().s[32]++;
19747
+ return false;
19748
+ } else {
19749
+ cov_egnyqf63g().b[8][1]++;
19750
+ }
19751
+ var isInExcludedList = (cov_egnyqf63g().s[33]++, EXCLUDED_KEYWORDS_REGEX.test(nodeName));
19752
+ cov_egnyqf63g().s[34]++;
19753
+ if (isInExcludedList) {
19754
+ cov_egnyqf63g().b[9][0]++;
19755
+ cov_egnyqf63g().s[35]++;
19756
+ return false;
19757
+ } else {
19758
+ cov_egnyqf63g().b[9][1]++;
19759
+ }
19760
+ cov_egnyqf63g().s[36]++;
19761
+ return true;
19762
+ } else {
19763
+ cov_egnyqf63g().b[6][1]++;
19764
+ }
19765
+ }
19766
+ cov_egnyqf63g().s[37]++;
19767
+ return false;
19768
+ };
19769
+ cov_egnyqf63g().s[38]++;
19770
+ var checkAndReport$3 = function checkAndReport(node, context) {
19771
+ cov_egnyqf63g().f[2]++;
19772
+ var nodeValue = (cov_egnyqf63g().s[39]++, node.type === TYPES.TEMPLATE_ELEMENT ? (cov_egnyqf63g().b[10][0]++, node.value.raw) : (cov_egnyqf63g().b[10][1]++, node.value));
19773
+ cov_egnyqf63g().s[40]++;
19774
+ if (!shouldReport(node, nodeValue, context)) {
19775
+ cov_egnyqf63g().b[11][0]++;
19776
+ cov_egnyqf63g().s[41]++;
19777
+ return;
19778
+ } else {
19779
+ cov_egnyqf63g().b[11][1]++;
19780
+ }
19781
+ cov_egnyqf63g().s[42]++;
19782
+ context.report({
19783
+ node: node,
19784
+ message: HARD_CODED_STRING_SHOULD_BE_LOCALIZED
19785
+ });
19786
+ };
19787
+ var hardCodedStringsShouldBeLocalized = {
19788
+ meta: {
19789
+ type: "problem",
19790
+ docs: {
19791
+ description: "Hard-coded string should be localized"
19792
+ }
19793
+ },
19794
+ create: function create(context) {
19795
+ cov_egnyqf63g().f[3]++;
19796
+ cov_egnyqf63g().s[43]++;
19797
+ return {
19798
+ Literal: function Literal(node) {
19799
+ cov_egnyqf63g().f[4]++;
19800
+ cov_egnyqf63g().s[44]++;
19801
+ checkAndReport$3(node, context);
19802
+ },
19803
+ TemplateElement: function TemplateElement(node) {
19804
+ cov_egnyqf63g().f[5]++;
19805
+ cov_egnyqf63g().s[45]++;
19806
+ checkAndReport$3(node, context);
19807
+ },
19808
+ JSXText: function JSXText(node) {
19809
+ cov_egnyqf63g().f[6]++;
19810
+ cov_egnyqf63g().s[46]++;
19811
+ checkAndReport$3(node, context);
19812
+ }
19813
+ };
19814
+ }
19815
+ };
19816
+
19817
+ function cov_1dbv2r7tr6() {
19818
+ var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/localization/no-missing-localization.js";
19819
+ var hash = "cd1228da81225da49b8d66a0863f86098040d0d6";
19820
+ var global = new Function("return this")();
19821
+ var gcv = "__coverage__";
19822
+ var coverageData = {
19823
+ path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/localization/no-missing-localization.js",
19824
+ statementMap: {
19825
+ "0": {
19826
+ start: {
19827
+ line: 10,
19828
+ column: 16
19829
+ },
19830
+ end: {
19831
+ line: 13,
19832
+ column: 1
19833
+ }
19834
+ },
19835
+ "1": {
19836
+ start: {
19837
+ line: 11,
19838
+ column: 8
19839
+ },
19840
+ end: {
19841
+ line: 11,
19842
+ column: 10
19843
+ }
19844
+ },
19845
+ "2": {
19846
+ start: {
19847
+ line: 12,
19848
+ column: 8
19849
+ },
19850
+ end: {
19851
+ line: 12,
19852
+ column: 26
19853
+ }
19854
+ },
19855
+ "3": {
19856
+ start: {
19857
+ line: 15,
19858
+ column: 21
19859
+ },
19860
+ end: {
19861
+ line: 22,
19862
+ column: 1
19863
+ }
19864
+ },
19865
+ "4": {
19866
+ start: {
19867
+ line: 16,
19868
+ column: 28
19869
+ },
19870
+ end: {
19871
+ line: 16,
19872
+ column: 57
19873
+ }
19874
+ },
19875
+ "5": {
19876
+ start: {
19877
+ line: 17,
19878
+ column: 2
19879
+ },
19880
+ end: {
19881
+ line: 17,
19882
+ column: 38
19883
+ }
19884
+ },
19885
+ "6": {
19886
+ start: {
19887
+ line: 17,
19888
+ column: 26
19889
+ },
19890
+ end: {
19891
+ line: 17,
19892
+ column: 38
19893
+ }
19894
+ },
19895
+ "7": {
19896
+ start: {
19897
+ line: 19,
19898
+ column: 22
19899
+ },
19900
+ end: {
19901
+ line: 19,
19902
+ column: 46
19903
+ }
19904
+ },
19905
+ "8": {
19906
+ start: {
19907
+ line: 21,
19908
+ column: 2
19909
+ },
19910
+ end: {
19911
+ line: 21,
19912
+ column: 80
19913
+ }
19914
+ },
19915
+ "9": {
19916
+ start: {
19917
+ line: 24,
19918
+ column: 23
19919
+ },
19920
+ end: {
19921
+ line: 50,
19922
+ column: 1
19923
+ }
19924
+ },
19925
+ "10": {
19926
+ start: {
19927
+ line: 25,
19928
+ column: 22
19929
+ },
19930
+ end: {
19931
+ line: 25,
19932
+ column: 77
19933
+ }
19934
+ },
19935
+ "11": {
19936
+ start: {
19937
+ line: 26,
19938
+ column: 20
19939
+ },
19940
+ end: {
19941
+ line: 26,
19942
+ column: 71
19943
+ }
19944
+ },
19945
+ "12": {
19946
+ start: {
19947
+ line: 27,
19948
+ column: 2
19949
+ },
19950
+ end: {
19951
+ line: 27,
19952
+ column: 39
19953
+ }
19954
+ },
19955
+ "13": {
19956
+ start: {
19957
+ line: 27,
19958
+ column: 32
19959
+ },
19960
+ end: {
19961
+ line: 27,
19962
+ column: 39
19963
+ }
19964
+ },
19965
+ "14": {
19966
+ start: {
19967
+ line: 29,
19968
+ column: 2
19969
+ },
19970
+ end: {
19971
+ line: 29,
19972
+ column: 41
19973
+ }
19974
+ },
19975
+ "15": {
19976
+ start: {
19977
+ line: 30,
19978
+ column: 2
19979
+ },
19980
+ end: {
19981
+ line: 30,
19982
+ column: 37
19983
+ }
19984
+ },
19985
+ "16": {
19986
+ start: {
19987
+ line: 33,
19988
+ column: 2
19989
+ },
19990
+ end: {
19991
+ line: 37,
19992
+ column: 5
19993
+ }
19994
+ },
19995
+ "17": {
19996
+ start: {
19997
+ line: 39,
19998
+ column: 27
19999
+ },
20000
+ end: {
20001
+ line: 39,
20002
+ column: 42
20003
+ }
20004
+ },
20005
+ "18": {
20006
+ start: {
20007
+ line: 40,
20008
+ column: 22
20009
+ },
20010
+ end: {
20011
+ line: 42,
20012
+ column: 3
20013
+ }
20014
+ },
20015
+ "19": {
20016
+ start: {
20017
+ line: 41,
20018
+ column: 4
20019
+ },
20020
+ end: {
20021
+ line: 41,
20022
+ column: 62
20023
+ }
20024
+ },
20025
+ "20": {
20026
+ start: {
20027
+ line: 44,
20028
+ column: 2
20029
+ },
20030
+ end: {
20031
+ line: 49,
20032
+ column: 3
20033
+ }
20034
+ },
20035
+ "21": {
20036
+ start: {
20037
+ line: 45,
20038
+ column: 4
20039
+ },
20040
+ end: {
20041
+ line: 48,
20042
+ column: 7
20043
+ }
20044
+ },
20045
+ "22": {
20046
+ start: {
20047
+ line: 52,
20048
+ column: 22
20049
+ },
20050
+ end: {
20051
+ line: 53,
20052
+ column: 55
20053
+ }
20054
+ },
20055
+ "23": {
20056
+ start: {
20057
+ line: 53,
20058
+ column: 2
20059
+ },
20060
+ end: {
20061
+ line: 53,
20062
+ column: 55
20063
+ }
20064
+ },
20065
+ "24": {
20066
+ start: {
20067
+ line: 55,
20068
+ column: 21
20069
+ },
20070
+ end: {
20071
+ line: 60,
20072
+ column: 8
20073
+ }
20074
+ },
20075
+ "25": {
20076
+ start: {
20077
+ line: 56,
20078
+ column: 2
20079
+ },
20080
+ end: {
20081
+ line: 60,
20082
+ column: 8
20083
+ }
20084
+ },
20085
+ "26": {
20086
+ start: {
20087
+ line: 57,
20088
+ column: 4
20089
+ },
20090
+ end: {
20091
+ line: 57,
20092
+ column: 40
20093
+ }
20094
+ },
20095
+ "27": {
20096
+ start: {
20097
+ line: 59,
20098
+ column: 4
20099
+ },
20100
+ end: {
20101
+ line: 59,
20102
+ column: 15
20103
+ }
20104
+ },
20105
+ "28": {
20106
+ start: {
20107
+ line: 62,
20108
+ column: 27
20109
+ },
20110
+ end: {
20111
+ line: 63,
20112
+ column: 60
20113
+ }
20114
+ },
20115
+ "29": {
20116
+ start: {
20117
+ line: 63,
20118
+ column: 2
20119
+ },
20120
+ end: {
20121
+ line: 63,
20122
+ column: 60
20123
+ }
20124
+ },
20125
+ "30": {
20126
+ start: {
20127
+ line: 73,
20128
+ column: 22
20129
+ },
20130
+ end: {
20131
+ line: 109,
20132
+ column: 3
20133
+ }
20134
+ },
20135
+ "31": {
20136
+ start: {
20137
+ line: 75,
20138
+ column: 6
20139
+ },
20140
+ end: {
20141
+ line: 75,
20142
+ column: 64
20143
+ }
20144
+ },
20145
+ "32": {
20146
+ start: {
20147
+ line: 75,
20148
+ column: 57
20149
+ },
20150
+ end: {
20151
+ line: 75,
20152
+ column: 64
20153
+ }
20154
+ },
20155
+ "33": {
20156
+ start: {
20157
+ line: 77,
20158
+ column: 21
20159
+ },
20160
+ end: {
20161
+ line: 77,
20162
+ column: 23
20163
+ }
20164
+ },
20165
+ "34": {
20166
+ start: {
20167
+ line: 78,
20168
+ column: 6
20169
+ },
20170
+ end: {
20171
+ line: 87,
20172
+ column: 7
20173
+ }
20174
+ },
20175
+ "35": {
20176
+ start: {
20177
+ line: 79,
20178
+ column: 8
20179
+ },
20180
+ end: {
20181
+ line: 79,
20182
+ column: 70
20183
+ }
20184
+ },
20185
+ "36": {
20186
+ start: {
20187
+ line: 80,
20188
+ column: 8
20189
+ },
20190
+ end: {
20191
+ line: 80,
20192
+ column: 74
20193
+ }
20194
+ },
20195
+ "37": {
20196
+ start: {
20197
+ line: 81,
20198
+ column: 13
20199
+ },
20200
+ end: {
20201
+ line: 87,
20202
+ column: 7
20203
+ }
20204
+ },
20205
+ "38": {
20206
+ start: {
20207
+ line: 82,
20208
+ column: 8
20209
+ },
20210
+ end: {
20211
+ line: 86,
20212
+ column: 9
20213
+ }
20214
+ },
20215
+ "39": {
20216
+ start: {
20217
+ line: 83,
20218
+ column: 10
20219
+ },
20220
+ end: {
20221
+ line: 83,
20222
+ column: 27
20223
+ }
20224
+ },
20225
+ "40": {
20226
+ start: {
20227
+ line: 84,
20228
+ column: 15
20229
+ },
20230
+ end: {
20231
+ line: 86,
20232
+ column: 9
20233
+ }
20234
+ },
20235
+ "41": {
20236
+ start: {
20237
+ line: 85,
20238
+ column: 10
20239
+ },
20240
+ end: {
20241
+ line: 85,
20242
+ column: 27
20243
+ }
20244
+ },
20245
+ "42": {
20246
+ start: {
20247
+ line: 89,
20248
+ column: 6
20249
+ },
20250
+ end: {
20251
+ line: 89,
20252
+ column: 78
20253
+ }
20254
+ },
20255
+ "43": {
20256
+ start: {
20257
+ line: 92,
20258
+ column: 6
20259
+ },
20260
+ end: {
20261
+ line: 92,
20262
+ column: 45
20263
+ }
20264
+ },
20265
+ "44": {
20266
+ start: {
20267
+ line: 92,
20268
+ column: 38
20269
+ },
20270
+ end: {
20271
+ line: 92,
20272
+ column: 45
20273
+ }
20274
+ },
20275
+ "45": {
20276
+ start: {
20277
+ line: 94,
20278
+ column: 22
20279
+ },
20280
+ end: {
20281
+ line: 94,
20282
+ column: 52
20283
+ }
20284
+ },
20285
+ "46": {
20286
+ start: {
20287
+ line: 95,
20288
+ column: 6
20289
+ },
20290
+ end: {
20291
+ line: 95,
20292
+ column: 27
20293
+ }
20294
+ },
20295
+ "47": {
20296
+ start: {
20297
+ line: 95,
20298
+ column: 20
20299
+ },
20300
+ end: {
20301
+ line: 95,
20302
+ column: 27
20303
+ }
20304
+ },
20305
+ "48": {
20306
+ start: {
20307
+ line: 97,
20308
+ column: 22
20309
+ },
20310
+ end: {
20311
+ line: 97,
20312
+ column: 35
20313
+ }
20314
+ },
20315
+ "49": {
20316
+ start: {
20317
+ line: 98,
20318
+ column: 6
18888
20319
  },
18889
20320
  end: {
18890
20321
  line: 98,
@@ -22338,7 +23769,7 @@
22338
23769
  cov_dqdsf959y();
22339
23770
 
22340
23771
  // const { order } = useSampleStore();
22341
- var ZUSTAND_HOOK_USAGE_PATTERN$1 = (cov_dqdsf959y().s[0]++, {
23772
+ var ZUSTAND_HOOK_USAGE_PATTERN$2 = (cov_dqdsf959y().s[0]++, {
22342
23773
  kind: "const",
22343
23774
  declarations: [{
22344
23775
  type: TYPES.VARIABLE_DECLARATOR,
@@ -22536,7 +23967,7 @@
22536
23967
  VariableDeclaration: function VariableDeclaration(node) {
22537
23968
  cov_1vp1w7579e().f[1]++;
22538
23969
  cov_1vp1w7579e().s[1]++;
22539
- if (!matches(ZUSTAND_HOOK_USAGE_PATTERN$1, node)) {
23970
+ if (!matches(ZUSTAND_HOOK_USAGE_PATTERN$2, node)) {
22540
23971
  cov_1vp1w7579e().b[0][0]++;
22541
23972
  cov_1vp1w7579e().s[2]++;
22542
23973
  return;
@@ -51722,6 +53153,358 @@
51722
53153
  }
51723
53154
  };
51724
53155
 
53156
+ function cov_1jp52d3yvf() {
53157
+ var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/use-zustand-pick-transformer/constants.js";
53158
+ var hash = "76d42115d5024978416123fac78976ac5bf36a4f";
53159
+ var global = new Function("return this")();
53160
+ var gcv = "__coverage__";
53161
+ var coverageData = {
53162
+ path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/use-zustand-pick-transformer/constants.js",
53163
+ statementMap: {
53164
+ "0": {
53165
+ start: {
53166
+ line: 8,
53167
+ column: 21
53168
+ },
53169
+ end: {
53170
+ line: 15,
53171
+ column: 1
53172
+ }
53173
+ },
53174
+ "1": {
53175
+ start: {
53176
+ line: 17,
53177
+ column: 22
53178
+ },
53179
+ end: {
53180
+ line: 22,
53181
+ column: 1
53182
+ }
53183
+ },
53184
+ "2": {
53185
+ start: {
53186
+ line: 26,
53187
+ column: 31
53188
+ },
53189
+ end: {
53190
+ line: 30,
53191
+ column: 1
53192
+ }
53193
+ },
53194
+ "3": {
53195
+ start: {
53196
+ line: 32,
53197
+ column: 42
53198
+ },
53199
+ end: {
53200
+ line: 48,
53201
+ column: 1
53202
+ }
53203
+ },
53204
+ "4": {
53205
+ start: {
53206
+ line: 44,
53207
+ column: 10
53208
+ },
53209
+ end: {
53210
+ line: 44,
53211
+ column: 69
53212
+ }
53213
+ }
53214
+ },
53215
+ fnMap: {
53216
+ "0": {
53217
+ name: "(anonymous_0)",
53218
+ decl: {
53219
+ start: {
53220
+ line: 43,
53221
+ column: 19
53222
+ },
53223
+ end: {
53224
+ line: 43,
53225
+ column: 20
53226
+ }
53227
+ },
53228
+ loc: {
53229
+ start: {
53230
+ line: 44,
53231
+ column: 10
53232
+ },
53233
+ end: {
53234
+ line: 44,
53235
+ column: 69
53236
+ }
53237
+ },
53238
+ line: 44
53239
+ }
53240
+ },
53241
+ branchMap: {},
53242
+ s: {
53243
+ "0": 0,
53244
+ "1": 0,
53245
+ "2": 0,
53246
+ "3": 0,
53247
+ "4": 0
53248
+ },
53249
+ f: {
53250
+ "0": 0
53251
+ },
53252
+ b: {},
53253
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
53254
+ hash: "76d42115d5024978416123fac78976ac5bf36a4f"
53255
+ };
53256
+ var coverage = global[gcv] || (global[gcv] = {});
53257
+ if (!coverage[path] || coverage[path].hash !== hash) {
53258
+ coverage[path] = coverageData;
53259
+ }
53260
+ var actualCoverage = coverage[path];
53261
+ {
53262
+ // @ts-ignore
53263
+ cov_1jp52d3yvf = function () {
53264
+ return actualCoverage;
53265
+ };
53266
+ }
53267
+ return actualCoverage;
53268
+ }
53269
+ cov_1jp52d3yvf();
53270
+
53271
+ // const { order, user } = useSampleStore(pick(["order", "user"]), shallow);
53272
+ // const { name, email } = useUserStore(state => pick(['name', 'email'], state.user), shallow);
53273
+ var PICK_PATTERN$2 = (cov_1jp52d3yvf().s[0]++, {
53274
+ type: TYPES.CALL_EXPRESSION,
53275
+ callee: {
53276
+ type: TYPES.IDENTIFIER,
53277
+ name: "pick"
53278
+ },
53279
+ optional: false
53280
+ });
53281
+ var BODY_PATTERNS$1 = (cov_1jp52d3yvf().s[1]++, [{
53282
+ type: ramda.includes(ramda.__, [TYPES.OBJECT_EXPRESSION, TYPES.ARRAY_EXPRESSION])
53283
+ }, PICK_PATTERN$2]);
53284
+
53285
+ // const { order, user } = useSampleStore((state) => ({ order: state.order, user: state.user }), shallow);
53286
+ // const [ order, user ] = useSampleStore((state) => [state.order, state.user], shallow);
53287
+ var ARROW_FUNCTION_PATTERN$1 = (cov_1jp52d3yvf().s[2]++, {
53288
+ type: TYPES.ARROW_FUNCTION_EXPRESSION,
53289
+ params: [{
53290
+ type: TYPES.IDENTIFIER
53291
+ }],
53292
+ body: matchesAny(BODY_PATTERNS$1)
53293
+ });
53294
+ var ZUSTAND_HOOK_USAGE_PATTERN$1 = (cov_1jp52d3yvf().s[3]++, {
53295
+ kind: "const",
53296
+ declarations: [{
53297
+ type: TYPES.VARIABLE_DECLARATOR,
53298
+ init: {
53299
+ type: TYPES.CALL_EXPRESSION,
53300
+ callee: {
53301
+ type: TYPES.IDENTIFIER,
53302
+ name: ramda.test(/use[a-zA-z0-9].+Store/)
53303
+ },
53304
+ arguments: function _arguments(args) {
53305
+ cov_1jp52d3yvf().f[0]++;
53306
+ cov_1jp52d3yvf().s[4]++;
53307
+ return matchesAny([PICK_PATTERN$2, ARROW_FUNCTION_PATTERN$1], args[0]);
53308
+ }
53309
+ }
53310
+ }]
53311
+ });
53312
+
53313
+ function cov_itsc3dskb() {
53314
+ var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/use-zustand-pick-transformer/index.js";
53315
+ var hash = "ed2abc61adb7b45e31eaa12493460794538eb40b";
53316
+ var global = new Function("return this")();
53317
+ var gcv = "__coverage__";
53318
+ var coverageData = {
53319
+ path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/use-zustand-pick-transformer/index.js",
53320
+ statementMap: {
53321
+ "0": {
53322
+ start: {
53323
+ line: 15,
53324
+ column: 22
53325
+ },
53326
+ end: {
53327
+ line: 21,
53328
+ column: 3
53329
+ }
53330
+ },
53331
+ "1": {
53332
+ start: {
53333
+ line: 17,
53334
+ column: 6
53335
+ },
53336
+ end: {
53337
+ line: 17,
53338
+ column: 61
53339
+ }
53340
+ },
53341
+ "2": {
53342
+ start: {
53343
+ line: 17,
53344
+ column: 54
53345
+ },
53346
+ end: {
53347
+ line: 17,
53348
+ column: 61
53349
+ }
53350
+ },
53351
+ "3": {
53352
+ start: {
53353
+ line: 19,
53354
+ column: 6
53355
+ },
53356
+ end: {
53357
+ line: 19,
53358
+ column: 70
53359
+ }
53360
+ }
53361
+ },
53362
+ fnMap: {
53363
+ "0": {
53364
+ name: "(anonymous_0)",
53365
+ decl: {
53366
+ start: {
53367
+ line: 15,
53368
+ column: 10
53369
+ },
53370
+ end: {
53371
+ line: 15,
53372
+ column: 11
53373
+ }
53374
+ },
53375
+ loc: {
53376
+ start: {
53377
+ line: 15,
53378
+ column: 22
53379
+ },
53380
+ end: {
53381
+ line: 21,
53382
+ column: 3
53383
+ }
53384
+ },
53385
+ line: 15
53386
+ },
53387
+ "1": {
53388
+ name: "(anonymous_1)",
53389
+ decl: {
53390
+ start: {
53391
+ line: 16,
53392
+ column: 4
53393
+ },
53394
+ end: {
53395
+ line: 16,
53396
+ column: 5
53397
+ }
53398
+ },
53399
+ loc: {
53400
+ start: {
53401
+ line: 16,
53402
+ column: 30
53403
+ },
53404
+ end: {
53405
+ line: 20,
53406
+ column: 5
53407
+ }
53408
+ },
53409
+ line: 16
53410
+ }
53411
+ },
53412
+ branchMap: {
53413
+ "0": {
53414
+ loc: {
53415
+ start: {
53416
+ line: 17,
53417
+ column: 6
53418
+ },
53419
+ end: {
53420
+ line: 17,
53421
+ column: 61
53422
+ }
53423
+ },
53424
+ type: "if",
53425
+ locations: [{
53426
+ start: {
53427
+ line: 17,
53428
+ column: 6
53429
+ },
53430
+ end: {
53431
+ line: 17,
53432
+ column: 61
53433
+ }
53434
+ }, {
53435
+ start: {
53436
+ line: undefined,
53437
+ column: undefined
53438
+ },
53439
+ end: {
53440
+ line: undefined,
53441
+ column: undefined
53442
+ }
53443
+ }],
53444
+ line: 17
53445
+ }
53446
+ },
53447
+ s: {
53448
+ "0": 0,
53449
+ "1": 0,
53450
+ "2": 0,
53451
+ "3": 0
53452
+ },
53453
+ f: {
53454
+ "0": 0,
53455
+ "1": 0
53456
+ },
53457
+ b: {
53458
+ "0": [0, 0]
53459
+ },
53460
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
53461
+ hash: "ed2abc61adb7b45e31eaa12493460794538eb40b"
53462
+ };
53463
+ var coverage = global[gcv] || (global[gcv] = {});
53464
+ if (!coverage[path] || coverage[path].hash !== hash) {
53465
+ coverage[path] = coverageData;
53466
+ }
53467
+ var actualCoverage = coverage[path];
53468
+ {
53469
+ // @ts-ignore
53470
+ cov_itsc3dskb = function () {
53471
+ return actualCoverage;
53472
+ };
53473
+ }
53474
+ return actualCoverage;
53475
+ }
53476
+ cov_itsc3dskb();
53477
+ var useZustandPickTransformer = {
53478
+ meta: {
53479
+ type: "error",
53480
+ docs: {
53481
+ description: "Enforce the use of zustand-pick syntax from babel-preset-neeto."
53482
+ }
53483
+ },
53484
+ create: function create(context) {
53485
+ cov_itsc3dskb().f[0]++;
53486
+ cov_itsc3dskb().s[0]++;
53487
+ return {
53488
+ VariableDeclaration: function VariableDeclaration(node) {
53489
+ cov_itsc3dskb().f[1]++;
53490
+ cov_itsc3dskb().s[1]++;
53491
+ if (!matches(ZUSTAND_HOOK_USAGE_PATTERN$1, node)) {
53492
+ cov_itsc3dskb().b[0][0]++;
53493
+ cov_itsc3dskb().s[2]++;
53494
+ return;
53495
+ } else {
53496
+ cov_itsc3dskb().b[0][1]++;
53497
+ }
53498
+ cov_itsc3dskb().s[3]++;
53499
+ context.report({
53500
+ node: node,
53501
+ message: USE_ZUSTAND_PICK_TRANSFORMER
53502
+ });
53503
+ }
53504
+ };
53505
+ }
53506
+ };
53507
+
51725
53508
  function cov_1qf21ie77k() {
51726
53509
  var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/webpack-aliases-and-jsconfig-paths-should-be-in-sync.js";
51727
53510
  var hash = "c6aac8704962d0f5cd2f65142b8c06e3df87d522";
@@ -54225,7 +56008,6 @@
54225
56008
  cov_1cnpbb28xs();
54226
56009
  var index = {
54227
56010
  rules: {
54228
- "use-neeto-in-strings": useNeetoInStrings,
54229
56011
  "api-connector-name-should-match-filename": apiConnectorNameShouldMatchFilename,
54230
56012
  "api-connector-should-use-default-export": apiConnectorShouldUseDefaultExport,
54231
56013
  "combine-multiple-independent-awaits": combineMultipleIndependentAwaits,
@@ -54233,6 +56015,7 @@
54233
56015
  "ensure-zustand-stores-are-type-annotated": ensureZustandStoresAreTypeAnnotated,
54234
56016
  "files-inside-react-query-folder-should-end-with-api": filesInsideReactQueryFolderShouldEndWithApi,
54235
56017
  "file-name-and-export-name-standards": fileNameAndExportNameStandards,
56018
+ "hard-coded-strings-should-be-localized": hardCodedStringsShouldBeLocalized,
54236
56019
  "minimize-zustand-store-access-scope": minimizeZustandStoreAccessScope,
54237
56020
  "neetocommons-tips": neetocommonsTips,
54238
56021
  "no-blacklisted-imports": noBlacklistedImports,
@@ -54261,6 +56044,7 @@
54261
56044
  "use-components-children-prop-in-trans": useComponentsChildrenPropInTrans,
54262
56045
  "use-i18next-plurals": useI18nextPlurals,
54263
56046
  "use-inline-svg-for-render": useInlineSvgForRender,
56047
+ "use-neeto-in-strings": useNeetoInStrings,
54264
56048
  "use-neetoui-classes": useNeetouiClasses,
54265
56049
  "use-pluralize-package": usePluralizePackage,
54266
56050
  "use-react-query-for-managing-remote-data": useReactQueryForManagingRemoteData,
@@ -54271,7 +56055,8 @@
54271
56055
  "use-zustand-for-global-state-management": useZustandForGlobalStateManagement,
54272
56056
  "webpack-aliases-and-jsconfig-paths-should-be-in-sync": webpackAliasesAndJsconfigPathsShouldBeInSync,
54273
56057
  "zustand-recommend-comparator-function-usage": zustandRecommendComparatorFunctionUsage,
54274
- "zustand-use-prop-to-pick-single-item": zustandUsePropToPickSingleItem
56058
+ "zustand-use-prop-to-pick-single-item": zustandUsePropToPickSingleItem,
56059
+ "use-zustand-pick-transformer": useZustandPickTransformer
54275
56060
  },
54276
56061
  configs: {
54277
56062
  recommended: recommended