-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
refactor: utils #1682
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
refactor: utils #1682
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1682 +/- ##
==========================================
+ Coverage 79.59% 84.14% +4.55%
==========================================
Files 7 7
Lines 544 511 -33
Branches 165 155 -10
==========================================
- Hits 433 430 -3
+ Misses 84 64 -20
+ Partials 27 17 -10
Continue to review full report at Codecov.
|
0472b0c
to
4cefefb
Compare
arrow-parens, | ||
array-bracket-spacing, | ||
space-before-function-paren | ||
no-console | ||
*/ |
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.
Remove eslint
comments around stylistics rules, we use prettier
👍
const createConfig = require('../lib/utils/createConfig'); | ||
const getVersions = require('../lib/utils/getVersions'); | ||
const runBonjour = require('../lib/utils/runBonjour'); | ||
const status = require('../lib/utils/status'); |
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.
Move this to utils, we should testing their, let's do it in other PR
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.
Thank you for separating to utils 🙏
if (!headerToCheck) headerToCheck = 'host'; | ||
if (!headerToCheck) { | ||
headerToCheck = 'host'; | ||
} |
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 {
and }
to all construction (better reading), we should enforce this rule in eslint, let's do it in other PR
No changes, only refactor |
/cc @hiroppy all works done, feel free to review |
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.
LGTM if CI is green
For Bugs and Features; did you add new tests?
Motivation / Use-Case
Move utils to lib for better testing ans solve future problem when
open
/bonjure
doesn't work without CLIBreaking Changes
No
Additional Info
No