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 (
4545 }
4646
4747 // Other configuration errors only halt the program if the user asked for them
48- const configurationErrors = ( [
48+ const configurationErrors = [
4949 [ eslint , rawSettings . eslint ] ,
5050 [ packages , rawSettings . package ] ,
5151 [ typescript , rawSettings . typescript ] ,
52- ] as const ) . filter ( configurationResultIsError ) ;
52+ ] . filter ( configurationResultIsError ) ;
5353 if ( configurationErrors . length !== 0 ) {
5454 return {
5555 complaints : configurationErrors . map ( ( [ configuration ] ) => configuration . message ) ,
@@ -68,8 +68,6 @@ export const findOriginalConfigurations = async (
6868 } ;
6969} ;
7070
71- const configurationResultIsError = (
72- result : readonly [ unknown , unknown ] ,
73- ) : result is [ Error , string ] => {
71+ const configurationResultIsError = ( result : unknown [ ] ) : result is [ Error , string ] => {
7472 return result [ 0 ] instanceof Error && typeof result [ 1 ] === "string" ;
7573} ;
You can’t perform that action at this time.
0 commit comments