File tree 3 files changed +5
-8
lines changed
3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 68
68
"concurrently" : " 3.5.1" ,
69
69
"cross-env" : " 5.1.1" ,
70
70
"lodash.includes" : " 4.3.0" ,
71
- "lodash.merge" : " 4.3.0" ,
72
71
"rimraf" : " 2.6.1" ,
73
72
"xo" : " 0.20.3"
74
73
},
Original file line number Diff line number Diff line change 1
1
import chalk from 'chalk' ;
2
- import merge from 'lodash.merge' ;
3
2
4
3
const DEFAULT_SIGNS = [ ' ' , '⚠' , '✖' ] ;
5
4
const DEFAULT_COLORS = [ 'white' , 'yellow' , 'red' ] ;
6
5
7
- export default function format ( report = { } , flags = { } , options = { } ) {
8
- const opts = merge ( { color : flags . color } , options ) ;
6
+ export default function format ( report = { } , options = { } ) {
9
7
const { results = [ ] } = report ;
10
8
11
9
if ( results . length > 0 ) {
12
10
return results
13
11
. map (
14
12
result =>
15
- `${ formatInput ( result , opts ) } ${ formatResult ( result , opts ) . join ( '\n' ) } `
13
+ `${ formatInput ( result , options ) } ${ formatResult ( result , options ) . join (
14
+ '\n'
15
+ ) } `
16
16
)
17
17
. join ( '\n' ) ;
18
18
}
19
19
20
20
// Output a summary when nothing is found
21
- return formatResult ( { } , opts ) . join ( '\n' ) ;
21
+ return formatResult ( { } , options ) . join ( '\n' ) ;
22
22
}
23
23
24
24
function formatInput ( result = { } , options = { } ) {
Original file line number Diff line number Diff line change @@ -117,7 +117,6 @@ test('uses signs as configured', t => {
117
117
}
118
118
]
119
119
} ,
120
- { } ,
121
120
options
122
121
) ;
123
122
@@ -135,7 +134,6 @@ test('uses signs as configured', t => {
135
134
}
136
135
]
137
136
} ,
138
- { } ,
139
137
options
140
138
) ;
141
139
You can’t perform that action at this time.
0 commit comments