File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 17
17
upload-coverage : false
18
18
disable-test-package : true
19
19
20
- check-kebab-case :
20
+ check-filenames :
21
21
runs-on : ubuntu-latest
22
22
steps :
23
23
- name : Checkout code
28
28
with :
29
29
node-version : ' 24'
30
30
31
- - name : Run kebab-case check
31
+ - name : Run filenames check
32
32
run : node checkFilenames.mjs
Original file line number Diff line number Diff line change @@ -43,9 +43,11 @@ const folders = ['docs', 'blog'];
43
43
44
44
for ( const folder of folders ) {
45
45
const folderPath = path . join ( __dirname , folder ) ;
46
- const nonKebabFiles = getAllFiles ( folderPath ) ;
47
- if ( nonKebabFiles . length !== 0 ) {
48
- throw new Error ( `Non-kebab-case files found:\n${ nonKebabFiles . join ( '\n' ) } ` ) ;
46
+ const incorrectFormatFiles = getAllFiles ( folderPath ) ;
47
+ if ( incorrectFormatFiles . length !== 0 ) {
48
+ throw new Error (
49
+ `Files with incorrect filename format found:\n${ incorrectFormatFiles . join ( '\n' ) } ` ,
50
+ ) ;
49
51
}
50
52
}
51
53
console . log ( 'All files have passed the check.' ) ;
You can’t perform that action at this time.
0 commit comments