@bigbinary/eslint-plugin-neeto 1.0.40 → 1.0.41

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 (2) hide show
  1. package/dist/index.js +234 -170
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -21357,7 +21357,7 @@
21357
21357
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21358
21358
  var translationFiles = (cov_1dbv2r7tr6().s[0]++, []);
21359
21359
  var previousOptions = (cov_1dbv2r7tr6().s[1]++, null);
21360
- var watcher = (cov_1dbv2r7tr6().s[2]++, null);
21360
+ var watcher$1 = (cov_1dbv2r7tr6().s[2]++, null);
21361
21361
  var i18next = (cov_1dbv2r7tr6().s[3]++, ramda.memoizeWith(function () {
21362
21362
  cov_1dbv2r7tr6().f[0]++;
21363
21363
  cov_1dbv2r7tr6().s[4]++;
@@ -21390,7 +21390,7 @@
21390
21390
  var watchTranslationsDir = function watchTranslationsDir(translationsDirPath) {
21391
21391
  cov_1dbv2r7tr6().f[3]++;
21392
21392
  cov_1dbv2r7tr6().s[13]++;
21393
- return watcher = fs.watch(translationsDirPath, {
21393
+ return watcher$1 = fs.watch(translationsDirPath, {
21394
21394
  persistent: false
21395
21395
  }, function (_, changedFileName) {
21396
21396
  cov_1dbv2r7tr6().f[4]++;
@@ -21526,7 +21526,7 @@
21526
21526
  cov_1dbv2r7tr6().b[6][1]++;
21527
21527
  }
21528
21528
  cov_1dbv2r7tr6().s[40]++;
21529
- if (!watcher) {
21529
+ if (!watcher$1) {
21530
21530
  cov_1dbv2r7tr6().b[7][0]++;
21531
21531
  cov_1dbv2r7tr6().s[41]++;
21532
21532
  watchTranslationsDir(context.options[0].translationsDir);
@@ -52313,7 +52313,7 @@
52313
52313
 
52314
52314
  function cov_1qf21ie77k() {
52315
52315
  var path = "/home/runner/work/eslint-plugin-neeto/eslint-plugin-neeto/src/lib/rules/webpack-aliases-and-jsconfig-paths-should-be-in-sync.js";
52316
- var hash = "6f4d69e46c06f0f4dd2f2bc5a765b30a9a62efe3";
52316
+ var hash = "8a9e23dd18d6ad26961969c2cc9e23399eb291a7";
52317
52317
  var global = new Function("return this")();
52318
52318
  var gcv = "__coverage__";
52319
52319
  var coverageData = {
@@ -52331,241 +52331,261 @@
52331
52331
  },
52332
52332
  "1": {
52333
52333
  start: {
52334
- line: 10,
52335
- column: 26
52334
+ line: 9,
52335
+ column: 14
52336
52336
  },
52337
52337
  end: {
52338
- line: 15,
52339
- column: 3
52338
+ line: 9,
52339
+ column: 18
52340
52340
  }
52341
52341
  },
52342
52342
  "2": {
52343
52343
  start: {
52344
52344
  line: 11,
52345
- column: 2
52345
+ column: 26
52346
52346
  },
52347
52347
  end: {
52348
- line: 15,
52349
- column: 3
52348
+ line: 16,
52349
+ column: 4
52350
52350
  }
52351
52351
  },
52352
52352
  "3": {
52353
52353
  start: {
52354
- line: 14,
52354
+ line: 12,
52355
+ column: 3
52356
+ },
52357
+ end: {
52358
+ line: 16,
52359
+ column: 3
52360
+ }
52361
+ },
52362
+ "4": {
52363
+ start: {
52364
+ line: 15,
52355
52365
  column: 11
52356
52366
  },
52357
52367
  end: {
52358
- line: 14,
52368
+ line: 15,
52359
52369
  column: 49
52360
52370
  }
52361
52371
  },
52362
- "4": {
52372
+ "5": {
52363
52373
  start: {
52364
- line: 25,
52374
+ line: 26,
52365
52375
  column: 4
52366
52376
  },
52367
52377
  end: {
52368
- line: 25,
52378
+ line: 26,
52369
52379
  column: 59
52370
52380
  }
52371
52381
  },
52372
- "5": {
52382
+ "6": {
52373
52383
  start: {
52374
- line: 25,
52384
+ line: 26,
52375
52385
  column: 49
52376
52386
  },
52377
52387
  end: {
52378
- line: 25,
52388
+ line: 26,
52379
52389
  column: 59
52380
52390
  }
52381
52391
  },
52382
- "6": {
52392
+ "7": {
52383
52393
  start: {
52384
- line: 27,
52394
+ line: 28,
52385
52395
  column: 4
52386
52396
  },
52387
52397
  end: {
52388
- line: 27,
52389
- column: 62
52398
+ line: 28,
52399
+ column: 76
52390
52400
  }
52391
52401
  },
52392
- "7": {
52402
+ "8": {
52393
52403
  start: {
52394
- line: 29,
52404
+ line: 28,
52405
+ column: 18
52406
+ },
52407
+ end: {
52408
+ line: 28,
52409
+ column: 76
52410
+ }
52411
+ },
52412
+ "9": {
52413
+ start: {
52414
+ line: 30,
52395
52415
  column: 4
52396
52416
  },
52397
52417
  end: {
52398
- line: 55,
52418
+ line: 56,
52399
52419
  column: 6
52400
52420
  }
52401
52421
  },
52402
- "8": {
52422
+ "10": {
52403
52423
  start: {
52404
- line: 31,
52424
+ line: 32,
52405
52425
  column: 25
52406
52426
  },
52407
52427
  end: {
52408
- line: 31,
52428
+ line: 32,
52409
52429
  column: 46
52410
52430
  }
52411
52431
  },
52412
- "9": {
52432
+ "11": {
52413
52433
  start: {
52414
- line: 33,
52434
+ line: 34,
52415
52435
  column: 10
52416
52436
  },
52417
52437
  end: {
52418
- line: 33,
52438
+ line: 34,
52419
52439
  column: 58
52420
52440
  }
52421
52441
  },
52422
- "10": {
52442
+ "12": {
52423
52443
  start: {
52424
- line: 34,
52444
+ line: 35,
52425
52445
  column: 8
52426
52446
  },
52427
52447
  end: {
52428
- line: 34,
52448
+ line: 35,
52429
52449
  column: 39
52430
52450
  }
52431
52451
  },
52432
- "11": {
52452
+ "13": {
52433
52453
  start: {
52434
- line: 34,
52454
+ line: 35,
52435
52455
  column: 32
52436
52456
  },
52437
52457
  end: {
52438
- line: 34,
52458
+ line: 35,
52439
52459
  column: 39
52440
52460
  }
52441
52461
  },
52442
- "12": {
52462
+ "14": {
52443
52463
  start: {
52444
- line: 37,
52464
+ line: 38,
52445
52465
  column: 10
52446
52466
  },
52447
52467
  end: {
52448
- line: 37,
52468
+ line: 38,
52449
52469
  column: 52
52450
52470
  }
52451
52471
  },
52452
- "13": {
52472
+ "15": {
52453
52473
  start: {
52454
- line: 38,
52474
+ line: 39,
52455
52475
  column: 8
52456
52476
  },
52457
52477
  end: {
52458
- line: 38,
52478
+ line: 39,
52459
52479
  column: 43
52460
52480
  }
52461
52481
  },
52462
- "14": {
52482
+ "16": {
52463
52483
  start: {
52464
- line: 38,
52484
+ line: 39,
52465
52485
  column: 36
52466
52486
  },
52467
52487
  end: {
52468
- line: 38,
52488
+ line: 39,
52469
52489
  column: 43
52470
52490
  }
52471
52491
  },
52472
- "15": {
52492
+ "17": {
52473
52493
  start: {
52474
- line: 40,
52494
+ line: 41,
52475
52495
  column: 8
52476
52496
  },
52477
52497
  end: {
52478
- line: 42,
52498
+ line: 43,
52479
52499
  column: 9
52480
52500
  }
52481
52501
  },
52482
- "16": {
52502
+ "18": {
52483
52503
  start: {
52484
- line: 41,
52504
+ line: 42,
52485
52505
  column: 10
52486
52506
  },
52487
52507
  end: {
52488
- line: 41,
52508
+ line: 42,
52489
52509
  column: 79
52490
52510
  }
52491
52511
  },
52492
- "17": {
52512
+ "19": {
52493
52513
  start: {
52494
- line: 44,
52514
+ line: 45,
52495
52515
  column: 30
52496
52516
  },
52497
52517
  end: {
52498
- line: 44,
52518
+ line: 45,
52499
52519
  column: 66
52500
52520
  }
52501
52521
  },
52502
- "18": {
52522
+ "20": {
52503
52523
  start: {
52504
- line: 45,
52524
+ line: 46,
52505
52525
  column: 8
52506
52526
  },
52507
52527
  end: {
52508
- line: 45,
52528
+ line: 46,
52509
52529
  column: 35
52510
52530
  }
52511
52531
  },
52512
- "19": {
52532
+ "21": {
52513
52533
  start: {
52514
- line: 45,
52534
+ line: 46,
52515
52535
  column: 28
52516
52536
  },
52517
52537
  end: {
52518
- line: 45,
52538
+ line: 46,
52519
52539
  column: 35
52520
52540
  }
52521
52541
  },
52522
- "20": {
52542
+ "22": {
52523
52543
  start: {
52524
- line: 47,
52544
+ line: 48,
52525
52545
  column: 26
52526
52546
  },
52527
52547
  end: {
52528
- line: 47,
52548
+ line: 48,
52529
52549
  column: 39
52530
52550
  }
52531
52551
  },
52532
- "21": {
52552
+ "23": {
52533
52553
  start: {
52534
- line: 48,
52554
+ line: 49,
52535
52555
  column: 24
52536
52556
  },
52537
52557
  end: {
52538
- line: 50,
52558
+ line: 51,
52539
52559
  column: 9
52540
52560
  }
52541
52561
  },
52542
- "22": {
52562
+ "24": {
52543
52563
  start: {
52544
- line: 51,
52564
+ line: 52,
52545
52565
  column: 8
52546
52566
  },
52547
52567
  end: {
52548
- line: 51,
52568
+ line: 52,
52549
52569
  column: 28
52550
52570
  }
52551
52571
  },
52552
- "23": {
52572
+ "25": {
52553
52573
  start: {
52554
- line: 51,
52574
+ line: 52,
52555
52575
  column: 21
52556
52576
  },
52557
52577
  end: {
52558
- line: 51,
52578
+ line: 52,
52559
52579
  column: 28
52560
52580
  }
52561
52581
  },
52562
- "24": {
52582
+ "26": {
52563
52583
  start: {
52564
- line: 53,
52584
+ line: 54,
52565
52585
  column: 8
52566
52586
  },
52567
52587
  end: {
52568
- line: 53,
52588
+ line: 54,
52569
52589
  column: 68
52570
52590
  }
52571
52591
  }
@@ -52575,119 +52595,119 @@
52575
52595
  name: "(anonymous_0)",
52576
52596
  decl: {
52577
52597
  start: {
52578
- line: 10,
52598
+ line: 11,
52579
52599
  column: 26
52580
52600
  },
52581
52601
  end: {
52582
- line: 10,
52602
+ line: 11,
52583
52603
  column: 27
52584
52604
  }
52585
52605
  },
52586
52606
  loc: {
52587
52607
  start: {
52588
- line: 11,
52589
- column: 2
52608
+ line: 12,
52609
+ column: 3
52590
52610
  },
52591
52611
  end: {
52592
- line: 15,
52612
+ line: 16,
52593
52613
  column: 3
52594
52614
  }
52595
52615
  },
52596
- line: 11
52616
+ line: 12
52597
52617
  },
52598
52618
  "1": {
52599
52619
  name: "(anonymous_1)",
52600
52620
  decl: {
52601
52621
  start: {
52602
- line: 14,
52622
+ line: 15,
52603
52623
  column: 4
52604
52624
  },
52605
52625
  end: {
52606
- line: 14,
52626
+ line: 15,
52607
52627
  column: 5
52608
52628
  }
52609
52629
  },
52610
52630
  loc: {
52611
52631
  start: {
52612
- line: 14,
52632
+ line: 15,
52613
52633
  column: 11
52614
52634
  },
52615
52635
  end: {
52616
- line: 14,
52636
+ line: 15,
52617
52637
  column: 49
52618
52638
  }
52619
52639
  },
52620
- line: 14
52640
+ line: 15
52621
52641
  },
52622
52642
  "2": {
52623
52643
  name: "(anonymous_2)",
52624
52644
  decl: {
52625
52645
  start: {
52626
- line: 24,
52646
+ line: 25,
52627
52647
  column: 10
52628
52648
  },
52629
52649
  end: {
52630
- line: 24,
52650
+ line: 25,
52631
52651
  column: 11
52632
52652
  }
52633
52653
  },
52634
52654
  loc: {
52635
52655
  start: {
52636
- line: 24,
52656
+ line: 25,
52637
52657
  column: 21
52638
52658
  },
52639
52659
  end: {
52640
- line: 56,
52660
+ line: 57,
52641
52661
  column: 3
52642
52662
  }
52643
52663
  },
52644
- line: 24
52664
+ line: 25
52645
52665
  },
52646
52666
  "3": {
52647
52667
  name: "(anonymous_3)",
52648
52668
  decl: {
52649
52669
  start: {
52650
- line: 30,
52670
+ line: 31,
52651
52671
  column: 6
52652
52672
  },
52653
52673
  end: {
52654
- line: 30,
52674
+ line: 31,
52655
52675
  column: 7
52656
52676
  }
52657
52677
  },
52658
52678
  loc: {
52659
52679
  start: {
52660
- line: 30,
52680
+ line: 31,
52661
52681
  column: 21
52662
52682
  },
52663
52683
  end: {
52664
- line: 54,
52684
+ line: 55,
52665
52685
  column: 7
52666
52686
  }
52667
52687
  },
52668
- line: 30
52688
+ line: 31
52669
52689
  }
52670
52690
  },
52671
52691
  branchMap: {
52672
52692
  "0": {
52673
52693
  loc: {
52674
52694
  start: {
52675
- line: 25,
52695
+ line: 26,
52676
52696
  column: 4
52677
52697
  },
52678
52698
  end: {
52679
- line: 25,
52699
+ line: 26,
52680
52700
  column: 59
52681
52701
  }
52682
52702
  },
52683
52703
  type: "if",
52684
52704
  locations: [{
52685
52705
  start: {
52686
- line: 25,
52706
+ line: 26,
52687
52707
  column: 4
52688
52708
  },
52689
52709
  end: {
52690
- line: 25,
52710
+ line: 26,
52691
52711
  column: 59
52692
52712
  }
52693
52713
  }, {
@@ -52700,27 +52720,60 @@
52700
52720
  column: undefined
52701
52721
  }
52702
52722
  }],
52703
- line: 25
52723
+ line: 26
52704
52724
  },
52705
52725
  "1": {
52706
52726
  loc: {
52707
52727
  start: {
52708
- line: 34,
52728
+ line: 28,
52729
+ column: 4
52730
+ },
52731
+ end: {
52732
+ line: 28,
52733
+ column: 76
52734
+ }
52735
+ },
52736
+ type: "if",
52737
+ locations: [{
52738
+ start: {
52739
+ line: 28,
52740
+ column: 4
52741
+ },
52742
+ end: {
52743
+ line: 28,
52744
+ column: 76
52745
+ }
52746
+ }, {
52747
+ start: {
52748
+ line: undefined,
52749
+ column: undefined
52750
+ },
52751
+ end: {
52752
+ line: undefined,
52753
+ column: undefined
52754
+ }
52755
+ }],
52756
+ line: 28
52757
+ },
52758
+ "2": {
52759
+ loc: {
52760
+ start: {
52761
+ line: 35,
52709
52762
  column: 8
52710
52763
  },
52711
52764
  end: {
52712
- line: 34,
52765
+ line: 35,
52713
52766
  column: 39
52714
52767
  }
52715
52768
  },
52716
52769
  type: "if",
52717
52770
  locations: [{
52718
52771
  start: {
52719
- line: 34,
52772
+ line: 35,
52720
52773
  column: 8
52721
52774
  },
52722
52775
  end: {
52723
- line: 34,
52776
+ line: 35,
52724
52777
  column: 39
52725
52778
  }
52726
52779
  }, {
@@ -52733,27 +52786,27 @@
52733
52786
  column: undefined
52734
52787
  }
52735
52788
  }],
52736
- line: 34
52789
+ line: 35
52737
52790
  },
52738
- "2": {
52791
+ "3": {
52739
52792
  loc: {
52740
52793
  start: {
52741
- line: 38,
52794
+ line: 39,
52742
52795
  column: 8
52743
52796
  },
52744
52797
  end: {
52745
- line: 38,
52798
+ line: 39,
52746
52799
  column: 43
52747
52800
  }
52748
52801
  },
52749
52802
  type: "if",
52750
52803
  locations: [{
52751
52804
  start: {
52752
- line: 38,
52805
+ line: 39,
52753
52806
  column: 8
52754
52807
  },
52755
52808
  end: {
52756
- line: 38,
52809
+ line: 39,
52757
52810
  column: 43
52758
52811
  }
52759
52812
  }, {
@@ -52766,27 +52819,27 @@
52766
52819
  column: undefined
52767
52820
  }
52768
52821
  }],
52769
- line: 38
52822
+ line: 39
52770
52823
  },
52771
- "3": {
52824
+ "4": {
52772
52825
  loc: {
52773
52826
  start: {
52774
- line: 40,
52827
+ line: 41,
52775
52828
  column: 8
52776
52829
  },
52777
52830
  end: {
52778
- line: 42,
52831
+ line: 43,
52779
52832
  column: 9
52780
52833
  }
52781
52834
  },
52782
52835
  type: "if",
52783
52836
  locations: [{
52784
52837
  start: {
52785
- line: 40,
52838
+ line: 41,
52786
52839
  column: 8
52787
52840
  },
52788
52841
  end: {
52789
- line: 42,
52842
+ line: 43,
52790
52843
  column: 9
52791
52844
  }
52792
52845
  }, {
@@ -52799,27 +52852,27 @@
52799
52852
  column: undefined
52800
52853
  }
52801
52854
  }],
52802
- line: 40
52855
+ line: 41
52803
52856
  },
52804
- "4": {
52857
+ "5": {
52805
52858
  loc: {
52806
52859
  start: {
52807
- line: 45,
52860
+ line: 46,
52808
52861
  column: 8
52809
52862
  },
52810
52863
  end: {
52811
- line: 45,
52864
+ line: 46,
52812
52865
  column: 35
52813
52866
  }
52814
52867
  },
52815
52868
  type: "if",
52816
52869
  locations: [{
52817
52870
  start: {
52818
- line: 45,
52871
+ line: 46,
52819
52872
  column: 8
52820
52873
  },
52821
52874
  end: {
52822
- line: 45,
52875
+ line: 46,
52823
52876
  column: 35
52824
52877
  }
52825
52878
  }, {
@@ -52832,27 +52885,27 @@
52832
52885
  column: undefined
52833
52886
  }
52834
52887
  }],
52835
- line: 45
52888
+ line: 46
52836
52889
  },
52837
- "5": {
52890
+ "6": {
52838
52891
  loc: {
52839
52892
  start: {
52840
- line: 51,
52893
+ line: 52,
52841
52894
  column: 8
52842
52895
  },
52843
52896
  end: {
52844
- line: 51,
52897
+ line: 52,
52845
52898
  column: 28
52846
52899
  }
52847
52900
  },
52848
52901
  type: "if",
52849
52902
  locations: [{
52850
52903
  start: {
52851
- line: 51,
52904
+ line: 52,
52852
52905
  column: 8
52853
52906
  },
52854
52907
  end: {
52855
- line: 51,
52908
+ line: 52,
52856
52909
  column: 28
52857
52910
  }
52858
52911
  }, {
@@ -52865,7 +52918,7 @@
52865
52918
  column: undefined
52866
52919
  }
52867
52920
  }],
52868
- line: 51
52921
+ line: 52
52869
52922
  }
52870
52923
  },
52871
52924
  s: {
@@ -52893,7 +52946,9 @@
52893
52946
  "21": 0,
52894
52947
  "22": 0,
52895
52948
  "23": 0,
52896
- "24": 0
52949
+ "24": 0,
52950
+ "25": 0,
52951
+ "26": 0
52897
52952
  },
52898
52953
  f: {
52899
52954
  "0": 0,
@@ -52907,10 +52962,11 @@
52907
52962
  "2": [0, 0],
52908
52963
  "3": [0, 0],
52909
52964
  "4": [0, 0],
52910
- "5": [0, 0]
52965
+ "5": [0, 0],
52966
+ "6": [0, 0]
52911
52967
  },
52912
52968
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
52913
- hash: "6f4d69e46c06f0f4dd2f2bc5a765b30a9a62efe3"
52969
+ hash: "8a9e23dd18d6ad26961969c2cc9e23399eb291a7"
52914
52970
  };
52915
52971
  var coverage = global[gcv] || (global[gcv] = {});
52916
52972
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -52927,15 +52983,16 @@
52927
52983
  }
52928
52984
  cov_1qf21ie77k();
52929
52985
  var jsconfigData = (cov_1qf21ie77k().s[0]++, null);
52930
- cov_1qf21ie77k().s[1]++;
52986
+ var watcher = (cov_1qf21ie77k().s[1]++, null);
52987
+ cov_1qf21ie77k().s[2]++;
52931
52988
  var watchJsConfigFile = function watchJsConfigFile(filePath) {
52932
52989
  cov_1qf21ie77k().f[0]++;
52933
- cov_1qf21ie77k().s[2]++;
52934
- return fs__default["default"].watch(filePath, {
52990
+ cov_1qf21ie77k().s[3]++;
52991
+ return watcher = fs__default["default"].watch(filePath, {
52935
52992
  persistent: false
52936
52993
  }, function () {
52937
52994
  cov_1qf21ie77k().f[1]++;
52938
- cov_1qf21ie77k().s[3]++;
52995
+ cov_1qf21ie77k().s[4]++;
52939
52996
  return jsconfigData = parseJsonData(filePath);
52940
52997
  });
52941
52998
  };
@@ -52947,71 +53004,78 @@
52947
53004
  }
52948
53005
  },
52949
53006
  create: function create(context) {
52950
- var _context$options, _context$options$, _context$options2, _context$options2$;
53007
+ var _context$options, _context$options$;
52951
53008
  cov_1qf21ie77k().f[2]++;
52952
- cov_1qf21ie77k().s[4]++;
53009
+ cov_1qf21ie77k().s[5]++;
52953
53010
  if (!((_context$options = context.options) !== null && _context$options !== void 0 && (_context$options$ = _context$options[0]) !== null && _context$options$ !== void 0 && _context$options$.jsconfigFilePath)) {
52954
53011
  cov_1qf21ie77k().b[0][0]++;
52955
- cov_1qf21ie77k().s[5]++;
53012
+ cov_1qf21ie77k().s[6]++;
52956
53013
  return {};
52957
53014
  } else {
52958
53015
  cov_1qf21ie77k().b[0][1]++;
52959
53016
  }
52960
- cov_1qf21ie77k().s[6]++;
52961
- watchJsConfigFile((_context$options2 = context.options) === null || _context$options2 === void 0 ? void 0 : (_context$options2$ = _context$options2[0]) === null || _context$options2$ === void 0 ? void 0 : _context$options2$.jsconfigFilePath);
52962
53017
  cov_1qf21ie77k().s[7]++;
53018
+ if (!watcher) {
53019
+ var _context$options2, _context$options2$;
53020
+ cov_1qf21ie77k().b[1][0]++;
53021
+ cov_1qf21ie77k().s[8]++;
53022
+ 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);
53023
+ } else {
53024
+ cov_1qf21ie77k().b[1][1]++;
53025
+ }
53026
+ cov_1qf21ie77k().s[9]++;
52963
53027
  return {
52964
53028
  Property: function Property(node) {
52965
53029
  var _context$options3, _context$options3$, _node$parent, _node$parent$parent, _node$parent$parent$k, _jsconfigData, _jsconfigData$compile;
52966
53030
  cov_1qf21ie77k().f[3]++;
52967
- var filename = (cov_1qf21ie77k().s[8]++, context.getFilename());
52968
- var isInsideAliasFile = (cov_1qf21ie77k().s[9]++, filename === ((_context$options3 = context.options) === null || _context$options3 === void 0 ? void 0 : (_context$options3$ = _context$options3[0]) === null || _context$options3$ === void 0 ? void 0 : _context$options3$.aliasFilePath));
52969
- cov_1qf21ie77k().s[10]++;
53031
+ var filename = (cov_1qf21ie77k().s[10]++, context.getFilename());
53032
+ var isInsideAliasFile = (cov_1qf21ie77k().s[11]++, filename === ((_context$options3 = context.options) === null || _context$options3 === void 0 ? void 0 : (_context$options3$ = _context$options3[0]) === null || _context$options3$ === void 0 ? void 0 : _context$options3$.aliasFilePath));
53033
+ cov_1qf21ie77k().s[12]++;
52970
53034
  if (!isInsideAliasFile) {
52971
- cov_1qf21ie77k().b[1][0]++;
52972
- cov_1qf21ie77k().s[11]++;
52973
- return;
52974
- } else {
52975
- cov_1qf21ie77k().b[1][1]++;
52976
- }
52977
- var isInsideAliasProperty = (cov_1qf21ie77k().s[12]++, ((_node$parent = node.parent) === null || _node$parent === void 0 ? void 0 : (_node$parent$parent = _node$parent.parent) === null || _node$parent$parent === void 0 ? void 0 : (_node$parent$parent$k = _node$parent$parent.key) === null || _node$parent$parent$k === void 0 ? void 0 : _node$parent$parent$k.name) === "alias");
52978
- cov_1qf21ie77k().s[13]++;
52979
- if (!isInsideAliasProperty) {
52980
53035
  cov_1qf21ie77k().b[2][0]++;
52981
- cov_1qf21ie77k().s[14]++;
53036
+ cov_1qf21ie77k().s[13]++;
52982
53037
  return;
52983
53038
  } else {
52984
53039
  cov_1qf21ie77k().b[2][1]++;
52985
53040
  }
53041
+ var isInsideAliasProperty = (cov_1qf21ie77k().s[14]++, ((_node$parent = node.parent) === null || _node$parent === void 0 ? void 0 : (_node$parent$parent = _node$parent.parent) === null || _node$parent$parent === void 0 ? void 0 : (_node$parent$parent$k = _node$parent$parent.key) === null || _node$parent$parent$k === void 0 ? void 0 : _node$parent$parent$k.name) === "alias");
52986
53042
  cov_1qf21ie77k().s[15]++;
52987
- if (jsconfigData === null) {
52988
- var _context$options4, _context$options4$;
53043
+ if (!isInsideAliasProperty) {
52989
53044
  cov_1qf21ie77k().b[3][0]++;
52990
53045
  cov_1qf21ie77k().s[16]++;
52991
- jsconfigData = parseJsonData((_context$options4 = context.options) === null || _context$options4 === void 0 ? void 0 : (_context$options4$ = _context$options4[0]) === null || _context$options4$ === void 0 ? void 0 : _context$options4$.jsconfigFilePath);
53046
+ return;
52992
53047
  } else {
52993
53048
  cov_1qf21ie77k().b[3][1]++;
52994
53049
  }
52995
- var jsconfigPaths = (cov_1qf21ie77k().s[17]++, (_jsconfigData = jsconfigData) === null || _jsconfigData === void 0 ? void 0 : (_jsconfigData$compile = _jsconfigData.compilerOptions) === null || _jsconfigData$compile === void 0 ? void 0 : _jsconfigData$compile.paths);
52996
- cov_1qf21ie77k().s[18]++;
52997
- if (!jsconfigPaths) {
53050
+ cov_1qf21ie77k().s[17]++;
53051
+ if (jsconfigData === null) {
53052
+ var _context$options4, _context$options4$;
52998
53053
  cov_1qf21ie77k().b[4][0]++;
52999
- cov_1qf21ie77k().s[19]++;
53000
- return;
53054
+ cov_1qf21ie77k().s[18]++;
53055
+ jsconfigData = parseJsonData((_context$options4 = context.options) === null || _context$options4 === void 0 ? void 0 : (_context$options4$ = _context$options4[0]) === null || _context$options4$ === void 0 ? void 0 : _context$options4$.jsconfigFilePath);
53001
53056
  } else {
53002
53057
  cov_1qf21ie77k().b[4][1]++;
53003
53058
  }
53004
- var aliasName = (cov_1qf21ie77k().s[20]++, node.key.name);
53005
- var matches = (cov_1qf21ie77k().s[21]++, Object.keys(jsconfigPaths).some(ramda.includes(ramda.__, [aliasName, "".concat(aliasName, "/*")])));
53006
- cov_1qf21ie77k().s[22]++;
53007
- if (matches) {
53059
+ var jsconfigPaths = (cov_1qf21ie77k().s[19]++, (_jsconfigData = jsconfigData) === null || _jsconfigData === void 0 ? void 0 : (_jsconfigData$compile = _jsconfigData.compilerOptions) === null || _jsconfigData$compile === void 0 ? void 0 : _jsconfigData$compile.paths);
53060
+ cov_1qf21ie77k().s[20]++;
53061
+ if (!jsconfigPaths) {
53008
53062
  cov_1qf21ie77k().b[5][0]++;
53009
- cov_1qf21ie77k().s[23]++;
53063
+ cov_1qf21ie77k().s[21]++;
53010
53064
  return;
53011
53065
  } else {
53012
53066
  cov_1qf21ie77k().b[5][1]++;
53013
53067
  }
53068
+ var aliasName = (cov_1qf21ie77k().s[22]++, node.key.name);
53069
+ var matches = (cov_1qf21ie77k().s[23]++, Object.keys(jsconfigPaths).some(ramda.includes(ramda.__, [aliasName, "".concat(aliasName, "/*")])));
53014
53070
  cov_1qf21ie77k().s[24]++;
53071
+ if (matches) {
53072
+ cov_1qf21ie77k().b[6][0]++;
53073
+ cov_1qf21ie77k().s[25]++;
53074
+ return;
53075
+ } else {
53076
+ cov_1qf21ie77k().b[6][1]++;
53077
+ }
53078
+ cov_1qf21ie77k().s[26]++;
53015
53079
  context.report({
53016
53080
  node: node,
53017
53081
  message: addInJsconfig(aliasName)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/eslint-plugin-neeto",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "main": "dist/index.js",
5
5
  "license": "UNLICENSED",
6
6
  "scripts": {