Skip to content

Commit

Permalink
refactor: Adding PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
shravan20 committed Mar 22, 2024
1 parent bc1b231 commit f9ea3df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"coverage": "codecov",
"flow": "flow",
"lint": "eslint ./src && prettier --check src/**/*.js --parser=flow && prettier --check src/**/*.ts --parser=typescript",
"lint-fix": "eslint ./src && prettier --write src/**/*.js --parser=flow && prettier --write src/**/*.ts --parser=typescript",
"package": "pkg . --output ./bin/gitmoji --targets latest-linux-x64,latest-macos-x64,latest-win-x64",
"prepare": "husky install",
"prepublishOnly": "yarn run lint && yarn run flow && yarn run test",
Expand Down
5 changes: 1 addition & 4 deletions src/utils/findGitmojiCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ const isSupportedCommand = (
return command !== undefined && Object.keys(options).includes(command)
}

enum CommandType {
Flag = 'flag',
Command = 'command'
}
type CommandType = 'flag' | 'command'

type CommandResult = {
type: CommandType
Expand Down

0 comments on commit f9ea3df

Please sign in to comment.