File tree 5 files changed +15
-5
lines changed
5 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 11
11
},
12
12
"rules": {
13
13
"no-console": "off",
14
- "strict": ["error", "global"]
14
+ "strict": ["error", "global"],
15
+ "curly": "warn"
15
16
}
16
17
}
Original file line number Diff line number Diff line change @@ -82,7 +82,9 @@ function ansiHTML(txt) {
82
82
if ( color != null ) {
83
83
result += '<span style="color: #' + color + ';">' + part + '</span>' ;
84
84
} else {
85
- if ( fg != null ) console . log ( 'Missing color mapping: ' , fg ) ;
85
+ if ( fg != null ) {
86
+ console . log ( 'Missing color mapping: ' , fg ) ;
87
+ }
86
88
result += '<span>' + part + '</span>' ;
87
89
}
88
90
if ( _index < contentParts . length - 1 ) {
Original file line number Diff line number Diff line change 1
1
{
2
- "extends": "react-app"
2
+ "extends": "react-app",
3
+ "rules": {
4
+ "curly": "warn"
5
+ }
3
6
}
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ async function map(
17
17
const files : string [ ] = [ ] ;
18
18
frames . forEach ( frame => {
19
19
const { fileName } = frame ;
20
- if ( fileName == null ) return ;
20
+ if ( fileName == null ) {
21
+ return ;
22
+ }
21
23
if ( files . indexOf ( fileName ) !== - 1 ) {
22
24
return ;
23
25
}
Original file line number Diff line number Diff line change @@ -67,7 +67,9 @@ async function unmap(
67
67
} ) )
68
68
. sort ( ( a , b ) => {
69
69
const s = Math . sign ( a . seps - b . seps ) ;
70
- if ( s !== 0 ) return s ;
70
+ if ( s !== 0 ) {
71
+ return s ;
72
+ }
71
73
return Math . sign ( a . penalties - b . penalties ) ;
72
74
} ) ;
73
75
if ( source . length < 1 || lineNumber == null ) {
You can’t perform that action at this time.
0 commit comments