Skip to content

Commit 6a3b4b2

Browse files
committed
style: format everything
1 parent c520f29 commit 6a3b4b2

10 files changed

+52
-59
lines changed

.github/ISSUE_TEMPLATE/---feature-request.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: "I have a suggestion (and might want to implement myself \U0001F642)!"
44
title: ''
55
labels: enhancement
66
assignees: ''
7-
87
---
98

109
<!--

.prettierrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ module.exports = {
44
singleQuote: true,
55
arrowParens: 'always',
66
proseWrap: 'always',
7-
trailingComma: 'none',
7+
trailingComma: 'none'
88
}

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# CHANGELOG
22

33
The changelog is automatically updated using
4-
[semantic-release](https://github.com/semantic-release/semantic-release). You
5-
can see it on the [releases page](../../releases).
4+
[semantic-release](https://github.com/semantic-release/semantic-release). You can see it on the
5+
[releases page](../../releases).

CODE_OF_CONDUCT.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ further defined and clarified by project maintainers.
4949
## Enforcement
5050

5151
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting
52-
the project team at [email protected]. All complaints will be reviewed and investigated and
53-
will result in a response that is deemed necessary and appropriate to the circumstances. The project
54-
team is obligated to maintain confidentiality with regard to the reporter of an incident. Further
55-
details of specific enforcement policies may be posted separately.
52+
the project team at [email protected]. All complaints will be reviewed and investigated and will
53+
result in a response that is deemed necessary and appropriate to the circumstances. The project team
54+
is obligated to maintain confidentiality with regard to the reporter of an incident. Further details
55+
of specific enforcement policies may be posted separately.
5656

5757
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face
5858
temporary or permanent repercussions as determined by other members of the project's leadership.

CONTRIBUTING.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ Please make sure to run the tests before you commit your changes. You can do so
2929

3030
### Update Typings
3131

32-
The TypeScript type definitions can be found in the [DefinitelyTyped repo](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/testing-library__react-hooks).
32+
The TypeScript type definitions can be found in the
33+
[DefinitelyTyped repo](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/testing-library__react-hooks).
3334

3435
## Help needed
3536

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
22
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
33

4-
54
- [react-hooks-testing-library](#react-hooks-testing-library)
65
- [The problem](#the-problem)
76
- [The solution](#the-solution)

docs/api-reference.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ function waitForValueToChange(selector: function(): any, options?: {
236236
}): Promise<void>
237237
```
238238

239-
Returns a `Promise` that resolves if the value returned from the provided selector changes. It is
240-
expected that the [`result` of `renderHook`](/reference/api#result) will be used to select the
241-
value for comparison.
239+
Returns a `Promise` that resolves if the value returned from the provided selector changes. It is
240+
expected that the [`result` of `renderHook`](/reference/api#result) will be used to select the value
241+
for comparison.
242242

243243
#### `interval`
244244

other/MAINTAINING.md

+35-41
Original file line numberDiff line numberDiff line change
@@ -17,63 +17,57 @@ This is documentation for maintainers of this project.
1717

1818
## Code of Conduct
1919

20-
Please review, understand, and be an example of it. Violations of the code of
21-
conduct are taken seriously, even (especially) for maintainers.
20+
Please review, understand, and be an example of it. Violations of the code of conduct are taken
21+
seriously, even (especially) for maintainers.
2222

2323
## Issues
2424

25-
We want to support and build the community. We do that best by helping people
26-
learn to solve their own problems. We have an issue template and hopefully most
27-
folks follow it. If it's not clear what the issue is, invite them to create a
28-
minimal reproduction of what they're trying to accomplish or the bug they think
29-
they've found.
25+
We want to support and build the community. We do that best by helping people learn to solve their
26+
own problems. We have an issue template and hopefully most folks follow it. If it's not clear what
27+
the issue is, invite them to create a minimal reproduction of what they're trying to accomplish or
28+
the bug they think they've found.
3029

3130
Once it's determined that a code change is necessary, point people to
32-
[makeapullrequest.com](https://makeapullrequest.com) and invite them to make a
33-
pull request. If they're the one who needs the feature, they're the one who can
34-
build it. If they need some hand holding and you have time to lend a hand,
35-
please do so. It's an investment into another human being, and an investment
36-
into a potential maintainer.
31+
[makeapullrequest.com](https://makeapullrequest.com) and invite them to make a pull request. If
32+
they're the one who needs the feature, they're the one who can build it. If they need some hand
33+
holding and you have time to lend a hand, please do so. It's an investment into another human being,
34+
and an investment into a potential maintainer.
3735

38-
Remember that this is open source, so the code is not yours, it's ours. If
39-
someone needs a change in the codebase, you don't have to make it happen
40-
yourself. Commit as much time to the project as you want/need to. Nobody can ask
41-
any more of you than that.
36+
Remember that this is open source, so the code is not yours, it's ours. If someone needs a change in
37+
the codebase, you don't have to make it happen yourself. Commit as much time to the project as you
38+
want/need to. Nobody can ask any more of you than that.
4239

4340
## Pull Requests
4441

45-
As a maintainer, you're fine to make your branches on the main repo or on your
46-
own fork. Either way is fine.
42+
As a maintainer, you're fine to make your branches on the main repo or on your own fork. Either way
43+
is fine.
4744

48-
When we receive a pull request, a GitHub Action is kicked off automatically (see
49-
the `.github/workflows/validate.yml` for what runs in the Action). We avoid
50-
merging anything that breaks the GitHub Action.
45+
When we receive a pull request, a GitHub Action is kicked off automatically (see the
46+
`.github/workflows/validate.yml` for what runs in the Action). We avoid merging anything that breaks
47+
the GitHub Action.
5148

52-
Please review PRs and focus on the code rather than the individual. You never
53-
know when this is someone's first ever PR and we want their experience to be as
54-
positive as possible, so be uplifting and constructive.
49+
Please review PRs and focus on the code rather than the individual. You never know when this is
50+
someone's first ever PR and we want their experience to be as positive as possible, so be uplifting
51+
and constructive.
5552

5653
When you merge the pull request, 99% of the time you should use the
57-
[Squash and merge](https://help.github.com/articles/merging-a-pull-request/)
58-
feature. This keeps our git history clean, but more importantly, this allows us
59-
to make any necessary changes to the commit message so we release what we want
60-
to release. See the next section on Releases for more about that.
54+
[Squash and merge](https://help.github.com/articles/merging-a-pull-request/) feature. This keeps our
55+
git history clean, but more importantly, this allows us to make any necessary changes to the commit
56+
message so we release what we want to release. See the next section on Releases for more about that.
6157

6258
## Release
6359

64-
Our releases are automatic. They happen whenever code lands into `main`. A
65-
GitHub Action gets kicked off and if it's successful, a tool called
66-
[`semantic-release`](https://github.com/semantic-release/semantic-release) is
67-
used to automatically publish a new release to npm as well as a changelog to
68-
GitHub. It is only able to determine the version and whether a release is
69-
necessary by the git commit messages. With this in mind, **please brush up on
70-
[the commit message convention][commit] which drives our releases.**
71-
72-
> One important note about this: Please make sure that commit messages do NOT
73-
> contain the words "BREAKING CHANGE" in them unless we want to push a major
74-
> version. I've been burned by this more than once where someone will include
75-
> "BREAKING CHANGE: None" and it will end up releasing a new major version. Not
76-
> a huge deal honestly, but kind of annoying...
60+
Our releases are automatic. They happen whenever code lands into `main`. A GitHub Action gets kicked
61+
off and if it's successful, a tool called
62+
[`semantic-release`](https://github.com/semantic-release/semantic-release) is used to automatically
63+
publish a new release to npm as well as a changelog to GitHub. It is only able to determine the
64+
version and whether a release is necessary by the git commit messages. With this in mind, **please
65+
brush up on [the commit message convention][commit] which drives our releases.**
66+
67+
> One important note about this: Please make sure that commit messages do NOT contain the words
68+
> "BREAKING CHANGE" in them unless we want to push a major version. I've been burned by this more
69+
> than once where someone will include "BREAKING CHANGE: None" and it will end up releasing a new
70+
> major version. Not a huge deal honestly, but kind of annoying...
7771
7872
## Thanks!
7973

other/manual-releases.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# manual-releases
22

3-
This project has an automated release set up. So things are only released when
4-
there are useful changes in the code that justify a release. But sometimes
5-
things get messed up one way or another and we need to trigger the release
6-
ourselves. When this happens, simply bump the number below and commit that with
7-
the following commit message based on your needs:
3+
This project has an automated release set up. So things are only released when there are useful
4+
changes in the code that justify a release. But sometimes things get messed up one way or another
5+
and we need to trigger the release ourselves. When this happens, simply bump the number below and
6+
commit that with the following commit message based on your needs:
87

98
**Major**
109

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"prepare": "npm run build",
2929
"build": "kcd-scripts build --out-dir lib",
3030
"lint": "kcd-scripts lint",
31+
"format": "kcd-scripts format",
3132
"coverage": "codecov",
3233
"test": "kcd-scripts test",
3334
"docs:dev": "docz dev",

0 commit comments

Comments
 (0)