8000 Fixes #1 - Grammar / syntax check for docs and comments by danieled-it · Pull Request #2 · Hexagon/minitz · GitHub
[go: up one dir, main page]

Skip to content

Fixes #1 - Grammar / syntax check for docs and comments - #2

Merged
Hexagon merged 2 commits into
Hexagon:mainfrom
danieled-it:feature/grammar_check
Sep 16, 2022
Merged

Hexagon merged 2 commits into
Hexagon:mainfrom
danieled-it:feature/grammar_check

Conversation

@danieled-it
Copy link
Copy Markdown
Contributor

As discussed, non-native here but trying my best to help around!

(Added also a few extremely minimal "extras", hope you won't mind!)

@Hexagon
Hexagon commented Sep 16, 2022
Copy link
Copy Markdown
Owner

Woah, great work. Lots of thanks! 💯 🚀

@Hexagon
Hexagon merged commit af0597f into Hexagon:main Sep 16, 2022
@coleenho coleenho left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few recommendations on grammar.

Comment thread CONTRIBUTING.md
#### Setting up the environment

Se recommend using VS Code with eslint extensions, which will automatically check your code against THE defined rules as you write it.
We recommend using VS Code with eslint extensions, which will automatically check your code against the defined rules as you write it.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommendation on a little rewording: "We recommend using VS Code with eslint extensions. It will automatically check your code against the defined rules."

Comment thread CONTRIBUTING.md
- Enable the checkbox to [allow maintainer edits](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork) so that the branch can be updated for a merge.
Once you submit your PR, a team member will review your proposal. We may ask questions or request for additional information.
- We may ask for changes to be made before a PR can be merged, either using [suggested changes](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request) or pull request comments. You can apply suggested changes directly through the UI. You can make any other changes in your fork, then commit them to your branch.
- We may ask for changes to be made before a PR can be merged, either using [suggested changes](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request) or pull request comments. You can apply suggested changes directly through the UI. You can make any other changes in your fork, then commit them to your branch, the changes will automatically be reflected in the PR.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may ask for changes to be made before a PR can be merged using suggested changes or pull request comments.

Comment thread CONTRIBUTING.md
- Enable the checkbox to [allow maintainer edits](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork) so that the branch can be updated for a merge.
Once you submit your PR, a team member will review your proposal. We may ask questions or request for additional information.
- We may ask for changes to be made before a PR can be merged, either using [suggested changes](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request) or pull request comments. You can apply suggested changes directly through the UI. You can make any other changes in your fork, then commit them to your branch.
- We may ask for changes to be made before a PR can be merged, either using [suggested changes](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request) or pull request comments. You can apply suggested changes directly through the UI. You can make any other changes in your fork, then commit them to your branch, the changes will automatically be reflected in the PR.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can make any other changes in your fork, then commit them to your branch. The changes will automatically be reflected in the PR.

Comment thread README.md
### More examples

Assuming you have imported minitz as described under 'Installation'.
The below examples will work only if you have imported minitz as described in the 'Installation' section, if that's not the case results may vary.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The examples below will work only if you have imported minitz as described in the 'Installation' section. If that's not the case then results may vary.

Comment thread README.md
#### Convert local time to a specific timezone

Provided that you only neeed to display the result, converting local time to specific timezone is best done with vanilla JavaScript.
Provided that you only neeed to display the result, converting local time to specific timezone is best achieved with vanilla JavaScript.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provided that you only need to display the result, converting local time to specific timezone is best achieved with vanilla JavaScript.

Comment thread src/minitz.js
* skips from 23:59:59 to 01:00:00. Setting this flag makes the library throw instead.
* @param {boolean} [throwOnInvalidTime] - Default is to return the adjusted time if the call happens during a Daylight-Saving-Time switch.
* E.g. Value "01:01:01" is returned if input time is 00:01:01 while one hour got actually
* skipped, going from 23:59:59 to 01:00:00. Setting this flag makes the library throw instead.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

throw an exception?

@Hexagon
Hexagon commented Sep 16, 2022
Copy link
Copy Markdown
Owner

@coleenho Oh, thanks for the review. I were a little quick on the merge button 😄

Will add these changes shortly. If any of you aren't up for another PR?

@coleenho
Copy link
Copy Markdown

@Hexagon Sure, I'll do a PR for you with the changes I proposed.

@Hexagon
Hexagon commented Sep 16, 2022
Copy link
Copy Markdown
Owner

@coleenho Great 👍

@danieled-it
danieled-it deleted the feature/grammar_check branch September 17, 2022 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0