-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Convert gitmoji commands & flags to ts #1277
base: master
Are you sure you want to change the base?
Conversation
src/utils/findGitmojiCommand.ts
Outdated
@@ -0,0 +1,86 @@ | |||
// @flow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// @flow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prettier didn't run for this file it is full of ;
I believe CI will complain!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checking formatting...
All matched files use Prettier code style!
Has this been added as rule in prettier config? I don't see any prettierConfig as such.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add lint-fix
command that autofixes any linter/prettier issues.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1277 +/- ##
==========================================
- Coverage 91.72% 91.20% -0.53%
==========================================
Files 28 26 -2
Lines 278 250 -28
Branches 66 54 -12
==========================================
- Hits 255 228 -27
+ Misses 22 21 -1
Partials 1 1 ☔ View full report in Codecov by Sentry. |
… into feat/move-to-ts-v1
Requested for rereview |
type Options = { | ||
[key: string]: object | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use object
as a type. If you really want to specify a generic object opt for something like this instead:
type Options = { | |
[key: string]: object | |
} | |
type Options = Record<string, any>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually no, would probably be better if you imported options from cli.ts
and specified this as type Options = typeof options
.
} | ||
|
||
type Cli = { | ||
flags: Record<string, object> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
@@ -1,19 +1,35 @@ | |||
// @flow | |||
import COMMIT_MODES from '@constants/commit' | |||
import { CommitModes } from '@constants/commit' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You apparently changed the import but you didn't include the actual enum change
Just checking if this is still necessary to keep open or if this can be closed since there hasn't been any recent activity. |
Description
Tests