@bigbinary/eslint-plugin-neeto 1.0.37 → 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 +2666 -723
  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 = "38acbed29cdac2bf136241264bb2e574fd4a5009";
836
+ var hash = "53bd781e1327ef447c0ea824b239c18890b59671";
836
837
  var global = new Function("return this")();
837
838
  var gcv = "__coverage__";
838
839
  var coverageData = {
@@ -894,19 +895,59 @@
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
  }
911
+ },
912
+ "7": {
913
+ start: {
914
+ line: 69,
915
+ column: 32
916
+ },
917
+ end: {
918
+ line: 69,
919
+ column: 53
920
+ }
921
+ },
922
+ "8": {
923
+ start: {
924
+ line: 71,
925
+ column: 35
926
+ },
927
+ end: {
928
+ line: 71,
929
+ column: 49
930
+ }
931
+ },
932
+ "9": {
933
+ start: {
934
+ line: 73,
935
+ column: 33
936
+ },
937
+ end: {
938
+ line: 73,
939
+ column: 56
940
+ }
941
+ },
942
+ "10": {
943
+ start: {
944
+ line: 75,
945
+ column: 32
946
+ },
947
+ end: {
948
+ line: 75,
949
+ column: 46
950
+ }
910
951
  }
911
952
  },
912
953
  fnMap: {},
@@ -918,12 +959,16 @@
918
959
  "3": 0,
919
960
  "4": 0,
920
961
  "5": 0,
921
- "6": 0
962
+ "6": 0,
963
+ "7": 0,
964
+ "8": 0,
965
+ "9": 0,
966
+ "10": 0
922
967
  },
923
968
  f: {},
924
969
  b: {},
925
970
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
926
- hash: "38acbed29cdac2bf136241264bb2e574fd4a5009"
971
+ hash: "53bd781e1327ef447c0ea824b239c18890b59671"
927
972
  };
928
973
  var coverage = global[gcv] || (global[gcv] = {});
929
974
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -947,6 +992,7 @@
947
992
  var TYPES = (cov_2kvndqkrrx().s[5]++, {
948
993
  ARRAY_EXPRESSION: "ArrayExpression",
949
994
  ARROW_FUNCTION_EXPRESSION: "ArrowFunctionExpression",
995
+ ASSIGNMENT_EXPRESSION: "AssignmentExpression",
950
996
  ASSIGNMENT_PATTERN: "AssignmentPattern",
951
997
  AWAIT_EXPRESSION: "AwaitExpression",
952
998
  BINARY_EXPRESSION: "BinaryExpression",
@@ -969,6 +1015,7 @@
969
1015
  JSX_EXPRESSION_CONTAINER: "JSXExpressionContainer",
970
1016
  JSX_IDENTIFIER: "JSXIdentifier",
971
1017
  JSX_OPENING_ELEMENT: "JSXOpeningElement",
1018
+ JSX_TEXT: "JSXText",
972
1019
  LITERAL: "Literal",
973
1020
  LOGICAL_EXPRESSION: "LogicalExpression",
974
1021
  MEMBER_EXPRESSION: "MemberExpression",
@@ -995,6 +1042,10 @@
995
1042
  type: TYPES.IMPORT_SPECIFIER
996
1043
  }]
997
1044
  });
1045
+ var CAMEL_CASE_REGEX = (cov_2kvndqkrrx().s[7]++, /^[a-z][A-Za-z0-9]*$/);
1046
+ var CONSTANT_CASE_REGEX = (cov_2kvndqkrrx().s[8]++, /^[A-Z0-9_]+$/);
1047
+ var PASCAL_CASE_REGEX = (cov_2kvndqkrrx().s[9]++, /^(?:[A-Z][a-z0-9]+)+$/);
1048
+ var SNAKE_CASE_REGEX = (cov_2kvndqkrrx().s[10]++, /^[a-z0-9_]+$/);
998
1049
 
999
1050
  function _typeof(obj) {
1000
1051
  "@babel/helpers - typeof";
@@ -3538,7 +3589,7 @@
3538
3589
 
3539
3590
  function cov_26237ygvis() {
3540
3591
  var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/utils/messages.js";
3541
- var hash = "63f64d98ea236f4c737f987542a6bf761941f20e";
3592
+ var hash = "9d85be1a1db801f1cf8f361dc88ad205dcf5c718";
3542
3593
  var global = new Function("return this")();
3543
3594
  var gcv = "__coverage__";
3544
3595
  var coverageData = {
@@ -4223,6 +4274,26 @@
4223
4274
  line: 174,
4224
4275
  column: 132
4225
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
+ }
4226
4297
  }
4227
4298
  },
4228
4299
  fnMap: {
@@ -4560,7 +4631,9 @@
4560
4631
  "64": 0,
4561
4632
  "65": 0,
4562
4633
  "66": 0,
4563
- "67": 0
4634
+ "67": 0,
4635
+ "68": 0,
4636
+ "69": 0
4564
4637
  },
4565
4638
  f: {
4566
4639
  "0": 0,
@@ -4577,7 +4650,7 @@
4577
4650
  },
4578
4651
  b: {},
4579
4652
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
4580
- hash: "63f64d98ea236f4c737f987542a6bf761941f20e"
4653
+ hash: "9d85be1a1db801f1cf8f361dc88ad205dcf5c718"
4581
4654
  };
4582
4655
  var coverage = global[gcv] || (global[gcv] = {});
4583
4656
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -4707,6 +4780,8 @@
4707
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");
4708
4781
  var USE_PLURALIZE_PACKAGE = (cov_26237ygvis().s[66]++, "Use `pluralize` package for dynamic values. Refer: https://bit.ly/i18next-plurals");
4709
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");
4710
4785
 
4711
4786
  function cov_22o2x8aeul() {
4712
4787
  var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/api-connector-name-should-match-filename.js";
@@ -5457,7 +5532,7 @@
5457
5532
  }
5458
5533
  cov_1r7objfoj3();
5459
5534
  cov_1r7objfoj3().s[0]++;
5460
- var checkAndReport$4 = function checkAndReport(context, node) {
5535
+ var checkAndReport$5 = function checkAndReport(context, node) {
5461
5536
  cov_1r7objfoj3().f[0]++;
5462
5537
  cov_1r7objfoj3().s[1]++;
5463
5538
  if (!isInsideApisDirectory(context)) {
@@ -5487,7 +5562,7 @@
5487
5562
  ExportNamedDeclaration: function ExportNamedDeclaration(node) {
5488
5563
  cov_1r7objfoj3().f[2]++;
5489
5564
  cov_1r7objfoj3().s[5]++;
5490
- checkAndReport$4(context, node);
5565
+ checkAndReport$5(context, node);
5491
5566
  },
5492
5567
  ExportDefaultDeclaration: function ExportDefaultDeclaration(node) {
5493
5568
  cov_1r7objfoj3().f[3]++;
@@ -5500,7 +5575,7 @@
5500
5575
  cov_1r7objfoj3().b[1][1]++;
5501
5576
  }
5502
5577
  cov_1r7objfoj3().s[8]++;
5503
- checkAndReport$4(context, node);
5578
+ checkAndReport$5(context, node);
5504
5579
  }
5505
5580
  };
5506
5581
  }
@@ -7409,7 +7484,7 @@
7409
7484
  });
7410
7485
  };
7411
7486
  cov_uo36o8amo().s[39]++;
