-
Notifications
You must be signed in to change notification settings - Fork 50
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
chore: use standard #84
Conversation
Codecov Report
@@ Coverage Diff @@
## master #84 +/- ##
==========================================
- Coverage 60.93% 60.49% -0.45%
==========================================
Files 18 18
Lines 448 443 -5
==========================================
- Hits 273 268 -5
Misses 175 175
Continue to review full report at Codecov.
|
I know it's more work for you as the contributor, but I'd prefer that the refactors go in their own commits, or even their own PRs. I'm talking about the |
@Trott if you'd like, I can do that. The challenge there is that I had to incrementally run If you do want me to do that, are you okay with each step in that process being an incremental commit (including multiple fix commits)? |
Does running |
Oh, I see. Parsing errors because it doesn't permit |
I'm fine with whatever. I'm just less likely to invest the time to review if I can't easily skip over everything that |
There were a couple things like that, but instead of changing standard I approached it by exiting the process (which is actually what @feross suggested as a workaround in that issue). Can discuss that when I refactor, though. Will take a stab at this tomorrow 👍 |
reset to the commit before the initial commit I PR'ed and force pushed the changes 👍 |
@@ -4,7 +4,7 @@ | |||
"description": "Validate the commit message for a particular commit in node core", | |||
"main": "index.js", | |||
"scripts": { | |||
"pretest": "lintit && check-pkg", | |||
"pretest": "standard && check-pkg", |
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.
We're either going to want to squash everything into one commit when landing, or else split this into two commits: One commit at the start to remove lintit
and one commit at the end to add standard
.
Thanks for doing all that. It made reviewing it a lot easier (for me, at least). |
Co-authored-by: Rich Trott <[email protected]>
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.
looks good to me, but in agreement with @Trott we should probably split the lintit
removal into a discrete commit
@bnb If you need to silence certain warnings temporarily for this PR, you can add this to the top of a file: /* eslint-disable no-use-before-define */ More info: https://standardjs.com/#how-do-i-hide-a-certain-warning |
@Trott / @codebytere is this something I should do or is it something you'd do when merging? |
On second thought i'm fine just squashing everything into a single commit! |
Switches to using Standard rather than lintit, after noticing that the code style was relatively... different than most modern JavaScript I've seen.
Switching to Standard did require several bits of refactoring outside of the normal
standard --fix
to make the CLI compliant, including moving tonew URL()
rather thanurl.parse()
, shifting around some inline functions, and tweaking a few of the RegEx (did my best to validate that they would still do what they should with external tooling in addition to runningnpm run test
).cc @codebytere