@@ -476,29 +476,29 @@ test('findApplicableOverrides', t => {
476
476
test ( 'mergeWithFileConfig: use child if closest' , t => {
477
477
const cwd = path . resolve ( 'fixtures' , 'nested' , 'child' ) ;
478
478
const { options} = manager . mergeWithFileConfig ( { cwd} ) ;
479
- const expected = { ...childConfig . xo , extensions : DEFAULT_EXTENSION , ignores : DEFAULT_IGNORES , cwd, nodeVersion : undefined } ;
479
+ const expected = { ...childConfig . xo , extensions : DEFAULT_EXTENSION , ignores : DEFAULT_IGNORES , cwd} ;
480
480
t . deepEqual ( options , expected ) ;
481
481
} ) ;
482
482
483
483
test ( 'mergeWithFileConfig: use parent if closest' , t => {
484
484
const cwd = path . resolve ( 'fixtures' , 'nested' ) ;
485
485
const { options} = manager . mergeWithFileConfig ( { cwd} ) ;
486
- const expected = { ...parentConfig . xo , extensions : DEFAULT_EXTENSION , ignores : DEFAULT_IGNORES , cwd, nodeVersion : undefined } ;
486
+ const expected = { ...parentConfig . xo , extensions : DEFAULT_EXTENSION , ignores : DEFAULT_IGNORES , cwd} ;
487
487
t . deepEqual ( options , expected ) ;
488
488
} ) ;
489
489
490
490
test ( 'mergeWithFileConfig: use parent if child is ignored' , t => {
491
491
const cwd = path . resolve ( 'fixtures' , 'nested' ) ;
492
492
const filename = path . resolve ( cwd , 'child-ignore' , 'file.js' ) ;
493
493
const { options} = manager . mergeWithFileConfig ( { cwd, filename} ) ;
494
- const expected = { ...parentConfig . xo , extensions : DEFAULT_EXTENSION , ignores : DEFAULT_IGNORES , cwd, filename, nodeVersion : undefined } ;
494
+ const expected = { ...parentConfig . xo , extensions : DEFAULT_EXTENSION , ignores : DEFAULT_IGNORES , cwd, filename} ;
495
495
t . deepEqual ( options , expected ) ;
496
496
} ) ;
497
497
498
498
test ( 'mergeWithFileConfig: use child if child is empty' , t => {
499
499
const cwd = path . resolve ( 'fixtures' , 'nested' , 'child-empty' ) ;
500
500
const { options} = manager . mergeWithFileConfig ( { cwd} ) ;
501
- t . deepEqual ( options , { nodeVersion : undefined , extensions : DEFAULT_EXTENSION , ignores : DEFAULT_IGNORES , cwd} ) ;
501
+ t . deepEqual ( options , { extensions : DEFAULT_EXTENSION , ignores : DEFAULT_IGNORES , cwd} ) ;
502
502
} ) ;
503
503
504
504
test ( 'mergeWithFileConfig: read engines from package.json' , t => {
@@ -531,7 +531,6 @@ test('mergeWithFileConfig: typescript files', async t => {
531
531
extensions : DEFAULT_EXTENSION ,
532
532
ignores : DEFAULT_IGNORES ,
533
533
cwd,
534
- nodeVersion : undefined ,
535
534
semicolon : false ,
536
535
ts : true
537
536
} ;
@@ -552,7 +551,6 @@ test('mergeWithFileConfig: tsx files', async t => {
552
551
extensions : DEFAULT_EXTENSION ,
553
552
ignores : DEFAULT_IGNORES ,
554
553
cwd,
555
- nodeVersion : undefined ,
556
554
semicolon : false ,
557
555
ts : true
558
556
} ;
@@ -590,7 +588,6 @@ test('mergeWithFileConfigs: nested configs with prettier', async t => {
590
588
files : [ path . resolve ( cwd , 'no-semicolon.js' ) ] ,
591
589
options : {
592
590
semicolon : true ,
593
- nodeVersion : undefined ,
594
591
cwd,
595
592
extensions : DEFAULT_EXTENSION ,
596
593
ignores : DEFAULT_IGNORES
@@ -601,7 +598,6 @@ test('mergeWithFileConfigs: nested configs with prettier', async t => {
601
598
files : [ path . resolve ( cwd , 'child/semicolon.js' ) ] ,
602
599
options : {
603
600
semicolon : false ,
604
- nodeVersion : undefined ,
605
601
cwd : path . resolve ( cwd , 'child' ) ,
606
602
extensions : DEFAULT_EXTENSION ,
607
603
ignores : DEFAULT_IGNORES
@@ -618,7 +614,6 @@ test('mergeWithFileConfigs: nested configs with prettier', async t => {
618
614
envs : [ ] ,
619
615
plugins : [ ] ,
620
616
extends : [ ] ,
621
- nodeVersion : undefined ,
622
617
cwd : path . resolve ( cwd , 'child-override' ) ,
623
618
extensions : DEFAULT_EXTENSION ,
624
619
ignores : DEFAULT_IGNORES
@@ -635,7 +630,6 @@ test('mergeWithFileConfigs: nested configs with prettier', async t => {
635
630
envs : [ ] ,
636
631
plugins : [ ] ,
637
632
extends : [ ] ,
638
- nodeVersion : undefined ,
639
633
cwd : path . resolve ( cwd , 'child-override' , 'child-prettier-override' ) ,
640
634
extensions : DEFAULT_EXTENSION ,
641
635
ignores : DEFAULT_IGNORES
@@ -659,7 +653,6 @@ test('mergeWithFileConfigs: typescript files', async t => {
659
653
files : [ path . resolve ( cwd , 'two-spaces.tsx' ) ] ,
660
654
options : {
661
655
space : 4 ,
662
- nodeVersion : undefined ,
663
656
cwd,
664
657
extensions : DEFAULT_EXTENSION ,
665
658
ignores : DEFAULT_IGNORES ,
@@ -684,7 +677,6 @@ test('mergeWithFileConfigs: typescript files', async t => {
684
677
files : [ path . resolve ( cwd , 'child/extra-semicolon.ts' ) ] ,
685
678
options : {
686
679
semicolon : false ,
687
- nodeVersion : undefined ,
688
680
cwd : path . resolve ( cwd , 'child' ) ,
689
681
extensions : DEFAULT_EXTENSION ,
690
682
ignores : DEFAULT_IGNORES ,
@@ -697,7 +689,6 @@ test('mergeWithFileConfigs: typescript files', async t => {
697
689
files : [ path . resolve ( cwd , 'child/sub-child/four-spaces.ts' ) ] ,
698
690
options : {
699
691
space : 2 ,
700
- nodeVersion : undefined ,
701
692
cwd : path . resolve ( cwd , 'child/sub-child' ) ,
702
693
extensions : DEFAULT_EXTENSION ,
703
694
ignores : DEFAULT_IGNORES ,
0 commit comments