File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,9 @@ test('throws for invalid rule names', async () => {
93
93
bar : [ RuleConfigSeverity . Warning , 'never' ] ,
94
94
} ) ;
95
95
96
- await expect ( error ) . rejects . toThrow ( / ^ F o u n d i n v a l i d r u l e n a m e s : f o o , b a r / ) ;
96
+ await expect ( error ) . rejects . toThrow (
97
+ / ^ F o u n d r u l e s w i t h o u t i m p l e m e n t a t i o n : f o o , b a r /
98
+ ) ;
97
99
} ) ;
98
100
99
101
test ( 'throws for invalid rule config' , async ( ) => {
Original file line number Diff line number Diff line change @@ -79,9 +79,10 @@ export default async function lint(
79
79
if ( missing . length > 0 ) {
80
80
const names = [ ...allRules . keys ( ) ] ;
81
81
throw new RangeError (
82
- `Found invalid rule names: ${ missing . join (
83
- ', '
84
- ) } . Supported rule names are: ${ names . join ( ', ' ) } `
82
+ [
83
+ `Found rules without implementation: ${ missing . join ( ', ' ) } .` ,
84
+ `Supported rules are: ${ names . join ( ', ' ) } .` ,
85
+ ] . join ( '\n' )
85
86
) ;
86
87
}
87
88
You can’t perform that action at this time.
0 commit comments