7412
- var checkAndReport$3 = function checkAndReport(context, node) {
7487
+ var checkAndReport$4 = function checkAndReport(context, node) {
7413
7488
  cov_uo36o8amo().f[9]++;
7414
7489
  cov_uo36o8amo().s[40]++;
7415
7490
  if (!node.async) {
@@ -7451,19 +7526,19 @@
7451
7526
  ArrowFunctionExpression: function ArrowFunctionExpression(node) {
7452
7527
  cov_uo36o8amo().f[12]++;
7453
7528
  cov_uo36o8amo().s[48]++;
7454
- checkAndReport$3(context, node);
7529
+ checkAndReport$4(context, node);
7455
7530
  },
7456
7531
  // const sum = function (a, b) { return a + b };
7457
7532
  FunctionExpression: function FunctionExpression(node) {
7458
7533
  cov_uo36o8amo().f[13]++;
7459
7534
  cov_uo36o8amo().s[49]++;
7460
- checkAndReport$3(context, node);
7535
+ checkAndReport$4(context, node);
7461
7536
  },
7462
7537
  // function sum (a, b) { return a + b };
7463
7538
  FunctionDeclaration: function FunctionDeclaration(node) {
7464
7539
  cov_uo36o8amo().f[14]++;
7465
7540
  cov_uo36o8amo().s[50]++;
7466
- checkAndReport$3(context, node);
7541
+ checkAndReport$4(context, node);
7467
7542
  }
7468
7543
  };
7469
7544
  }
@@ -14332,7 +14407,7 @@
14332
14407
 
14333
14408
  function cov_25a29cwf40() {
14334
14409
  var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/file-name-and-export-name-standards/constants.js";
14335
- var hash = "94981249360b5f07b17f3c60810c8da7e8e067e2";
14410
+ var hash = "d1ef70007eceffc6fb70eb4ca3ed515202a3dc31";
14336
14411
  var global = new Function("return this")();
14337
14412
  var gcv = "__coverage__";
14338
14413
  var coverageData = {
@@ -14341,50 +14416,10 @@
14341
14416
  "0": {
14342
14417
  start: {
14343
14418
  line: 5,
14344
- column: 32
14345
- },
14346
- end: {
14347
- line: 5,
14348
- column: 53
14349
- }
14350
- },
14351
- "1": {
14352
- start: {
14353
- line: 7,
14354
- column: 35
14355
- },
14356
- end: {
14357
- line: 7,
14358
- column: 49
14359
- }
14360
- },
14361
- "2": {
14362
- start: {
14363
- line: 9,
14364
- column: 33
14365
- },
14366
- end: {
14367
- line: 9,
14368
- column: 54
14369
- }
14370
- },
14371
- "3": {
14372
- start: {
14373
- line: 11,
14374
- column: 32
14375
- },
14376
- end: {
14377
- line: 11,
14378
- column: 46
14379
- }
14380
- },
14381
- "4": {
14382
- start: {
14383
- line: 13,
14384
14419
  column: 30
14385
14420
  },
14386
14421
  end: {
14387
- line: 18,
14422
+ line: 10,
14388
14423
  column: 1
14389
14424
  }
14390
14425
  }
@@ -14392,16 +14427,12 @@
14392
14427
  fnMap: {},
14393
14428
  branchMap: {},
14394
14429
  s: {
14395
- "0": 0,
14396
- "1": 0,
14397
- "2": 0,
14398
- "3": 0,
14399
- "4": 0
14430
+ "0": 0
14400
14431
  },
14401
14432
  f: {},
14402
14433
  b: {},
14403
14434
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
14404
- hash: "94981249360b5f07b17f3c60810c8da7e8e067e2"
14435
+ hash: "d1ef70007eceffc6fb70eb4ca3ed515202a3dc31"
14405
14436
  };
14406
14437
  var coverage = global[gcv] || (global[gcv] = {});
14407
14438
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -14417,11 +14448,7 @@
14417
14448
  return actualCoverage;
14418
14449
  }
14419
14450
  cov_25a29cwf40();
14420
- var CAMEL_CASE_REGEX$1 = (cov_25a29cwf40().s[0]++, /^[a-z][A-Za-z0-9]*$/);
14421
- var CONSTANT_CASE_REGEX = (cov_25a29cwf40().s[1]++, /^[A-Z0-9_]+$/);
14422
- var PASCAL_CASE_REGEX$2 = (cov_25a29cwf40().s[2]++, /^[A-Z][A-Za-z0-9]*$/);
14423
- var SNAKE_CASE_REGEX$1 = (cov_25a29cwf40().s[3]++, /^[a-z0-9_]+$/);
14424
- var EXPORT_PATTERN = (cov_25a29cwf40().s[4]++, {
14451
+ var EXPORT_PATTERN = (cov_25a29cwf40().s[0]++, {
14425
14452
  type: ramda.includes(ramda.__, [TYPES.EXPORT_DEFAULT_DECLARATION, TYPES.EXPORT_NAMED_DECLARATION])
14426
14453
  });
14427
14454
 
@@ -16937,10 +16964,10 @@
16937
16964
  cov_qfcdmmo7c().b[2][1]++;
16938
16965
  }
16939
16966
  var regexes = (cov_qfcdmmo7c().s[9]++, {
16940
- camelCase: CAMEL_CASE_REGEX$1,
16967
+ camelCase: CAMEL_CASE_REGEX,
16941
16968
  CONSTANT_CASE: CONSTANT_CASE_REGEX,
16942
- PascalCase: PASCAL_CASE_REGEX$2,
16943
- snake_case: SNAKE_CASE_REGEX$1
16969
+ PascalCase: PASCAL_CASE_REGEX,
16970
+ snake_case: SNAKE_CASE_REGEX
16944
16971
  });
16945
16972
  cov_qfcdmmo7c().s[10]++;
16946
16973
  return (_ref = (cov_qfcdmmo7c().b[3][0]++, (_regexes$caseStyle = regexes[caseStyle]) === null || _regexes$caseStyle === void 0 ? void 0 : _regexes$caseStyle.test(text))) !== null && _ref !== void 0 ? _ref : (cov_qfcdmmo7c().b[3][1]++, true);
@@ -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 = "f14905a56e76c6cfcb1d408e7585da5d4a89883c";
17962
+ var hash = "325f820598b43aef527c75520ffec8d9e4ab2cfd";
17936
17963
  var global = new Function("return this")();
17937
17964
  var gcv = "__coverage__";
17938
17965
  var coverageData = {
@@ -17941,182 +17968,222 @@
17941
17968
  "0": {
17942
17969
  start: {
17943
17970
  line: 7,
17944
- column: 26
17971
+ column: 42
17945
17972
  },
17946
17973
  end: {
17947
- line: 7,
17948
- column: 47
17974
+ line: 19,
17975
+ column: 1
17949
17976
  }
17950
17977
  },
17951
17978
  "1": {
17952
17979
  start: {
17953
- line: 9,
17954
- column: 42
17980
+ line: 21,
17981
+ column: 28
17955
17982
  },
17956
17983
  end: {
17957
- line: 21,
17984
+ line: 24,
17958
17985
  column: 1
17959
17986
  }
17960
17987
  },
17961
17988
  "2": {
17962
17989
  start: {
17963
- line: 23,
17964
- column: 28
17990
+ line: 27,
17991
+ column: 34
17965
17992
  },
17966
17993
  end: {
17967
- line: 26,
17994
+ line: 33,
17968
17995
  column: 1
17969
17996
  }
17970
17997
  },
17971
17998
  "3": {
17972
17999
  start: {
17973
- line: 29,
17974
- column: 34
18000
+ line: 36,
18001
+ column: 52
17975
18002
  },
17976
18003
  end: {
17977
- line: 35,
18004
+ line: 49,
17978
18005
  column: 1
17979
18006
  }
17980
18007
  },
17981
18008
  "4": {
17982
18009
  start: {
17983
- line: 38,
17984
- column: 52
18010
+ line: 52,
18011
+ column: 59
17985
18012
  },
17986
18013
  end: {
17987
- line: 51,
18014
+ line: 56,
17988
18015
  column: 1
17989
18016
  }
17990
18017
  },
17991
18018
  "5": {
17992
18019
  start: {
17993
- line: 54,
17994
- column: 59
18020
+ line: 59,
18021
+ column: 54
17995
18022
  },
17996
18023
  end: {
17997
- line: 58,
18024
+ line: 71,
17998
18025
  column: 1
17999
18026
  }
18000
18027
  },
18001
18028
  "6": {
18002
18029
  start: {
18003
18030
  line: 61,
18004
- column: 54
18031
+ column: 4
18005
18032
  },
18006
18033
  end: {
18007
- line: 73,
18008
- column: 1
18034
+ line: 70,
18035
+ column: 9
18009
18036
  }
18010
18037
  },
18011
18038
  "7": {
18012
18039
  start: {
18013
- line: 63,
18014
- column: 4
18040
+ line: 74,
18041
+ column: 39
18015
18042
  },
18016
18043
  end: {
18017
- line: 72,
18018
- column: 9
18044
+ line: 82,
18045
+ column: 1
18019
18046
  }
18020
18047
  },
18021
18048
  "8": {
18022
18049
  start: {
18023
- line: 76,
18024
- column: 39
18050
+ line: 85,
18051
+ column: 43
18025
18052
  },
18026
18053
  end: {
18027
- line: 84,
18054
+ line: 88,
18028
18055
  column: 1
18029
18056
  }
18030
18057
  },
18031
18058
  "9": {
18032
18059
  start: {
18033
- line: 87,
18034
- column: 43
18060
+ line: 91,
18061
+ column: 33
18035
18062
  },
18036
18063
  end: {
18037
- line: 90,
18064
+ line: 101,
18038
18065
  column: 1
18039
18066
  }
18040
18067
  },
18041
18068
  "10": {
18042
18069
  start: {
18043
- line: 93,
18044
- column: 33
18070
+ line: 104,
18071
+ column: 44
18045
18072
  },
18046
18073
  end: {
18047
- line: 103,
18074
+ line: 132,
18048
18075
  column: 1
18049
18076
  }
18050
18077
  },
18051
18078
  "11": {
18052
18079
  start: {
18053
- line: 106,
18054
- column: 44
18080
+ line: 135,
18081
+ column: 39
18055
18082
  },
18056
18083
  end: {
18057
- line: 134,
18084
+ line: 141,
18058
18085
  column: 1
18059
18086
  }
18060
18087
  },
18061
18088
  "12": {
18062
18089
  start: {
18063
- line: 137,
18064
- column: 39
18090
+ line: 144,
18091
+ column: 49
18065
18092
  },
18066
18093
  end: {
18067
- line: 143,
18094
+ line: 161,
18068
18095
  column: 1
18069
18096
  }
18070
18097
  },
18071
18098
  "13": {
18072
18099
  start: {
18073
- line: 146,
18074
- column: 49
18100
+ line: 164,
18101
+ column: 52
18075
18102
  },
18076
18103
  end: {
18077
- line: 163,
18104
+ line: 181,
18078
18105
  column: 1
18079
18106
  }
18080
18107
  },
18081
18108
  "14": {
18082
18109
  start: {
18083
- line: 166,
18084
- column: 52
18110
+ line: 183,
18111
+ column: 43
18085
18112
  },
18086
18113
  end: {
18087
- line: 183,
18114
+ line: 186,
18088
18115
  column: 1
18089
18116
  }
18090
18117
  },
18091
18118
  "15": {
18092
18119
  start: {
18093
- line: 185,
18094
- column: 43
18120
+ line: 189,
18121
+ column: 49
18095
18122
  },
18096
18123
  end: {
18097
- line: 188,
18124
+ line: 196,
18098
18125
  column: 1
18099
18126
  }
18100
18127
  },
18101
18128
  "16": {
18102
18129
  start: {
18103
- line: 191,
18104
- column: 49
18130
+ line: 199,
18131
+ column: 47
18105
18132
  },
18106
18133
  end: {
18107
- line: 198,
18134
+ line: 220,
18108
18135
  column: 1
18109
18136
  }
18110
18137
  },
18111
18138
  "17": {
18112
18139
  start: {
18113
- line: 201,
18114
- column: 47
18140
+ line: 223,
18141
+ column: 46
18115
18142
  },
18116
18143
  end: {
18117
- line: 222,
18144
+ line: 236,
18118
18145
  column: 1
18119
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
+ }
18120
18187
  }
18121
18188
  },
18122
18189
  fnMap: {
@@ -18124,25 +18191,25 @@
18124
18191
  name: "(anonymous_0)",
18125
18192
  decl: {
18126
18193
  start: {
18127
- line: 62,
18194
+ line: 60,
18128
18195
  column: 12
18129
18196
  },
18130
18197
  end: {
18131
- line: 62,
18198
+ line: 60,
18132
18199
  column: 13
18133
18200
  }
18134
18201
  },
18135
18202
  loc: {
18136
18203
  start: {
18137
- line: 63,
18204
+ line: 61,
18138
18205
  column: 4
18139
18206
  },
18140
18207
  end: {
18141
- line: 72,
18208
+ line: 70,
18142
18209
  column: 9
18143
18210
  }
18144
18211
  },
18145
- line: 63
18212
+ line: 61
18146
18213
  }
18147
18214
  },
18148
18215
  branchMap: {},
@@ -18164,14 +18231,1408 @@
18164
18231
  "14": 0,
18165
18232
  "15": 0,
18166
18233
  "16": 0,
18167
- "17": 0
18234
+ "17": 0,
18235
+ "18": 0,
18236
+ "19": 0,
18237
+ "20": 0,
18238
+ "21": 0
18239
+ },
18240
+ f: {
18241
+ "0": 0
18242
+ },
18243
+ b: {},
18244
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
18245
+ hash: "325f820598b43aef527c75520ffec8d9e4ab2cfd"
18246
+ };
18247
+ var coverage = global[gcv] || (global[gcv] = {});
18248
+ if (!coverage[path] || coverage[path].hash !== hash) {
18249
+ coverage[path] = coverageData;
18250
+ }
18251
+ var actualCoverage = coverage[path];
18252
+ {
18253
+ // @ts-ignore
18254
+ cov_c0i3as1fp = function () {
18255
+ return actualCoverage;
18256
+ };
18257
+ }
18258
+ return actualCoverage;
18259
+ }
18260
+ cov_c0i3as1fp();
18261
+ function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18262
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
18263
+ var LOCALIZATION_CALL_PATTERNS = (cov_c0i3as1fp().s[0]++, [{
18264
+ callee: {
18265
+ type: TYPES.IDENTIFIER,
18266
+ name: "t"
18267
+ },
18268
+ arguments: [{
18269
+ type: TYPES.LITERAL
18270
+ }]
18271
+ }, {
18272
+ callee: {
18273
+ type: TYPES.MEMBER_EXPRESSION,
18274
+ property: {
18275
+ type: TYPES.IDENTIFIER,
18276
+ name: "t"
18277
+ }
18278
+ },
18279
+ arguments: [{
18280
+ type: TYPES.LITERAL
18281
+ }]
18282
+ }]);
18283
+ var PLURAL_TYPES = (cov_c0i3as1fp().s[1]++, {
18284
+ SINGULAR: "SINGULAR",
18285
+ PLURAL: "PLURAL"
18286
+ });
18287
+
18288
+ // t("common.edit")
18289
+ var T_FUNCTION_PATTERN = (cov_c0i3as1fp().s[2]++, {
18290
+ type: TYPES.CALL_EXPRESSION,
18291
+ callee: {
18292
+ type: TYPES.IDENTIFIER,
18293
+ name: "t"
18294
+ }
18295
+ });
18296
+
18297
+ // i18next.t("common.edit"), i18n.t("common.edit")
18298
+ var T_FUNCTION_MEMBER_EXPRESSION_PATTERN = (cov_c0i3as1fp().s[3]++, {
18299
+ type: TYPES.CALL_EXPRESSION,
18300
+ callee: {
18301
+ type: TYPES.MEMBER_EXPRESSION,
18302
+ object: {
18303
+ type: TYPES.IDENTIFIER,
18304
+ name: ramda.includes(ramda.__, ["i18next", "i18n"])
18305
+ },
18306
+ property: {
18307
+ type: TYPES.IDENTIFIER,
18308
+ name: "t"
18309
+ }
18310
+ }
18311
+ });
18312
+
18313
+ // `${t("common.edit")} ${t("common.field")}`
18314
+ var T_FUNCTIONS_IN_STRING_INTERPOLATION_PATTERN = (cov_c0i3as1fp().s[4]++, {
18315
+ expressions: ramda.any(matchesAny([T_FUNCTION_PATTERN, T_FUNCTION_MEMBER_EXPRESSION_PATTERN]))
18316
+ });
18317
+
18318
+ // <div>{t("common.edit")} {t("common.field")}</div>
18319
+ var MULTIPLE_T_FUNCTIONS_UNDER_SAME_PARENT = (cov_c0i3as1fp().s[5]++, {
18320
+ children: function children(_children) {
18321
+ cov_c0i3as1fp().f[0]++;
18322
+ cov_c0i3as1fp().s[6]++;
18323
+ return ramda.count(matches({
18324
+ type: TYPES.JSX_EXPRESSION_CONTAINER,
18325
+ expression: matchesAny([T_FUNCTION_PATTERN, T_FUNCTION_MEMBER_EXPRESSION_PATTERN])
18326
+ }), _children) > 1;
18327
+ }
18328
+ });
18329
+
18330
+ // <Trans />
18331
+ var TRANS_COMPONENT_PATTERN = (cov_c0i3as1fp().s[7]++, {
18332
+ openingElement: {
18333
+ type: TYPES.JSX_OPENING_ELEMENT,
18334
+ name: {
18335
+ type: TYPES.JSX_IDENTIFIER,
18336
+ name: "Trans"
18337
+ }
18338
+ }
18339
+ });
18340
+
18341
+ // '<Trans i18nKey="important">This is the <strong>important part</strong></Trans>'
18342
+ var TRANS_WITH_CHILDREN_PATTERN = (cov_c0i3as1fp().s[8]++, _objectSpread$1(_objectSpread$1({}, TRANS_COMPONENT_PATTERN), {}, {
18343
+ children: isNotEmpty$1
18344
+ }));
18345
+
18346
+ // const TestComponent = () => {}
18347
+ var COMPONENT_PATTERN = (cov_c0i3as1fp().s[9]++, {
18348
+ type: TYPES.VARIABLE_DECLARATION,
18349
+ kind: "const",
18350
+ declarations: [{
18351
+ type: TYPES.VARIABLE_DECLARATOR,
18352
+ init: {
18353
+ type: TYPES.ARROW_FUNCTION_EXPRESSION
18354
+ },
18355
+ id: {
18356
+ type: TYPES.IDENTIFIER,
18357
+ name: ramda.test(PASCAL_CASE_REGEX)
18358
+ }
18359
+ }]
18360
+ });
18361
+
18362
+ // const { t } = useTranslation()
18363
+ var USE_TRANSLATION_HOOK_PATTERN = (cov_c0i3as1fp().s[10]++, {
18364
+ type: TYPES.VARIABLE_DECLARATION,
18365
+ kind: "const",
18366
+ declarations: [{
18367
+ type: TYPES.VARIABLE_DECLARATOR,
18368
+ id: {
18369
+ type: TYPES.OBJECT_PATTERN,
18370
+ properties: [{
18371
+ type: TYPES.PROPERTY,
18372
+ key: {
18373
+ type: TYPES.IDENTIFIER,
18374
+ name: "t"
18375
+ }
18376
+ }]
18377
+ },
18378
+ init: {
18379
+ type: TYPES.CALL_EXPRESSION,
18380
+ callee: {
18381
+ type: TYPES.IDENTIFIER,
18382
+ name: "useTranslation"
18383
+ }
18384
+ }
18385
+ }]
18386
+ });
18387
+
18388
+ // components={{}}
18389
+ var COMPONENTS_PROP_PATTERN = (cov_c0i3as1fp().s[11]++, {
18390
+ type: TYPES.JSX_ATTRIBUTE,
18391
+ name: {
18392
+ type: TYPES.JSX_IDENTIFIER,
18393
+ name: "components"
18394
+ }
18395
+ });
18396
+
18397
+ // {{Button: <Button label={t("button.edit")}/>}}
18398
+ var COMPONENT_WITH_LABEL_PROP_PATTERN = (cov_c0i3as1fp().s[12]++, {
18399
+ type: TYPES.PROPERTY,
18400
+ value: {
18401
+ type: TYPES.JSX_ELEMENT,
18402
+ openingElement: {
18403
+ type: TYPES.JSX_OPENING_ELEMENT,
18404
+ attributes: ramda.any(matches({
18405
+ type: TYPES.JSX_ATTRIBUTE,
18406
+ name: {
18407
+ type: TYPES.JSX_IDENTIFIER,
18408
+ name: "label"
18409
+ }
18410
+ }))
18411
+ }
18412
+ }
18413
+ });
18414
+
18415
+ // articles > 1 ? t("article") : t("articles");
18416
+ var PLURALIZE_CONDITIONAL_RENDER_PATTERN = (cov_c0i3as1fp().s[13]++, {
18417
+ test: {
18418
+ type: TYPES.BINARY_EXPRESSION,
18419
+ operator: ramda.includes(ramda.__, [">", "==="]),
18420
+ right: {
18421
+ type: TYPES.LITERAL,
18422
+ value: 1
18423
+ }
18424
+ },
18425
+ consequent: matchesAny([T_FUNCTION_PATTERN, T_FUNCTION_MEMBER_EXPRESSION_PATTERN]),
18426
+ alternate: matchesAny([T_FUNCTION_PATTERN, T_FUNCTION_MEMBER_EXPRESSION_PATTERN])
18427
+ });
18428
+ // <Pluralize />
18429
+ var PLURALIZE_COMPONENT_PATTERN = (cov_c0i3as1fp().s[14]++, {
18430
+ type: TYPES.JSX_IDENTIFIER,
18431
+ name: "Pluralize"
18432
+ });
18433
+
18434
+ // pluralize("edit")
18435
+ var PLURALIZE_CALL_EXPRESSION_PATTERN = (cov_c0i3as1fp().s[15]++, {
18436
+ type: TYPES.CALL_EXPRESSION,
18437
+ callee: {
18438
+ type: TYPES.IDENTIFIER,
18439
+ name: "pluralize"
18440
+ },
18441
+ arguments: [{
18442
+ type: TYPES.LITERAL
18443
+ }]
18444
+ });
18445
+
18446
+ // import { pluralize } from "some-custom-path", import pluralize from "some-custom-path"
18447
+ var CUSTOM_PLURALIZE_IMPORT_PATTERN = (cov_c0i3as1fp().s[16]++, {
18448
+ type: TYPES.IMPORT_DECLARATION,
18449
+ specifiers: ramda.any(matchesAny([{
18450
+ type: TYPES.IMPORT_DEFAULT_SPECIFIER,
18451
+ local: {
18452
+ type: TYPES.IDENTIFIER,
18453
+ name: "pluralize"
18454
+ }
18455
+ }, {
18456
+ type: TYPES.IMPORT_SPECIFIER,
18457
+ imported: {
18458
+ type: TYPES.IDENTIFIER,
18459
+ name: "pluralize"
18460
+ }
18461
+ }])),
18462
+ source: {
18463
+ type: TYPES.LITERAL,
18464
+ value: notEquals("pluralize")
18465
+ }
18466
+ });
18467
+
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";
18491
+ var global = new Function("return this")();
18492
+ var gcv = "__coverage__";
18493
+ var coverageData = {
18494
+ path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/localization/hard-coded-strings-should-be-localized.js",
18495
+ statementMap: {
18496
+ "0": {
18497
+ start: {
18498
+ line: 14,
18499
+ column: 20
18500
+ },
18501
+ end: {
18502
+ line: 27,
18503
+ column: 1
18504
+ }
18505
+ },
18506
+ "1": {
18507
+ start: {
18508
+ line: 15,
18509
+ column: 2
18510
+ },
18511
+ end: {
18512
+ line: 26,
18513
+ column: 3
18514
+ }
18515
+ },
18516
+ "2": {
18517
+ start: {
18518
+ line: 17,
18519
+ column: 6
18520
+ },
18521
+ end: {
18522
+ line: 17,
18523
+ column: 28
18524
+ }
18525
+ },
18526
+ "3": {
18527
+ start: {
18528
+ line: 19,
18529
+ column: 6
18530
+ },
18531
+ end: {
18532
+ line: 19,
18533
+ column: 27
18534
+ }
18535
+ },
18536
+ "4": {
18537
+ start: {
18538
+ line: 21,
18539
+ column: 6
18540
+ },
18541
+ end: {
18542
+ line: 21,
18543
+ column: 26
18544
+ }
18545
+ },
18546
+ "5": {
18547
+ start: {
18548
+ line: 23,
18549
+ column: 6
18550
+ },
18551
+ end: {
18552
+ line: 23,
18553
+ column: 28
18554
+ }
18555
+ },
18556
+ "6": {
18557
+ start: {
18558
+ line: 25,
18559
+ column: 6
18560
+ },
18561
+ end: {
18562
+ line: 25,
18563
+ column: 16
18564
+ }
18565
+ },
18566
+ "7": {
18567
+ start: {
18568
+ line: 29,
18569
+ column: 21
18570
+ },
18571
+ end: {
18572
+ line: 68,
18573
+ column: 1
18574
+ }
18575
+ },
18576
+ "8": {
18577
+ start: {
18578
+ line: 30,
18579
+ column: 2
18580
+ },
18581
+ end: {
18582
+ line: 30,
18583
+ column: 50
18584
+ }
18585
+ },
18586
+ "9": {
18587
+ start: {
18588
+ line: 30,
18589
+ column: 37
18590
+ },
18591
+ end: {
18592
+ line: 30,
18593
+ column: 50
18594
+ }
18595
+ },
18596
+ "10": {
18597
+ start: {
18598
+ line: 32,
18599
+ column: 34
18600
+ },
18601
+ end: {
18602
+ line: 32,
18603
+ column: 74
18604
+ }
18605
+ },
18606
+ "11": {
18607
+ start: {
18608
+ line: 33,
18609
+ column: 2
18610
+ },
18611
+ end: {
18612
+ line: 33,
18613
+ column: 44
18614
+ }
18615
+ },
18616
+ "12": {
18617
+ start: {
18618
+ line: 33,
18619
+ column: 31
18620
+ },
18621
+ end: {
18622
+ line: 33,
18623
+ column: 44
18624
+ }
18625
+ },
18626
+ "13": {
18627
+ start: {
18628
+ line: 35,
18629
+ column: 24
18630
+ },
18631
+ end: {
18632
+ line: 35,
18633
+ column: 52
18634
+ }
18635
+ },
18636
+ "14": {
18637
+ start: {
18638
+ line: 36,
18639
+ column: 2
18640
+ },
18641
+ end: {
18642
+ line: 36,
18643
+ column: 33
18644
+ }
18645
+ },
18646
+ "15": {
18647
+ start: {
18648
+ line: 36,
18649
+ column: 21
18650
+ },
18651
+ end: {
18652
+ line: 36,
18653
+ column: 33
18654
+ }
18655
+ },
18656
+ "16": {
18657
+ start: {
18658
+ line: 38,
18659
+ column: 20
18660
+ },
18661
+ end: {
18662
+ line: 38,
18663
+ column: 46
18664
+ }
18665
+ },
18666
+ "17": {
18667
+ start: {
18668
+ line: 40,
18669
+ column: 2
18670
+ },
18671
+ end: {
18672
+ line: 65,
18673
+ column: 3
18674
+ }
18675
+ },
18676
+ "18": {
18677
+ start: {
18678
+ line: 40,
18679
+ column: 15
18680
+ },
18681
+ end: {
18682
+ line: 40,
18683
+ column: 35
18684
+ }
18685
+ },
18686
+ "19": {
18687
+ start: {
18688
+ line: 41,
18689
+ column: 19
18690
+ },
18691
+ end: {
18692
+ line: 41,
18693
+ column: 31
18694
+ }
18695
+ },
18696
+ "20": {
18697
+ start: {
18698
+ line: 43,
18699
+ column: 4
18700
+ },
18701
+ end: {
18702
+ line: 43,
18703
+ column: 76
18704
+ }
18705
+ },
18706
+ "21": {
18707
+ start: {
18708
+ line: 43,
18709
+ column: 63
18710
+ },
18711
+ end: {
18712
+ line: 43,
18713
+ column: 76
18714
+ }
18715
+ },
18716
+ "22": {
18717
+ start: {
18718
+ line: 45,
18719
+ column: 4
18720
+ },
18721
+ end: {
18722
+ line: 49,
18723
+ column: 5
18724
+ }
18725
+ },
18726
+ "23": {
18727
+ start: {
18728
+ line: 46,
18729
+ column: 27
18730
+ },
18731
+ end: {
18732
+ line: 46,
18733
+ column: 74
18734
+ }
18735
+ },
18736
+ "24": {
18737
+ start: {
18738
+ line: 48,
18739
+ column: 6
18740
+ },
18741
+ end: {
18742
+ line: 48,
18743
+ column: 26
18744
+ }
18745
+ },
18746
+ "25": {
18747
+ start: {
18748
+ line: 51,
18749
+ column: 21
18750
+ },
18751
+ end: {
18752
+ line: 51,
18753
+ column: 40
18754
+ }
18755
+ },
18756
+ "26": {
18757
+ start: {
18758
+ line: 53,
18759
+ column: 4
18760
+ },
18761
+ end: {
18762
+ line: 64,
18763
+ column: 5
18764
+ }
18765
+ },
18766
+ "27": {
18767
+ start: {
18768
+ line: 54,
18769
+ column: 31
18770
+ },
18771
+ end: {
18772
+ line: 54,
18773
+ column: 69
18774
+ }
18775
+ },
18776
+ "28": {
18777
+ start: {
18778
+ line: 55,
18779
+ column: 6
18780
+ },
18781
+ end: {
18782
+ line: 55,
18783
+ column: 40
18784
+ }
18785
+ },
18786
+ "29": {
18787
+ start: {
18788
+ line: 55,
18789
+ column: 28
18790
+ },
18791
+ end: {
18792
+ line: 55,
18793
+ column: 40
18794
+ }
18795
+ },
18796
+ "30": {
18797
+ start: {
18798
+ line: 57,
18799
+ column: 40
18800
+ },
18801
+ end: {
18802
+ line: 57,
18803
+ column: 78
18804
+ }
18805
+ },
18806
+ "31": {
18807
+ start: {
18808
+ line: 58,
18809
+ column: 6
18810
+ },
18811
+ end: {
18812
+ line: 58,
18813
+ column: 51
18814
+ }
18815
+ },
18816
+ "32": {
18817
+ start: {
18818
+ line: 58,
18819
+ column: 38
18820
+ },
18821
+ end: {
18822
+ line: 58,
18823
+ column: 51
18824
+ }
18825
+ },
18826
+ "33": {
18827
+ start: {
18828
+ line: 60,
18829
+ column: 31
18830
+ },
18831
+ end: {
18832
+ line: 60,
18833
+ column: 69
18834
+ }
18835
+ },
18836
+ "34": {
18837
+ start: {
18838
+ line: 61,
18839
+ column: 6
18840
+ },
18841
+ end: {
18842
+ line: 61,
18843
+ column: 41
18844
+ }
18845
+ },
18846
+ "35": {
18847
+ start: {
18848
+ line: 61,
18849
+ column: 28
18850
+ },
18851
+ end: {
18852
+ line: 61,
18853
+ column: 41
18854
+ }
18855
+ },
18856
+ "36": {
18857
+ start: {
18858
+ line: 63,
18859
+ column: 6
18860
+ },
18861
+ end: {
18862
+ line: 63,
18863
+ column: 18
18864
+ }
18865
+ },
18866
+ "37": {
18867
+ start: {
18868
+ line: 67,
18869
+ column: 2
18870
+ },
18871
+ end: {
18872
+ line: 67,
18873
+ column: 15
18874
+ }
18875
+ },
18876
+ "38": {
18877
+ start: {
18878
+ line: 70,
18879
+ column: 23
18880
+ },
18881
+ end: {
18882
+ line: 77,
18883
+ column: 1
18884
+ }
18885
+ },
18886
+ "39": {
18887
+ start: {
18888
+ line: 72,
18889
+ column: 4
18890
+ },
18891
+ end: {
18892
+ line: 72,
18893
+ column: 70
18894
+ }
18895
+ },
18896
+ "40": {
18897
+ start: {
18898
+ line: 74,
18899
+ column: 2
18900
+ },
18901
+ end: {
18902
+ line: 74,
18903
+ column: 54
18904
+ }
18905
+ },
18906
+ "41": {
18907
+ start: {
18908
+ line: 74,
18909
+ column: 47
18910
+ },
18911
+ end: {
18912
+ line: 74,
18913
+ column: 54
18914
+ }
18915
+ },
18916
+ "42": {
18917
+ start: {
18918
+ line: 76,
18919
+ column: 2
18920
+ },
18921
+ end: {
18922
+ line: 76,
18923
+ column: 75
18924
+ }
18925
+ },
18926
+ "43": {
18927
+ start: {
18928
+ line: 86,
18929
+ column: 22
18930
+ },
18931
+ end: {
18932
+ line: 96,
18933
+ column: 3
18934
+ }
18935
+ },
18936
+ "44": {
18937
+ start: {
18938
+ line: 88,
18939
+ column: 6
18940
+ },
18941
+ end: {
18942
+ line: 88,
18943
+ column: 36
18944
+ }
18945
+ },
18946
+ "45": {
18947
+ start: {
18948
+ line: 91,
18949
+ column: 6
18950
+ },
18951
+ end: {
18952
+ line: 91,
18953
+ column: 36
18954
+ }
18955
+ },
18956
+ "46": {
18957
+ start: {
18958
+ line: 94,
18959
+ column: 6
18960
+ },
18961
+ end: {
18962
+ line: 94,
18963
+ column: 36
18964
+ }
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
+ }
18979
+ },
18980
+ loc: {
18981
+ start: {
18982
+ line: 14,
18983
+ column: 28
18984
+ },
18985
+ end: {
18986
+ line: 27,
18987
+ column: 1
18988
+ }
18989
+ },
18990
+ line: 14
18991
+ },
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
18168
19610
  },
