File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ export const findOriginalConfigurations = async (
45
45
}
46
46
47
47
// Other configuration errors only halt the program if the user asked for them
48
- const configurationErrors = ( [
48
+ const configurationErrors = [
49
49
[ eslint , rawSettings . eslint ] ,
50
50
[ packages , rawSettings . package ] ,
51
51
[ typescript , rawSettings . typescript ] ,
52
- ] as const ) . filter ( configurationResultIsError ) ;
52
+ ] . filter ( configurationResultIsError ) ;
53
53
if ( configurationErrors . length !== 0 ) {
54
54
return {
55
55
complaints : configurationErrors . map ( ( [ configuration ] ) => configuration . message ) ,
@@ -68,8 +68,6 @@ export const findOriginalConfigurations = async (
68
68
} ;
69
69
} ;
70
70
71
- const configurationResultIsError = (
72
- result : readonly [ unknown , unknown ] ,
73
- ) : result is [ Error , string ] => {
71
+ const configurationResultIsError = ( result : unknown [ ] ) : result is [ Error , string ] => {
74
72
return result [ 0 ] instanceof Error && typeof result [ 1 ] === "string" ;
75
73
} ;
You can’t perform that action at this time.
0 commit comments