Skip to content

Commit 953e925

Browse files
committed
style: fix linting issues
1 parent 2daab6d commit 953e925

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

commands/Make/Command.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
*/
99

1010
import { join } from 'path'
11-
import snakeCase from 'snake-case'
1211
import { args } from '@adonisjs/ace'
12+
import { snakeCase } from 'snake-case'
1313
import { RcFile } from '@ioc:Adonis/Core/Application'
14+
1415
import { BaseGenerator } from './Base'
1516

1617
/**
@@ -56,15 +57,15 @@ export default class MakeCommand extends BaseGenerator {
5657
/**
5758
* Passed down to the template.
5859
*/
59-
protected $templateData () {
60+
protected $templateData (): { toCommandName: (filename: string) => string } {
6061
return {
61-
toCommandName: (filename: string) => {
62+
toCommandName: (filename: string): string => {
6263
return snakeCase(filename).replace(/_/, ':')
6364
},
6465
}
6566
}
6667

67-
public async handle () {
68+
public async handle (): Promise<void> {
6869
this.$resourceName = this.name
6970
await super.handle()
7071
}

0 commit comments

Comments
 (0)