18169
19611
  f: {
18170
- "0": 0
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]
18171
19633
  },
18172
- b: {},
18173
19634
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
18174
- hash: "f14905a56e76c6cfcb1d408e7585da5d4a89883c"
19635
+ hash: "d88262455c5e97fb77cb9711bb56bdcb32f5c808"
18175
19636
  };
18176
19637
  var coverage = global[gcv] || (global[gcv] = {});
18177
19638
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -18180,220 +19641,178 @@
18180
19641
  var actualCoverage = coverage[path];
18181
19642
  {
18182
19643
  // @ts-ignore
18183
- cov_c0i3as1fp = function () {
19644
+ cov_egnyqf63g = function () {
18184
19645
  return actualCoverage;
18185
19646
  };
18186
19647
  }
18187
19648
  return actualCoverage;
18188
19649
  }
18189
- cov_c0i3as1fp();
18190
- function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18191
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
18192
- var PASCAL_CASE_REGEX$1 = (cov_c0i3as1fp().s[0]++, /^[A-Z][A-Za-z0-9]*$/);
18193
- var LOCALIZATION_CALL_PATTERNS = (cov_c0i3as1fp().s[1]++, [{
18194
- callee: {
18195
- type: TYPES.IDENTIFIER,
18196
- name: "t"
18197
- },
18198
- arguments: [{
18199
- type: TYPES.LITERAL
18200
- }]
18201
- }, {
18202
- callee: {
18203
- type: TYPES.MEMBER_EXPRESSION,
18204
- property: {
18205
- type: TYPES.IDENTIFIER,
18206
- name: "t"
18207
- }
18208
- },
18209
- arguments: [{
18210
- type: TYPES.LITERAL
18211
- }]
18212
- }]);
18213
- var PLURAL_TYPES = (cov_c0i3as1fp().s[2]++, {
18214
- SINGULAR: "SINGULAR",
18215
- PLURAL: "PLURAL"
18216
- });
18217
-
18218
- // t("common.edit")
18219
- var T_FUNCTION_PATTERN = (cov_c0i3as1fp().s[3]++, {
18220
- type: TYPES.CALL_EXPRESSION,
18221
- callee: {
18222
- type: TYPES.IDENTIFIER,
18223
- name: "t"
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 "";
18224
19676
  }
18225
- });
18226
-
18227
- // i18next.t("common.edit"), i18n.t("common.edit")
18228
- var T_FUNCTION_MEMBER_EXPRESSION_PATTERN = (cov_c0i3as1fp().s[4]++, {
18229
- type: TYPES.CALL_EXPRESSION,
18230
- callee: {
18231
- type: TYPES.MEMBER_EXPRESSION,
18232
- object: {
18233
- type: TYPES.IDENTIFIER,
18234
- name: ramda.includes(ramda.__, ["i18next", "i18n"])
18235
- },
18236
- property: {
18237
- type: TYPES.IDENTIFIER,
18238
- name: "t"
18239
- }
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]++;
18240
19688
  }
18241
- });
18242
-
18243
- // `${t("common.edit")} ${t("common.field")}`
18244
- var T_FUNCTIONS_IN_STRING_INTERPOLATION_PATTERN = (cov_c0i3as1fp().s[5]++, {
18245
- expressions: ramda.any(matchesAny([T_FUNCTION_PATTERN, T_FUNCTION_MEMBER_EXPRESSION_PATTERN]))
18246
- });
18247
-
18248
- // <div>{t("common.edit")} {t("common.field")}</div>
18249
- var MULTIPLE_T_FUNCTIONS_UNDER_SAME_PARENT = (cov_c0i3as1fp().s[6]++, {
18250
- children: function children(_children) {
18251
- cov_c0i3as1fp().f[0]++;
18252
- cov_c0i3as1fp().s[7]++;
18253
- return ramda.count(matches({
18254
- type: TYPES.JSX_EXPRESSION_CONTAINER,
18255
- expression: matchesAny([T_FUNCTION_PATTERN, T_FUNCTION_MEMBER_EXPRESSION_PATTERN])
18256
- }), _children) > 1;
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]++;
18257
19697
  }
18258
- });
18259
-
18260
- // <Trans />
18261
- var TRANS_COMPONENT_PATTERN = (cov_c0i3as1fp().s[8]++, {
18262
- openingElement: {
18263
- type: TYPES.JSX_OPENING_ELEMENT,
18264
- name: {
18265
- type: TYPES.JSX_IDENTIFIER,
18266
- name: "Trans"
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]++;
18267
19719
  }
18268
- }
18269
- });
18270
-
18271
- // '<Trans i18nKey="important">This is the <strong>important part</strong></Trans>'
18272
- var TRANS_WITH_CHILDREN_PATTERN = (cov_c0i3as1fp().s[9]++, _objectSpread$1(_objectSpread$1({}, TRANS_COMPONENT_PATTERN), {}, {
18273
- children: isNotEmpty$1
18274
- }));
18275
-
18276
- // const TestComponent = () => {}
18277
- var COMPONENT_PATTERN = (cov_c0i3as1fp().s[10]++, {
18278
- type: TYPES.VARIABLE_DECLARATION,
18279
- kind: "const",
18280
- declarations: [{
18281
- type: TYPES.VARIABLE_DECLARATOR,
18282
- init: {
18283
- type: TYPES.ARROW_FUNCTION_EXPRESSION
18284
- },
18285
- id: {
18286
- type: TYPES.IDENTIFIER,
18287
- name: ramda.test(PASCAL_CASE_REGEX$1)
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]++;
18288
19728
  }
18289
- }]
18290
- });
18291
-
18292
- // const { t } = useTranslation()
18293
- var USE_TRANSLATION_HOOK_PATTERN = (cov_c0i3as1fp().s[11]++, {
18294
- type: TYPES.VARIABLE_DECLARATION,
18295
- kind: "const",
18296
- declarations: [{
18297
- type: TYPES.VARIABLE_DECLARATOR,
18298
- id: {
18299
- type: TYPES.OBJECT_PATTERN,
18300
- properties: [{
18301
- type: TYPES.PROPERTY,
18302
- key: {
18303
- type: TYPES.IDENTIFIER,
18304
- name: "t"
18305
- }
18306
- }]
18307
- },
18308
- init: {
18309
- type: TYPES.CALL_EXPRESSION,
18310
- callee: {
18311
- type: TYPES.IDENTIFIER,
18312
- name: "useTranslation"
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]++;
18313
19759
  }
19760
+ cov_egnyqf63g().s[36]++;
19761
+ return true;
19762
+ } else {
19763
+ cov_egnyqf63g().b[6][1]++;
18314
19764
  }
18315
- }]
18316
- });
18317
-
18318
- // components={{}}
18319
- var COMPONENTS_PROP_PATTERN = (cov_c0i3as1fp().s[12]++, {
18320
- type: TYPES.JSX_ATTRIBUTE,
18321
- name: {
18322
- type: TYPES.JSX_IDENTIFIER,
18323
- name: "components"
18324
19765
  }
18325
- });
18326
-
18327
- // {{Button: <Button label={t("button.edit")}/>}}
18328
- var COMPONENT_WITH_LABEL_PROP_PATTERN = (cov_c0i3as1fp().s[13]++, {
18329
- type: TYPES.PROPERTY,
18330
- value: {
18331
- type: TYPES.JSX_ELEMENT,
18332
- openingElement: {
18333
- type: TYPES.JSX_OPENING_ELEMENT,
18334
- attributes: ramda.any(matches({
18335
- type: TYPES.JSX_ATTRIBUTE,
18336
- name: {
18337
- type: TYPES.JSX_IDENTIFIER,
18338
- name: "label"
18339
- }
18340
- }))
18341
- }
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]++;
18342
19780
  }
18343
- });
18344
-
18345
- // articles > 1 ? t("article") : t("articles");
18346
- var PLURALIZE_CONDITIONAL_RENDER_PATTERN = (cov_c0i3as1fp().s[14]++, {
18347
- test: {
18348
- type: TYPES.BINARY_EXPRESSION,
18349
- operator: ">",
18350
- right: {
18351
- type: TYPES.LITERAL,
18352
- value: 1
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"
18353
19792
  }
18354
19793
  },
18355
- consequent: matchesAny([T_FUNCTION_PATTERN, T_FUNCTION_MEMBER_EXPRESSION_PATTERN]),
18356
- alternate: matchesAny([T_FUNCTION_PATTERN, T_FUNCTION_MEMBER_EXPRESSION_PATTERN])
18357
- });
18358
- // <Pluralize />
18359
- var PLURALIZE_COMPONENT_PATTERN = (cov_c0i3as1fp().s[15]++, {
18360
- type: TYPES.JSX_IDENTIFIER,
18361
- name: "Pluralize"
18362
- });
18363
-
18364
- // pluralize("edit")
18365
- var PLURALIZE_CALL_EXPRESSION_PATTERN = (cov_c0i3as1fp().s[16]++, {
18366
- type: TYPES.CALL_EXPRESSION,
18367
- callee: {
18368
- type: TYPES.IDENTIFIER,
18369
- name: "pluralize"
18370
- },
18371
- arguments: [{
18372
- type: TYPES.LITERAL
18373
- }]
18374
- });
18375
-
18376
- // import { pluralize } from "some-custom-path", import pluralize from "some-custom-path"
18377
- var CUSTOM_PLURALIZE_IMPORT_PATTERN = (cov_c0i3as1fp().s[17]++, {
18378
- type: TYPES.IMPORT_DECLARATION,
18379
- specifiers: ramda.any(matchesAny([{
18380
- type: TYPES.IMPORT_DEFAULT_SPECIFIER,
18381
- local: {
18382
- type: TYPES.IDENTIFIER,
18383
- name: "pluralize"
18384
- }
18385
- }, {
18386
- type: TYPES.IMPORT_SPECIFIER,
18387
- imported: {
18388
- type: TYPES.IDENTIFIER,
18389
- name: "pluralize"
18390
- }
18391
- }])),
18392
- source: {
18393
- type: TYPES.LITERAL,
18394
- value: notEquals("pluralize")
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
+ };
18395
19814
  }
18396
- });
19815
+ };
18397
19816
 
