File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,12 @@ import chalk from 'chalk';
3
3
const DEFAULT_SIGNS = [ ' ' , '⚠' , '✖' ] ;
4
4
const DEFAULT_COLORS = [ 'white' , 'yellow' , 'red' ] ;
5
5
6
- export default function format ( report = { } , options = { } ) {
6
+ module . exports = format ;
7
+ module . exports . default = format ;
8
+ module . exports . format = format ;
9
+ module . exports . formatResult = formatResult ;
10
+
11
+ function format ( report = { } , options = { } ) {
7
12
const { results = [ ] } = report ;
8
13
9
14
if ( results . length > 0 ) {
@@ -38,7 +43,7 @@ function formatInput(result = {}, options = {}) {
38
43
return `\n${ decoration } input: ${ decoratedInput } \n` ;
39
44
}
40
45
41
- export function formatResult ( result = { } , options = { } ) {
46
+ function formatResult ( result = { } , options = { } ) {
42
47
const {
43
48
signs = DEFAULT_SIGNS ,
44
49
colors = DEFAULT_COLORS ,
You can’t perform that action at this time.
0 commit comments