Skip to content

Commit

Permalink
Revert "Turn off @typescript-eslint/explicit-function-return-type"
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-zheng-an committed Feb 12, 2020
1 parent 8ef824d commit 5d33968
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,5 @@
],
"parserOptions": {
"project": "tsconfig.json"
},
"rules": {
"@typescript-eslint/explicit-function-return-type": "off"
}
}
5 changes: 3 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ const shell = (
return stream
}

shell.task = (commands: string | string[], options?: Options) => () =>
runCommands(normalizeCommands(commands), normalizeOptions(options), null)
shell.task = (commands: string | string[], options?: Options) => (): Promise<
void
> => runCommands(normalizeCommands(commands), normalizeOptions(options), null)

export = shell

0 comments on commit 5d33968

Please sign in to comment.