18398
19817
  function cov_1dbv2r7tr6() {
18399
19818
  var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/localization/no-missing-localization.js";
@@ -22350,7 +23769,7 @@
22350
23769
  cov_dqdsf959y();
22351
23770
 
22352
23771
  // const { order } = useSampleStore();
22353
- var ZUSTAND_HOOK_USAGE_PATTERN$1 = (cov_dqdsf959y().s[0]++, {
23772
+ var ZUSTAND_HOOK_USAGE_PATTERN$2 = (cov_dqdsf959y().s[0]++, {
22354
23773
  kind: "const",
22355
23774
  declarations: [{
22356
23775
  type: TYPES.VARIABLE_DECLARATOR,
@@ -22548,7 +23967,7 @@
22548
23967
  VariableDeclaration: function VariableDeclaration(node) {
22549
23968
  cov_1vp1w7579e().f[1]++;
22550
23969
  cov_1vp1w7579e().s[1]++;
22551
- if (!matches(ZUSTAND_HOOK_USAGE_PATTERN$1, node)) {
23970
+ if (!matches(ZUSTAND_HOOK_USAGE_PATTERN$2, node)) {
22552
23971
  cov_1vp1w7579e().b[0][0]++;
22553
23972
  cov_1vp1w7579e().s[2]++;
22554
23973
  return;
@@ -47147,7 +48566,7 @@
47147
48566
 
47148
48567
  function cov_2r6kdxisgo() {
47149
48568
  var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/use-camel-case-or-pascal-case-for-function-names/constants.js";
47150
- var hash = "b3ac02d484bb3a7b64b43ab8cfd1f564ec12b608";
48569
+ var hash = "3cf11823419cffe39c05d65d36765ab9b2504764";
47151
48570
  var global = new Function("return this")();
47152
48571
  var gcv = "__coverage__";
47153
48572
  var coverageData = {
@@ -47182,26 +48601,6 @@
47182
48601
  line: 26,
47183
48602
  column: 1
47184
48603
  }
47185
- },
47186
- "3": {
47187
- start: {
47188
- line: 28,
47189
- column: 32
47190
- },
47191
- end: {
47192
- line: 28,
47193
- column: 53
47194
- }
47195
- },
47196
- "4": {
47197
- start: {
47198
- line: 30,
47199
- column: 33
47200
- },
47201
- end: {
47202
- line: 30,
47203
- column: 54
47204
- }
47205
48604
  }
47206
48605
  },
47207
48606
  fnMap: {},
@@ -47209,14 +48608,12 @@
47209
48608
  s: {
47210
48609
  "0": 0,
47211
48610
  "1": 0,
47212
- "2": 0,
47213
- "3": 0,
47214
- "4": 0
48611
+ "2": 0
47215
48612
  },
47216
48613
  f: {},
47217
48614
  b: {},
47218
48615
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
47219
- hash: "b3ac02d484bb3a7b64b43ab8cfd1f564ec12b608"
48616
+ hash: "3cf11823419cffe39c05d65d36765ab9b2504764"
47220
48617
  };
47221
48618
  var coverage = global[gcv] || (global[gcv] = {});
47222
48619
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -47246,8 +48643,6 @@
47246
48643
  }
47247
48644
  });
47248
48645
  var FUNCTION_DECLARATION_PATTERNS = (cov_2r6kdxisgo().s[2]++, [FUNCTION_EXPRESSION_PATTERN, FUNCTION_CONSTRUCTOR_PATTERN]);
47249
- var CAMEL_CASE_REGEX = (cov_2r6kdxisgo().s[3]++, /^[a-z][A-Za-z0-9]*$/);
47250
- var PASCAL_CASE_REGEX = (cov_2r6kdxisgo().s[4]++, /^[A-Z][A-Za-z0-9]*$/);
47251
48646
 
47252
48647
  function cov_1j0uko43i5() {
47253
48648
  var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/use-camel-case-or-pascal-case-for-function-names/utils.js";
@@ -50339,166 +51734,121 @@
50339
51734
  }
50340
51735
  };
50341
51736
 
50342
- function cov_2ntqbue5f9() {
50343
- var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/use-snake-case-for-api-connector-filename/constants.js";
50344
- var hash = "432e2f20dd88e1398d94e58b428244017eabd2ab";
50345
- var global = new Function("return this")();
50346
- var gcv = "__coverage__";
50347
- var coverageData = {
50348
- path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/use-snake-case-for-api-connector-filename/constants.js",
50349
- statementMap: {
50350
- "0": {
50351
- start: {
50352
- line: 1,
50353
- column: 32
50354
- },
50355
- end: {
50356
- line: 1,
50357
- column: 46
50358
- }
50359
- }
50360
- },
50361
- fnMap: {},
50362
- branchMap: {},
50363
- s: {
50364
- "0": 0
50365
- },
50366
- f: {},
50367
- b: {},
50368
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
50369
- hash: "432e2f20dd88e1398d94e58b428244017eabd2ab"
50370
- };
50371
- var coverage = global[gcv] || (global[gcv] = {});
50372
- if (!coverage[path] || coverage[path].hash !== hash) {
50373
- coverage[path] = coverageData;
50374
- }
50375
- var actualCoverage = coverage[path];
50376
- {
50377
- // @ts-ignore
50378
- cov_2ntqbue5f9 = function () {
50379
- return actualCoverage;
50380
- };
50381
- }
50382
- return actualCoverage;
50383
- }
50384
- cov_2ntqbue5f9();
50385
- var SNAKE_CASE_REGEX = (cov_2ntqbue5f9().s[0]++, /^[a-z0-9_]+$/);
50386
-
50387
- function cov_wozdupke() {
50388
- var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/use-snake-case-for-api-connector-filename/index.js";
50389
- var hash = "268c958a88c13f7cab72aadb60bc45af74be60df";
51737
+ function cov_1pjjnakm2() {
51738
+ var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/use-snake-case-for-api-connector-filename.js";
51739
+ var hash = "c13d06ce54b816279a19c8277774d87159c921e4";
50390
51740
  var global = new Function("return this")();
50391
51741
  var gcv = "__coverage__";
50392
51742
  var coverageData = {
50393
- path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/use-snake-case-for-api-connector-filename/index.js",
51743
+ path: "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/use-snake-case-for-api-connector-filename.js",
50394
51744
  statementMap: {
50395
51745
  "0": {
50396
51746
  start: {
50397
- line: 6,
51747
+ line: 5,
50398
51748
  column: 20
50399
51749
  },
50400
51750
  end: {
50401
- line: 6,
51751
+ line: 5,
50402
51752
  column: 55
50403
51753
  }
50404
51754
  },
50405
51755
  "1": {
50406
51756
  start: {
50407
- line: 6,
51757
+ line: 5,
50408
51758
  column: 28
50409
51759
  },
50410
51760
  end: {
50411
- line: 6,
51761
+ line: 5,
50412
51762
  column: 55
50413
51763
  }
50414
51764
  },
50415
51765
  "2": {
50416
51766
  start: {
50417
- line: 8,
51767
+ line: 7,
50418
51768
  column: 20
50419
51769
  },
50420
51770
  end: {
50421
- line: 15,
51771
+ line: 14,
50422
51772
  column: 23
50423
51773
  }
50424
51774
  },
50425
51775
  "3": {
50426
51776
  start: {
50427
- line: 9,
51777
+ line: 8,
50428
51778
  column: 2
50429
51779
  },
50430
51780
  end: {
50431
- line: 15,
51781
+ line: 14,
50432
51782
  column: 23
50433
51783
  }
50434
51784
  },
50435
51785
  "4": {
50436
51786
  start: {
50437
- line: 24,
51787
+ line: 23,
50438
51788
  column: 22
50439
51789
  },
50440
51790
  end: {
50441
- line: 36,
51791
+ line: 35,
50442
51792
  column: 3
50443
51793
  }
50444
51794
  },
50445
51795
  "5": {
50446
51796
  start: {
50447
- line: 26,
51797
+ line: 25,
50448
51798
  column: 6
50449
51799
  },
50450
51800
  end: {
50451
- line: 26,
51801
+ line: 25,
50452
51802
  column: 61
50453
51803
  }
50454
51804
  },
50455
51805
  "6": {
50456
51806
  start: {
50457
- line: 26,
51807
+ line: 25,
50458
51808
  column: 54
50459
51809
  },
50460
51810
  end: {
50461
- line: 26,
51811
+ line: 25,
50462
51812
  column: 61
50463
51813
  }
50464
51814
  },
50465
51815
  "7": {
50466
51816
  start: {
50467
- line: 28,
51817
+ line: 27,
50468
51818
  column: 36
50469
51819
  },
50470
51820
  end: {
50471
- line: 28,
51821
+ line: 27,
50472
51822
  column: 68
50473
51823
  }
50474
51824
  },
50475
51825
  "8": {
50476
51826
  start: {
50477
- line: 29,
51827
+ line: 28,
50478
51828
  column: 6
50479
51829
  },
50480
51830
  end: {
50481
- line: 29,
51831
+ line: 28,
50482
51832
  column: 40
50483
51833
  }
50484
51834
  },
50485
51835
  "9": {
50486
51836
  start: {
50487
- line: 29,
51837
+ line: 28,
50488
51838
  column: 33
50489
51839
  },
50490
51840
  end: {
50491
- line: 29,
51841
+ line: 28,
50492
51842
  column: 40
50493
51843
  }
50494
51844
  },
50495
51845
  "10": {
50496
51846
  start: {
50497
- line: 31,
51847
+ line: 30,
50498
51848
  column: 6
50499
51849
  },
50500
51850
  end: {
50501
- line: 34,
51851
+ line: 33,
50502
51852
  column: 9
50503
51853
  }
50504
51854
  }
@@ -50508,119 +51858,119 @@
50508
51858
  name: "(anonymous_0)",
50509
51859
  decl: {
50510
51860
  start: {
50511
- line: 6,
51861
+ line: 5,
50512
51862
  column: 20
50513
51863
  },
50514
51864
  end: {
50515
- line: 6,
51865
+ line: 5,
50516
51866
  column: 21
50517
51867
  }
50518
51868
  },
50519
51869
  loc: {
50520
51870
  start: {
50521
- line: 6,
51871
+ line: 5,
50522
51872
  column: 28
50523
51873
  },
50524
51874
  end: {
50525
- line: 6,
51875
+ line: 5,
50526
51876
  column: 55
50527
51877
  }
50528
51878
  },
50529
- line: 6
51879
+ line: 5
50530
51880
  },
50531
51881
  "1": {
50532
51882
  name: "(anonymous_1)",
50533
51883
  decl: {
50534
51884
  start: {
50535
- line: 8,
51885
+ line: 7,
50536
51886
  column: 20
50537
51887
  },
50538
51888
  end: {
50539
- line: 8,
51889
+ line: 7,
50540
51890
  column: 21
50541
51891
  }
50542
51892
  },
50543
51893
  loc: {
50544
51894
  start: {
50545
- line: 9,
51895
+ line: 8,
50546
51896
  column: 2
50547
51897
  },
50548
51898
  end: {
50549
- line: 15,
51899
+ line: 14,
50550
51900
  column: 23
50551
51901
  }
50552
51902
  },
50553
- line: 9
51903
+ line: 8
50554
51904
  },
50555
51905
  "2": {
50556
51906
  name: "(anonymous_2)",
50557
51907
  decl: {
50558
51908
  start: {
50559
- line: 24,
51909
+ line: 23,
50560
51910
  column: 10
50561
51911
  },
50562
51912
  end: {
50563
- line: 24,
51913
+ line: 23,
50564
51914
  column: 11
50565
51915
  }
50566
51916
  },
50567
51917
  loc: {
50568
51918
  start: {
50569
- line: 24,
51919
+ line: 23,
50570
51920
  column: 22
50571
51921
  },
50572
51922
  end: {
50573
- line: 36,
51923
+ line: 35,
50574
51924
  column: 3
50575
51925
  }
50576
51926
  },
50577
- line: 24
51927
+ line: 23
50578
51928
  },
50579
51929
  "3": {
50580
51930
  name: "(anonymous_3)",
50581
51931
  decl: {
50582
51932
  start: {
50583
- line: 25,
51933
+ line: 24,
50584
51934
  column: 4
50585
51935
  },
50586
51936
  end: {
50587
- line: 25,
51937
+ line: 24,
50588
51938
  column: 5
50589
51939
  }
50590
51940
  },
50591
51941
  loc: {
50592
51942
  start: {
50593
- line: 25,
51943
+ line: 24,
50594
51944
  column: 28
50595
51945
  },
50596
51946
  end: {
50597
- line: 35,
51947
+ line: 34,
50598
51948
  column: 5
50599
51949
  }
50600
51950
  },
50601
- line: 25
51951
+ line: 24
50602
51952
  }
50603
51953
  },
50604
51954
  branchMap: {
50605
51955
  "0": {
50606
51956
  loc: {
50607
51957
  start: {
50608
- line: 26,
51958
+ line: 25,
50609
51959
  column: 6
50610
51960
  },
50611
51961
  end: {
50612
- line: 26,
51962
+ line: 25,
50613
51963
  column: 61
50614
51964
  }
50615
51965
  },
50616
51966
  type: "if",
50617
51967
  locations: [{
50618
51968
  start: {
50619
- line: 26,
51969
+ line: 25,
50620
51970
  column: 6
50621
51971
  },
50622
51972
  end: {
50623
- line: 26,
51973
+ line: 25,
50624
51974
  column: 61
50625
51975
  }
50626
51976
  }, {
@@ -50633,27 +51983,27 @@
50633
51983
  column: undefined
50634
51984
  }
50635
51985
  }],
50636
- line: 26
51986
+ line: 25
50637
51987
  },
50638
51988
  "1": {
50639
51989
  loc: {
50640
51990
  start: {
50641
- line: 29,
51991
+ line: 28,
50642
51992
  column: 6
50643
51993
  },
50644
51994
  end: {
50645
- line: 29,
51995
+ line: 28,
50646
51996
  column: 40
50647
51997
  }
50648
51998
  },
50649
51999
  type: "if",
50650
52000
  locations: [{
50651
52001
  start: {
50652
- line: 29,
52002
+ line: 28,
50653
52003
  column: 6
50654
52004
  },
50655
52005
  end: {
50656
- line: 29,
52006
+ line: 28,
50657
52007
  column: 40
50658
52008
  }
50659
52009
  }, {
@@ -50666,7 +52016,7 @@
50666
52016
  column: undefined
50667
52017
  }
50668
52018
  }],
50669
- line: 29
52019
+ line: 28
50670
52020
  }
50671
52021
  },
50672
52022
  s: {
@@ -50693,7 +52043,7 @@
50693
52043
  "1": [0, 0]
50694
52044
  },
50695
52045
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
50696
- hash: "268c958a88c13f7cab72aadb60bc45af74be60df"
52046
+ hash: "c13d06ce54b816279a19c8277774d87159c921e4"
50697
52047
  };
50698
52048
  var coverage = global[gcv] || (global[gcv] = {});
50699
52049
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -50702,23 +52052,23 @@
50702
52052
  var actualCoverage = coverage[path];
50703
52053
  {
50704
52054
  // @ts-ignore
50705
- cov_wozdupke = function () {
52055
+ cov_1pjjnakm2 = function () {
50706
52056
  return actualCoverage;
50707
52057
  };
50708
52058
  }
50709
52059
  return actualCoverage;
50710
52060
  }
50711
- cov_wozdupke();
50712
- cov_wozdupke().s[0]++;
52061
+ cov_1pjjnakm2();
52062
+ cov_1pjjnakm2().s[0]++;
50713
52063
  var isSnakeCase = function isSnakeCase(text) {
50714
- cov_wozdupke().f[0]++;
50715
- cov_wozdupke().s[1]++;
52064
+ cov_1pjjnakm2().f[0]++;
52065
+ cov_1pjjnakm2().s[1]++;
50716
52066
  return SNAKE_CASE_REGEX.test(text);
50717
52067
  };
50718
- cov_wozdupke().s[2]++;
52068
+ cov_1pjjnakm2().s[2]++;
50719
52069
  var toSnakeCase = function toSnakeCase(text) {
50720
- cov_wozdupke().f[1]++;
50721
- cov_wozdupke().s[3]++;
52070
+ cov_1pjjnakm2().f[1]++;
52071
+ cov_1pjjnakm2().s[3]++;
50722
52072
  return text.replace("-", "_").replace(/([A-Z0-9][a-z])/g, "_$1").replace(/([a-z0-9])([A-Z0-9])/g, "$1_$2").toLowerCase().replace(/[^a-z0-9_]/g, "").replace(/^_/g, "");
50723
52073
  };
50724
52074
  var useSnakeCaseForApiConnectorFilename = {
@@ -50729,32 +52079,32 @@
50729
52079
  }
50730
52080
  },
50731
52081
  create: function create(context) {
50732
- cov_wozdupke().f[2]++;
50733
- cov_wozdupke().s[4]++;
52082
+ cov_1pjjnakm2().f[2]++;
52083
+ cov_1pjjnakm2().s[4]++;
50734
52084
  return {
50735
52085
  ImportDeclaration: function ImportDeclaration(node) {
50736
- cov_wozdupke().f[3]++;
50737
- cov_wozdupke().s[5]++;
52086
+ cov_1pjjnakm2().f[3]++;
52087
+ cov_1pjjnakm2().s[5]++;
50738
52088
  if (!isPackageImported(context, node, "axios")) {
50739
- cov_wozdupke().b[0][0]++;
50740
- cov_wozdupke().s[6]++;
52089
+ cov_1pjjnakm2().b[0][0]++;
52090
+ cov_1pjjnakm2().s[6]++;
50741
52091
  return;
50742
52092
  } else {
50743
- cov_wozdupke().b[0][1]++;
52093
+ cov_1pjjnakm2().b[0][1]++;
50744
52094
  }
50745
- var _ref = (cov_wozdupke().s[7]++, getFilenameAndExtension(context)),
52095
+ var _ref = (cov_1pjjnakm2().s[7]++, getFilenameAndExtension(context)),
50746
52096
  _ref2 = _slicedToArray$1(_ref, 2),
50747
52097
  fileName = _ref2[0],
50748
52098
  extension = _ref2[1];
50749
- cov_wozdupke().s[8]++;
52099
+ cov_1pjjnakm2().s[8]++;
50750
52100
  if (isSnakeCase(fileName)) {
50751
- cov_wozdupke().b[1][0]++;
50752
- cov_wozdupke().s[9]++;
52101
+ cov_1pjjnakm2().b[1][0]++;
52102
+ cov_1pjjnakm2().s[9]++;
50753
52103
  return;
50754
52104
  } else {
50755
- cov_wozdupke().b[1][1]++;
52105
+ cov_1pjjnakm2().b[1][1]++;
50756
52106
  }
50757
- cov_wozdupke().s[10]++;
52107
+ cov_1pjjnakm2().s[10]++;
50758
52108
  context.report({
50759
52109
  node: node.parent,
50760
52110
  message: renameFile("".concat(toSnakeCase(fileName), ".").concat(extension))
@@ -51803,9 +53153,361 @@
51803
53153
  }
51804
53154
  };
51805
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
+
51806
53508
  function cov_1qf21ie77k() {
51807
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";
51808
- var hash = "1984a9fc673a0378e65f1b8826a304ab3d953c43";
53510
+ var hash = "c6aac8704962d0f5cd2f65142b8c06e3df87d522";
51809
53511
  var global = new Function("return this")();
51810
53512
  var gcv = "__coverage__";
51811
53513
  var coverageData = {
@@ -51814,261 +53516,341 @@
51814
53516
  "0": {
51815
53517
  start: {
51816
53518
  line: 7,
51817
- column: 23
53519
+ column: 19
51818
53520
  },
51819
53521
  end: {
51820
- line: 12,
51821
- column: 3
53522
+ line: 7,
53523
+ column: 23
51822
53524
  }
51823
53525
  },
51824
53526
  "1": {
51825
53527
  start: {
51826
- line: 8,
51827
- column: 2
53528
+ line: 9,
53529
+ column: 23
51828
53530
  },
51829
53531
  end: {
51830
- line: 12,
53532
+ line: 14,
51831
53533
  column: 3
51832
53534
  }
51833
53535
  },
51834
53536
  "2": {
51835
53537
  start: {
51836
53538
  line: 10,
53539
+ column: 2
53540
+ },
53541
+ end: {
53542
+ line: 14,
53543
+ column: 3
53544
+ }
53545
+ },
53546
+ "3": {
53547
+ start: {
53548
+ line: 12,
51837
53549
  column: 6
51838
53550
  },
51839
53551
  end: {
51840
- line: 10,
53552
+ line: 12,
51841
53553
  column: 16
51842
53554
  }
51843
53555
  },
51844
- "3": {
53556
+ "4": {
51845
53557
  start: {
51846
- line: 14,
53558
+ line: 16,
51847
53559
  column: 26
51848
53560
  },
51849
53561
  end: {
51850
- line: 23,
51851
- column: 2
53562
+ line: 25,
53563
+ column: 1
51852
53564
  }
51853
53565
  },
51854
- "4": {
53566
+ "5": {
51855
53567
  start: {
51856
- line: 15,
53568
+ line: 17,
51857
53569
  column: 2
51858
53570
  },
51859
53571
  end: {
51860
- line: 22,
53572
+ line: 24,
51861
53573
  column: 3
51862
53574
  }
51863
53575
  },
51864
- "5": {
53576
+ "6": {
51865
53577
  start: {
51866
- line: 16,
53578
+ line: 18,
51867
53579
  column: 21
51868
53580
  },
51869
53581
  end: {
51870
- line: 16,
51871
- column: 65
53582
+ line: 18,
53583
+ column: 65
53584
+ }
53585
+ },
53586
+ "7": {
53587
+ start: {
53588
+ line: 19,
53589
+ column: 27
53590
+ },
53591
+ end: {
53592
+ line: 19,
53593
+ column: 51
53594
+ }
53595
+ },
53596
+ "8": {
53597
+ start: {
53598
+ line: 21,
53599
+ column: 4
53600
+ },
53601
+ end: {
53602
+ line: 21,
53603
+ column: 26
53604
+ }
53605
+ },
53606
+ "9": {
53607
+ start: {
53608
+ line: 23,
53609
+ column: 4
53610
+ },
53611
+ end: {
53612
+ line: 23,
53613
+ column: 14
53614
+ }
53615
+ },
53616
+ "10": {
53617
+ start: {
53618
+ line: 27,
53619
+ column: 26
53620
+ },
53621
+ end: {
53622
+ line: 32,
53623
+ column: 3
53624
+ }
53625
+ },
53626
+ "11": {
53627
+ start: {
53628
+ line: 28,
53629
+ column: 2
53630
+ },
53631
+ end: {
53632
+ line: 32,
53633
+ column: 3
53634
+ }
53635
+ },
53636
+ "12": {
53637
+ start: {
53638
+ line: 31,
53639
+ column: 11
53640
+ },
53641
+ end: {
53642
+ line: 31,
53643
+ column: 53
53644
+ }
53645
+ },
53646
+ "13": {
53647
+ start: {
53648
+ line: 42,
53649
+ column: 4
53650
+ },
53651
+ end: {
53652
+ line: 42,
53653
+ column: 59
51872
53654
  }
51873
53655
  },
51874
- "6": {
53656
+ "14": {
51875
53657
  start: {
51876
- line: 17,
51877
- column: 27
53658
+ line: 42,
53659
+ column: 49
51878
53660
  },
51879
53661
  end: {
51880
- line: 17,
51881
- column: 51
53662
+ line: 42,
53663
+ column: 59
51882
53664
  }
51883
53665
  },
51884
- "7": {
53666
+ "15": {
51885
53667
  start: {
51886
- line: 19,
53668
+ line: 44,
51887
53669
  column: 4
51888
53670
  },
51889
53671
  end: {
51890
- line: 19,
51891
- column: 26
53672
+ line: 44,
53673
+ column: 62
51892
53674
  }
51893
53675
  },
51894
- "8": {
53676
+ "16": {
51895
53677
  start: {
51896
- line: 21,
53678
+ line: 46,
51897
53679
  column: 4
51898
53680
  },
51899
53681
  end: {
51900
- line: 21,
51901
- column: 14
53682
+ line: 74,
53683
+ column: 6
51902
53684
  }
51903
53685
  },
51904
- "9": {
53686
+ "17": {
51905
53687
  start: {
51906
- line: 32,
51907
- column: 22
53688
+ line: 48,
53689
+ column: 25
51908
53690
  },
51909
53691
  end: {
51910
- line: 56,
51911
- column: 3
53692
+ line: 48,
53693
+ column: 46
51912
53694
  }
51913
53695
  },
51914
- "10": {
53696
+ "18": {
51915
53697
  start: {
51916
- line: 34,
51917
- column: 23
53698
+ line: 50,
53699
+ column: 10
51918
53700
  },
51919
53701
  end: {
51920
- line: 34,
51921
- column: 44
53702
+ line: 50,
53703
+ column: 58
51922
53704
  }
51923
53705
  },
51924
- "11": {
53706
+ "19": {
51925
53707
  start: {
51926
- line: 36,
53708
+ line: 51,
51927
53709
  column: 8
51928
53710
  },
51929
53711
  end: {
51930
- line: 36,
51931
- column: 56
53712
+ line: 51,
53713
+ column: 39
51932
53714
  }
51933
53715
  },
51934
- "12": {
53716
+ "20": {
51935
53717
  start: {
51936
- line: 37,
51937
- column: 6
53718
+ line: 51,
53719
+ column: 32
51938
53720
  },
51939
53721
  end: {
51940
- line: 37,
51941
- column: 37
53722
+ line: 51,
53723
+ column: 39
51942
53724
  }
51943
53725
  },
51944
- "13": {
53726
+ "21": {
51945
53727
  start: {
51946
- line: 37,
51947
- column: 30
53728
+ line: 54,
53729
+ column: 10
51948
53730
  },
51949
53731
  end: {
51950
- line: 37,
51951
- column: 37
53732
+ line: 54,
53733
+ column: 52
51952
53734
  }
51953
53735
  },
51954
- "14": {
53736
+ "22": {
51955
53737
  start: {
51956
- line: 39,
51957
- column: 36
53738
+ line: 55,
53739
+ column: 8
51958
53740
  },
51959
53741
  end: {
51960
- line: 39,
51961
- column: 78
53742
+ line: 55,
53743
+ column: 43
51962
53744
  }
51963
53745
  },
51964
- "15": {
53746
+ "23": {
51965
53747
  start: {
51966
- line: 40,
51967
- column: 6
53748
+ line: 55,
53749
+ column: 36
51968
53750
  },
51969
53751
  end: {
51970
- line: 40,
51971
- column: 41
53752
+ line: 55,
53753
+ column: 43
51972
53754
  }
51973
53755
  },
51974
- "16": {
53756
+ "24": {
51975
53757
  start: {
51976
- line: 40,
51977
- column: 34
53758
+ line: 57,
53759
+ column: 8
51978
53760
  },
51979
53761
  end: {
51980
- line: 40,
51981
- column: 41
53762
+ line: 61,
53763
+ column: 9
51982
53764
  }
51983
53765
  },
51984
- "17": {
53766
+ "25": {
51985
53767
  start: {
51986
- line: 42,
51987
- column: 27
53768
+ line: 58,
53769
+ column: 10
51988
53770
  },
51989
53771
  end: {
51990
- line: 44,
51991
- column: 7
53772
+ line: 60,
53773
+ column: 12
51992
53774
  }
51993
53775
  },
51994
- "18": {
53776
+ "26": {
51995
53777
  start: {
51996
- line: 45,
51997
- column: 28
53778
+ line: 63,
53779
+ column: 30
51998
53780
  },
51999
53781
  end: {
52000
- line: 45,
52001
- column: 64
53782
+ line: 63,
53783
+ column: 66
52002
53784
  }
52003
53785
  },
52004
- "19": {
53786
+ "27": {
52005
53787
  start: {
52006
- line: 46,
52007
- column: 6
53788
+ line: 64,
53789
+ column: 8
52008
53790
  },
52009
53791
  end: {
52010
- line: 46,
52011
- column: 33
53792
+ line: 64,
53793
+ column: 35
52012
53794
  }
52013
53795
  },
52014
- "20": {
53796
+ "28": {
52015
53797
  start: {
52016
- line: 46,
52017
- column: 26
53798
+ line: 64,
53799
+ column: 28
52018
53800
  },
52019
53801
  end: {
52020
- line: 46,
52021
- column: 33
53802
+ line: 64,
53803
+ column: 35
52022
53804
  }
52023
53805
  },
52024
- "21": {
53806
+ "29": {
52025
53807
  start: {
52026
- line: 48,
52027
- column: 24
53808
+ line: 66,
53809
+ column: 26
52028
53810
  },
52029
53811
  end: {
52030
- line: 48,
52031
- column: 37
53812
+ line: 66,
53813
+ column: 39
52032
53814
  }
52033
53815
  },
52034
- "22": {
53816
+ "30": {
52035
53817
  start: {
52036
- line: 49,
52037
- column: 22
53818
+ line: 67,
53819
+ column: 24
52038
53820
  },
52039
53821
  end: {
52040
- line: 51,
52041
- column: 7
53822
+ line: 69,
53823
+ column: 9
52042
53824
  }
52043
53825
  },
52044
- "23": {
53826
+ "31": {
52045
53827
  start: {
52046
- line: 52,
52047
- column: 6
53828
+ line: 70,
53829
+ column: 8
52048
53830
  },
52049
53831
  end: {
52050
- line: 52,
52051
- column: 26
53832
+ line: 70,
53833
+ column: 28
52052
53834
  }
52053
53835
  },
52054
- "24": {
53836
+ "32": {
52055
53837
  start: {
52056
- line: 52,
52057
- column: 19
53838
+ line: 70,
53839
+ column: 21
52058
53840
  },
52059
53841
  end: {
52060
- line: 52,
52061
- column: 26
53842
+ line: 70,
53843
+ column: 28
52062
53844
  }
52063
53845
  },
52064
- "25": {
53846
+ "33": {
52065
53847
  start: {
52066
- line: 54,
52067
- column: 6
53848
+ line: 72,
53849
+ column: 8
52068
53850
  },
52069
53851
  end: {
52070
- line: 54,
52071
- column: 66
53852
+ line: 72,
53853
+ column: 68
52072
53854
  }
52073
53855
  }
52074
53856
  },
@@ -52077,177 +53859,225 @@
52077
53859
  name: "(anonymous_0)",
52078
53860
  decl: {
52079
53861
  start: {
52080
- line: 7,
53862
+ line: 9,
52081
53863
  column: 23
52082
53864
  },
52083
53865
  end: {
52084
- line: 7,
53866
+ line: 9,
52085
53867
  column: 24
52086
53868
  }
52087
53869
  },
52088
53870
  loc: {
52089
53871
  start: {
52090
- line: 8,
53872
+ line: 10,
52091
53873
  column: 2
52092
53874
  },
52093
53875
  end: {
52094
- line: 12,
53876
+ line: 14,
52095
53877
  column: 3
52096
53878
  }
52097
53879
  },
52098
- line: 8
53880
+ line: 10
52099
53881
  },
52100
53882
  "1": {
52101
53883
  name: "(anonymous_1)",
52102
53884
  decl: {
52103
53885
  start: {
52104
- line: 9,
53886
+ line: 11,
52105
53887
  column: 67
52106
53888
  },
52107
53889
  end: {
52108
- line: 9,
53890
+ line: 11,
52109
53891
  column: 68
52110
53892
  }
52111
53893
  },
52112
53894
  loc: {
52113
53895
  start: {
52114
- line: 10,
53896
+ line: 12,
52115
53897
  column: 6
52116
53898
  },
52117
53899
  end: {
52118
- line: 10,
53900
+ line: 12,
52119
53901
  column: 16
52120
53902
  }
52121
53903
  },
52122
- line: 10
53904
+ line: 12
52123
53905
  },
52124
53906
  "2": {
52125
53907
  name: "(anonymous_2)",
52126
53908
  decl: {
52127
53909
  start: {
52128
- line: 14,
52129
- column: 48
53910
+ line: 16,
53911
+ column: 26
52130
53912
  },
52131
53913
  end: {
52132
- line: 14,
52133
- column: 49
53914
+ line: 16,
53915
+ column: 27
52134
53916
  }
52135
53917
  },
52136
53918
  loc: {
52137
53919
  start: {
52138
- line: 14,
52139
- column: 68
53920
+ line: 16,
53921
+ column: 46
52140
53922
  },
52141
53923
  end: {
52142
- line: 23,
53924
+ line: 25,
52143
53925
  column: 1
52144
53926
  }
52145
53927
  },
52146
- line: 14
53928
+ line: 16
52147
53929
  },
52148
53930
  "3": {
52149
53931
  name: "(anonymous_3)",
52150
53932
  decl: {
52151
53933
  start: {
52152
- line: 32,
52153
- column: 10
53934
+ line: 27,
53935
+ column: 26
52154
53936
  },
52155
53937
  end: {
52156
- line: 32,
52157
- column: 11
53938
+ line: 27,
53939
+ column: 27
52158
53940
  }
52159
53941
  },
52160
53942
  loc: {
52161
53943
  start: {
52162
- line: 32,
52163
- column: 22
53944
+ line: 28,
53945
+ column: 2
52164
53946
  },
52165
53947
  end: {
52166
- line: 56,
53948
+ line: 32,
52167
53949
  column: 3
52168
53950
  }
52169
53951
  },
52170
- line: 32
53952
+ line: 28
52171
53953
  },
52172
53954
  "4": {
52173
53955
  name: "(anonymous_4)",
52174
53956
  decl: {
52175
53957
  start: {
52176
- line: 33,
53958
+ line: 31,
52177
53959
  column: 4
52178
53960
  },
52179
53961
  end: {
52180
- line: 33,
53962
+ line: 31,
52181
53963
  column: 5
52182
53964
  }
52183
53965
  },
52184
53966
  loc: {
52185
53967
  start: {
52186
- line: 33,
52187
- column: 19
53968
+ line: 31,
53969
+ column: 11
52188
53970
  },
52189
53971
  end: {
52190
- line: 55,
52191
- column: 5
53972
+ line: 31,
53973
+ column: 53
52192
53974
  }
52193
53975
  },
52194
- line: 33
53976
+ line: 31
53977
+ },
53978
+ "5": {
53979
+ name: "(anonymous_5)",
53980
+ decl: {
53981
+ start: {
53982
+ line: 41,
53983
+ column: 10
53984
+ },
53985
+ end: {
53986
+ line: 41,
53987
+ column: 11
53988
+ }
53989
+ },
53990
+ loc: {
53991
+ start: {
53992
+ line: 41,
53993
+ column: 21
53994
+ },
53995
+ end: {
53996
+ line: 75,
53997
+ column: 3
53998
+ }
53999
+ },
54000
+ line: 41
54001
+ },
54002
+ "6": {
54003
+ name: "(anonymous_6)",
54004
+ decl: {
54005
+ start: {
54006
+ line: 47,
54007
+ column: 6
54008
+ },
54009
+ end: {
54010
+ line: 47,
54011
+ column: 7
54012
+ }
54013
+ },
54014
+ loc: {
54015
+ start: {
54016
+ line: 47,
54017
+ column: 21
54018
+ },
54019
+ end: {
54020
+ line: 73,
54021
+ column: 7
54022
+ }
54023
+ },
54024
+ line: 47
52195
54025
  }
52196
54026
  },
52197
54027
  branchMap: {
52198
54028
  "0": {
52199
54029
  loc: {
52200
54030
  start: {
52201
- line: 10,
54031
+ line: 12,
52202
54032
  column: 6
52203
54033
  },
52204
54034
  end: {
52205
- line: 10,
54035
+ line: 12,
52206
54036
  column: 16
52207
54037
  }
52208
54038
  },
52209
54039
  type: "cond-expr",
52210
54040
  locations: [{
52211
54041
  start: {
52212
- line: 10,
54042
+ line: 12,
52213
54043
  column: 10
52214
54044
  },
52215
54045
  end: {
52216
- line: 10,
54046
+ line: 12,
52217
54047
  column: 12
52218
54048
  }
52219
54049
  }, {
52220
54050
  start: {
52221
- line: 10,
54051
+ line: 12,
52222
54052
  column: 15
52223
54053
  },
52224
54054
  end: {
52225
- line: 10,
54055
+ line: 12,
52226
54056
  column: 16
52227
54057
  }
52228
54058
  }],
52229
- line: 10
54059
+ line: 12
52230
54060
  },
52231
54061
  "1": {
52232
54062
  loc: {
52233
54063
  start: {
52234
- line: 37,
52235
- column: 6
54064
+ line: 42,
54065
+ column: 4
52236
54066
  },
52237
54067
  end: {
52238
- line: 37,
52239
- column: 37
54068
+ line: 42,
54069
+ column: 59
52240
54070
  }
52241
54071
  },
52242
54072
  type: "if",
52243
54073
  locations: [{
52244
54074
  start: {
52245
- line: 37,
52246
- column: 6
54075
+ line: 42,
54076
+ column: 4
52247
54077
  },
52248
54078
  end: {
52249
- line: 37,
52250
- column: 37
54079
+ line: 42,
54080
+ column: 59
52251
54081
  }
52252
54082
  }, {
52253
54083
  start: {
@@ -52259,28 +54089,28 @@
52259
54089
  column: undefined
52260
54090
  }
52261
54091
  }],
52262
- line: 37
54092
+ line: 42
52263
54093
  },
52264
54094
  "2": {
52265
54095
  loc: {
52266
54096
  start: {
52267
- line: 40,
52268
- column: 6
54097
+ line: 51,
54098
+ column: 8
52269
54099
  },
52270
54100
  end: {
52271
- line: 40,
52272
- column: 41
54101
+ line: 51,
54102
+ column: 39
52273
54103
  }
52274
54104
  },
52275
54105
  type: "if",
52276
54106
  locations: [{
52277
54107
  start: {
52278
- line: 40,
52279
- column: 6
54108
+ line: 51,
54109
+ column: 8
52280
54110
  },
52281
54111
  end: {
52282
- line: 40,
52283
- column: 41
54112
+ line: 51,
54113
+ column: 39
52284
54114
  }
52285
54115
  }, {
52286
54116
  start: {
@@ -52292,28 +54122,28 @@
52292
54122
  column: undefined
52293
54123
  }
52294
54124
  }],
52295
- line: 40
54125
+ line: 51
52296
54126
  },
52297
54127
  "3": {
52298
54128
  loc: {
52299
54129
  start: {
52300
- line: 46,
52301
- column: 6
54130
+ line: 55,
54131
+ column: 8
52302
54132
  },
52303
54133
  end: {
52304
- line: 46,
52305
- column: 33
54134
+ line: 55,
54135
+ column: 43
52306
54136
  }
52307
54137
  },
52308
54138
  type: "if",
52309
54139
  locations: [{
52310
54140
  start: {
52311
- line: 46,
52312
- column: 6
54141
+ line: 55,
54142
+ column: 8
52313
54143
  },
52314
54144
  end: {
52315
- line: 46,
52316
- column: 33
54145
+ line: 55,
54146
+ column: 43
52317
54147
  }
52318
54148
  }, {
52319
54149
  start: {
@@ -52325,28 +54155,28 @@
52325
54155
  column: undefined
52326
54156
  }
52327
54157
  }],
52328
- line: 46
54158
+ line: 55
52329
54159
  },
52330
54160
  "4": {
52331
54161
  loc: {
52332
54162
  start: {
52333
- line: 52,
52334
- column: 6
54163
+ line: 57,
54164
+ column: 8
52335
54165
  },
52336
54166
  end: {
52337
- line: 52,
52338
- column: 26
54167
+ line: 61,
54168
+ column: 9
52339
54169
  }
52340
54170
  },
52341
54171
  type: "if",
52342
54172
  locations: [{
52343
54173
  start: {
52344
- line: 52,
52345
- column: 6
54174
+ line: 57,
54175
+ column: 8
52346
54176
  },
52347
54177
  end: {
52348
- line: 52,
52349
- column: 26
54178
+ line: 61,
54179
+ column: 9
52350
54180
  }
52351
54181
  }, {
52352
54182
  start: {
@@ -52358,7 +54188,73 @@
52358
54188
  column: undefined
52359
54189
  }
52360
54190
  }],
52361
- line: 52
54191
+ line: 57
54192
+ },
54193
+ "5": {
54194
+ loc: {
54195
+ start: {
54196
+ line: 64,
54197
+ column: 8
54198
+ },
54199
+ end: {
54200
+ line: 64,
54201
+ column: 35
54202
+ }
54203
+ },
54204
+ type: "if",
54205
+ locations: [{
54206
+ start: {
54207
+ line: 64,
54208
+ column: 8
54209
+ },
54210
+ end: {
54211
+ line: 64,
54212
+ column: 35
54213
+ }
54214
+ }, {
54215
+ start: {
54216
+ line: undefined,
54217
+ column: undefined
54218
+ },
54219
+ end: {
54220
+ line: undefined,
54221
+ column: undefined
54222
+ }
54223
+ }],
54224
+ line: 64
54225
+ },
54226
+ "6": {
54227
+ loc: {
54228
+ start: {
54229
+ line: 70,
54230
+ column: 8
54231
+ },
54232
+ end: {
54233
+ line: 70,
54234
+ column: 28
54235
+ }
54236
+ },
54237
+ type: "if",
54238
+ locations: [{
54239
+ start: {
54240
+ line: 70,
54241
+ column: 8
54242
+ },
54243
+ end: {
54244
+ line: 70,
54245
+ column: 28
54246
+ }
54247
+ }, {
54248
+ start: {
54249
+ line: undefined,
54250
+ column: undefined
54251
+ },
54252
+ end: {
54253
+ line: undefined,
54254
+ column: undefined
54255
+ }
54256
+ }],
54257
+ line: 70
52362
54258
  }
52363
54259
  },
52364
54260
  s: {
@@ -52387,24 +54283,36 @@
52387
54283
  "22": 0,
52388
54284
  "23": 0,
52389
54285
  "24": 0,
52390
- "25": 0
54286
+ "25": 0,
54287
+ "26": 0,
54288
+ "27": 0,
54289
+ "28": 0,
54290
+ "29": 0,
54291
+ "30": 0,
54292
+ "31": 0,
54293
+ "32": 0,
54294
+ "33": 0
52391
54295
  },
52392
54296
  f: {
52393
54297
  "0": 0,
52394
54298
  "1": 0,
52395
54299
  "2": 0,
52396
54300
  "3": 0,
52397
- "4": 0
54301
+ "4": 0,
54302
+ "5": 0,
54303
+ "6": 0
52398
54304
  },
52399
54305
  b: {
52400
54306
  "0": [0, 0],
52401
54307
  "1": [0, 0],
52402
54308
  "2": [0, 0],
52403
54309
  "3": [0, 0],
52404
- "4": [0, 0]
54310
+ "4": [0, 0],
54311
+ "5": [0, 0],
54312
+ "6": [0, 0]
52405
54313
  },
52406
54314
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
52407
- hash: "1984a9fc673a0378e65f1b8826a304ab3d953c43"
54315
+ hash: "c6aac8704962d0f5cd2f65142b8c06e3df87d522"
52408
54316
  };
52409
54317
  var coverage = global[gcv] || (global[gcv] = {});
52410
54318
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -52420,29 +54328,43 @@
52420
54328
  return actualCoverage;
52421
54329
  }
52422
54330
  cov_1qf21ie77k();
52423
- cov_1qf21ie77k().s[0]++;
54331
+ var jsconfigData = (cov_1qf21ie77k().s[0]++, null);
54332
+ cov_1qf21ie77k().s[1]++;
52424
54333
  var removeComments = function removeComments(json) {
52425
54334
  cov_1qf21ie77k().f[0]++;
52426
- cov_1qf21ie77k().s[1]++;
54335
+ cov_1qf21ie77k().s[2]++;
52427
54336
  return JSON.parse(json.replace(/\\"|"(?:\\"|[^"])*"|(\/\/.*|\/\*[\s\S]*?\*\/)/g, function (m, g) {
52428
54337
  cov_1qf21ie77k().f[1]++;
52429
- cov_1qf21ie77k().s[2]++;
54338
+ cov_1qf21ie77k().s[3]++;
52430
54339
  return g ? (cov_1qf21ie77k().b[0][0]++, "") : (cov_1qf21ie77k().b[0][1]++, m);
52431
54340
  }));
52432
54341
  };
52433
- var parseJsconfigData = (cov_1qf21ie77k().s[3]++, ramda.memoizeWith(ramda.identity, function (jsconfigFilePath) {
54342
+ cov_1qf21ie77k().s[4]++;
54343
+ var parseJsconfigData = function parseJsconfigData(jsconfigFilePath) {
52434
54344
  cov_1qf21ie77k().f[2]++;
52435
- cov_1qf21ie77k().s[4]++;
54345
+ cov_1qf21ie77k().s[5]++;
52436
54346
  try {
52437
- var jsonData = (cov_1qf21ie77k().s[5]++, fs__default["default"].readFileSync(jsconfigFilePath).toString());
52438
- var parsedJsonData = (cov_1qf21ie77k().s[6]++, removeComments(jsonData));
52439
- cov_1qf21ie77k().s[7]++;
54347
+ var jsonData = (cov_1qf21ie77k().s[6]++, fs__default["default"].readFileSync(jsconfigFilePath).toString());
54348
+ var parsedJsonData = (cov_1qf21ie77k().s[7]++, removeComments(jsonData));
54349
+ cov_1qf21ie77k().s[8]++;
52440
54350
  return parsedJsonData;
52441
54351
  } catch (_unused) {
52442
- cov_1qf21ie77k().s[8]++;
54352
+ cov_1qf21ie77k().s[9]++;
52443
54353
  return {};
52444
54354
  }
52445
- }));
54355
+ };
54356
+ cov_1qf21ie77k().s[10]++;
54357
+ var watchJsConfigFile = function watchJsConfigFile(filePath) {
54358
+ cov_1qf21ie77k().f[3]++;
54359
+ cov_1qf21ie77k().s[11]++;
54360
+ return fs__default["default"].watch(filePath, {
54361
+ persistent: false
54362
+ }, function () {
54363
+ cov_1qf21ie77k().f[4]++;
54364
+ cov_1qf21ie77k().s[12]++;
54365
+ return jsconfigData = parseJsconfigData(filePath);
54366
+ });
54367
+ };
52446
54368
  var webpackAliasesAndJsconfigPathsShouldBeInSync = {
52447
54369
  meta: {
52448
54370
  type: "problem",
@@ -52451,52 +54373,71 @@
52451
54373
  }
52452
54374
  },
52453
54375
  create: function create(context) {
52454
- cov_1qf21ie77k().f[3]++;
52455
- cov_1qf21ie77k().s[9]++;
54376
+ var _context$options, _context$options$, _context$options2, _context$options2$;
54377
+ cov_1qf21ie77k().f[5]++;
54378
+ cov_1qf21ie77k().s[13]++;
54379
+ if (!((_context$options = context.options) !== null && _context$options !== void 0 && (_context$options$ = _context$options[0]) !== null && _context$options$ !== void 0 && _context$options$.jsconfigFilePath)) {
54380
+ cov_1qf21ie77k().b[1][0]++;
54381
+ cov_1qf21ie77k().s[14]++;
54382
+ return {};
54383
+ } else {
54384
+ cov_1qf21ie77k().b[1][1]++;
54385
+ }
54386
+ cov_1qf21ie77k().s[15]++;
54387
+ watchJsConfigFile((_context$options2 = context.options) === null || _context$options2 === void 0 ? void 0 : (_context$options2$ = _context$options2[0]) === null || _context$options2$ === void 0 ? void 0 : _context$options2$.jsconfigFilePath);
54388
+ cov_1qf21ie77k().s[16]++;
52456
54389
  return {
52457
54390
  Property: function Property(node) {
52458
- var _context$options, _context$options$, _node$parent, _node$parent$parent, _node$parent$parent$k, _context$options2, _context$options2$, _jsconfigData$compile;
52459
- cov_1qf21ie77k().f[4]++;
52460
- var filename = (cov_1qf21ie77k().s[10]++, context.getFilename());
52461
- var isInsideAliasFile = (cov_1qf21ie77k().s[11]++, filename === ((_context$options = context.options) === null || _context$options === void 0 ? void 0 : (_context$options$ = _context$options[0]) === null || _context$options$ === void 0 ? void 0 : _context$options$.aliasFilePath));
52462
- cov_1qf21ie77k().s[12]++;
54391
+ var _context$options3, _context$options3$, _node$parent, _node$parent$parent, _node$parent$parent$k, _jsconfigData, _jsconfigData$compile;
54392
+ cov_1qf21ie77k().f[6]++;
54393
+ var filename = (cov_1qf21ie77k().s[17]++, context.getFilename());
54394
+ var isInsideAliasFile = (cov_1qf21ie77k().s[18]++, filename === ((_context$options3 = context.options) === null || _context$options3 === void 0 ? void 0 : (_context$options3$ = _context$options3[0]) === null || _context$options3$ === void 0 ? void 0 : _context$options3$.aliasFilePath));
54395
+ cov_1qf21ie77k().s[19]++;
52463
54396
  if (!isInsideAliasFile) {
52464
- cov_1qf21ie77k().b[1][0]++;
52465
- cov_1qf21ie77k().s[13]++;
54397
+ cov_1qf21ie77k().b[2][0]++;
54398
+ cov_1qf21ie77k().s[20]++;
52466
54399
  return;
52467
54400
  } else {
52468
- cov_1qf21ie77k().b[1][1]++;
54401
+ cov_1qf21ie77k().b[2][1]++;
52469
54402
  }
52470
- var isInsideAliasProperty = (cov_1qf21ie77k().s[14]++, ((_node$parent = node.parent) === null || _node$parent === void 0 ? void 0 : (_node$parent$parent = _node$parent.parent) === null || _node$parent$parent === void 0 ? void 0 : (_node$parent$parent$k = _node$parent$parent.key) === null || _node$parent$parent$k === void 0 ? void 0 : _node$parent$parent$k.name) === "alias");
52471
- cov_1qf21ie77k().s[15]++;
54403
+ var isInsideAliasProperty = (cov_1qf21ie77k().s[21]++, ((_node$parent = node.parent) === null || _node$parent === void 0 ? void 0 : (_node$parent$parent = _node$parent.parent) === null || _node$parent$parent === void 0 ? void 0 : (_node$parent$parent$k = _node$parent$parent.key) === null || _node$parent$parent$k === void 0 ? void 0 : _node$parent$parent$k.name) === "alias");
54404
+ cov_1qf21ie77k().s[22]++;
52472
54405
  if (!isInsideAliasProperty) {
52473
- cov_1qf21ie77k().b[2][0]++;
52474
- cov_1qf21ie77k().s[16]++;
54406
+ cov_1qf21ie77k().b[3][0]++;
54407
+ cov_1qf21ie77k().s[23]++;
52475
54408
  return;
52476
54409
  } else {
52477
- cov_1qf21ie77k().b[2][1]++;
54410
+ cov_1qf21ie77k().b[3][1]++;
52478
54411
  }
52479
- var jsconfigData = (cov_1qf21ie77k().s[17]++, parseJsconfigData((_context$options2 = context.options) === null || _context$options2 === void 0 ? void 0 : (_context$options2$ = _context$options2[0]) === null || _context$options2$ === void 0 ? void 0 : _context$options2$.jsconfigFilePath));
52480
- var jsconfigPaths = (cov_1qf21ie77k().s[18]++, jsconfigData === null || jsconfigData === void 0 ? void 0 : (_jsconfigData$compile = jsconfigData.compilerOptions) === null || _jsconfigData$compile === void 0 ? void 0 : _jsconfigData$compile.paths);
52481
- cov_1qf21ie77k().s[19]++;
54412
+ cov_1qf21ie77k().s[24]++;
54413
+ if (jsconfigData === null) {
54414
+ var _context$options4, _context$options4$;
54415
+ cov_1qf21ie77k().b[4][0]++;
54416
+ cov_1qf21ie77k().s[25]++;
54417
+ jsconfigData = parseJsconfigData((_context$options4 = context.options) === null || _context$options4 === void 0 ? void 0 : (_context$options4$ = _context$options4[0]) === null || _context$options4$ === void 0 ? void 0 : _context$options4$.jsconfigFilePath);
54418
+ } else {
54419
+ cov_1qf21ie77k().b[4][1]++;
54420
+ }
54421
+ var jsconfigPaths = (cov_1qf21ie77k().s[26]++, (_jsconfigData = jsconfigData) === null || _jsconfigData === void 0 ? void 0 : (_jsconfigData$compile = _jsconfigData.compilerOptions) === null || _jsconfigData$compile === void 0 ? void 0 : _jsconfigData$compile.paths);
54422
+ cov_1qf21ie77k().s[27]++;
52482
54423
  if (!jsconfigPaths) {
52483
- cov_1qf21ie77k().b[3][0]++;
52484
- cov_1qf21ie77k().s[20]++;
54424
+ cov_1qf21ie77k().b[5][0]++;
54425
+ cov_1qf21ie77k().s[28]++;
52485
54426
  return;
52486
54427
  } else {
52487
- cov_1qf21ie77k().b[3][1]++;
54428
+ cov_1qf21ie77k().b[5][1]++;
52488
54429
  }
52489
- var aliasName = (cov_1qf21ie77k().s[21]++, node.key.name);
52490
- var matches = (cov_1qf21ie77k().s[22]++, Object.keys(jsconfigPaths).some(ramda.includes(ramda.__, [aliasName, "".concat(aliasName, "/*")])));
52491
- cov_1qf21ie77k().s[23]++;
54430
+ var aliasName = (cov_1qf21ie77k().s[29]++, node.key.name);
54431
+ var matches = (cov_1qf21ie77k().s[30]++, Object.keys(jsconfigPaths).some(ramda.includes(ramda.__, [aliasName, "".concat(aliasName, "/*")])));
54432
+ cov_1qf21ie77k().s[31]++;
52492
54433
  if (matches) {
52493
- cov_1qf21ie77k().b[4][0]++;
52494
- cov_1qf21ie77k().s[24]++;
54434
+ cov_1qf21ie77k().b[6][0]++;
54435
+ cov_1qf21ie77k().s[32]++;
52495
54436
  return;
52496
54437
  } else {
52497
- cov_1qf21ie77k().b[4][1]++;
54438
+ cov_1qf21ie77k().b[6][1]++;
52498
54439
  }
52499
- cov_1qf21ie77k().s[25]++;
54440
+ cov_1qf21ie77k().s[33]++;
52500
54441
  context.report({
52501
54442
  node: node,
52502
54443
  message: addInJsconfig(aliasName)
@@ -54067,7 +56008,6 @@
54067
56008
  cov_1cnpbb28xs();
54068
56009
  var index = {
54069
56010
  rules: {
54070
- "use-neeto-in-strings": useNeetoInStrings,
54071
56011
  "api-connector-name-should-match-filename": apiConnectorNameShouldMatchFilename,
54072
56012
  "api-connector-should-use-default-export": apiConnectorShouldUseDefaultExport,
54073
56013
  "combine-multiple-independent-awaits": combineMultipleIndependentAwaits,
@@ -54075,6 +56015,7 @@
54075
56015
  "ensure-zustand-stores-are-type-annotated": ensureZustandStoresAreTypeAnnotated,
54076
56016
  "files-inside-react-query-folder-should-end-with-api": filesInsideReactQueryFolderShouldEndWithApi,
54077
56017
  "file-name-and-export-name-standards": fileNameAndExportNameStandards,
56018
+ "hard-coded-strings-should-be-localized": hardCodedStringsShouldBeLocalized,
54078
56019
  "minimize-zustand-store-access-scope": minimizeZustandStoreAccessScope,
54079
56020
  "neetocommons-tips": neetocommonsTips,
54080
56021
  "no-blacklisted-imports": noBlacklistedImports,
@@ -54103,6 +56044,7 @@
54103
56044
  "use-components-children-prop-in-trans": useComponentsChildrenPropInTrans,
54104
56045
  "use-i18next-plurals": useI18nextPlurals,
54105
56046
  "use-inline-svg-for-render": useInlineSvgForRender,
56047
+ "use-neeto-in-strings": useNeetoInStrings,
54106
56048
  "use-neetoui-classes": useNeetouiClasses,
54107
56049
  "use-pluralize-package": usePluralizePackage,
54108
56050
  "use-react-query-for-managing-remote-data": useReactQueryForManagingRemoteData,
@@ -54113,7 +56055,8 @@
54113
56055
  "use-zustand-for-global-state-management": useZustandForGlobalStateManagement,
54114
56056
  "webpack-aliases-and-jsconfig-paths-should-be-in-sync": webpackAliasesAndJsconfigPathsShouldBeInSync,
54115
56057
  "zustand-recommend-comparator-function-usage": zustandRecommendComparatorFunctionUsage,
54116
- "zustand-use-prop-to-pick-single-item": zustandUsePropToPickSingleItem
56058
+ "zustand-use-prop-to-pick-single-item": zustandUsePropToPickSingleItem,
56059
+ "use-zustand-pick-transformer": useZustandPickTransformer
54117
56060
  },
54118
56061
  configs: {
54119
56062
  recommended: recommended