Skip to content

Commit ca2910b

Browse files
committed
Merge remote-tracking branch 'origin/main' into v4
# Conflicts: # lib/utils.ts # package.json
2 parents af32b0c + 15c9616 commit ca2910b

File tree

5 files changed

+26
-10
lines changed

5 files changed

+26
-10
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ jobs:
2626
- npm run format:check
2727
- npm run lint -- --max-warnings 0
2828
- stage: release
29-
if: branch = master AND type != pull_request AND fork = false
29+
if: branch = main AND type != pull_request AND fork = false
3030
node_js: 14
3131
env: ESLINT=7
3232
script: npm run build
3333
deploy:
3434
provider: script
3535
skip_cleanup: true
36+
on:
37+
branch: main
3638
script:
3739
- npx semantic-release

CONTRIBUTING.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ Working on your first Pull Request? You can learn how from this free series
1212
3. Run `npm install` to install corresponding dependencies
1313
4. Create a branch for your PR named like `pr/your-branch-name` (you can do this through git CLI with `git checkout -b pr/your-branch-name`)
1414

15-
> Tip: Keep your `master` branch pointing at the original repository and make
15+
> Tip: Keep your `main` branch pointing at the original repository and make
1616
> pull requests from branches on your fork. To do this, run:
1717
>
1818
> ```
1919
> git remote add upstream https://github.com/testing-library/eslint-plugin-testing-library.git
2020
> git fetch upstream
21-
> git branch --set-upstream-to=upstream/master master
21+
> git branch --set-upstream-to=upstream/main main
2222
> ```
2323
>
2424
> This will add the original repository as a "remote" called "upstream," Then
25-
> fetch the git information from that remote, then set your local `master`
26-
> branch to use the upstream master branch whenever you run `git pull`. Then you
27-
> can make all of your pull request branches based on this `master` branch.
28-
> Whenever you want to update your version of `master`, do a regular `git pull`.
25+
> fetch the git information from that remote, then set your local `main`
26+
> branch to use the upstream main branch whenever you run `git pull`. Then you
27+
> can make all of your pull request branches based on this `main` branch.
28+
> Whenever you want to update your version of `main`, do a regular `git pull`.
2929
3030
## Committing and Pushing changes
3131

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ To enable this configuration use the `extends` property in your
158158
[version-badge]: https://img.shields.io/npm/v/eslint-plugin-testing-library?style=flat-square
159159
[version-url]: https://www.npmjs.com/package/eslint-plugin-testing-library
160160
[license-badge]: https://img.shields.io/npm/l/eslint-plugin-testing-library?style=flat-square
161-
[license-url]: https://github.com/belco90/eslint-plugin-testing-library/blob/master/license
161+
[license-url]: https://github.com/belco90/eslint-plugin-testing-library/blob/main/license
162162
[pr-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
163163
[pr-url]: http://makeapullrequest.com
164164
[gh-watchers-badge]: https://img.shields.io/github/watchers/Belco90/eslint-plugin-testing-library?style=social

lib/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const combineQueries = (variants: string[], methods: string[]): string[] => {
1313
};
1414

1515
const getDocsUrl = (ruleName: string): string =>
16-
`https://github.com/testing-library/eslint-plugin-testing-library/tree/master/docs/rules/${ruleName}.md`;
16+
`https://github.com/testing-library/eslint-plugin-testing-library/tree/main/docs/rules/${ruleName}.md`;
1717

1818
const LIBRARY_MODULES = [
1919
'@testing-library/dom',

package.json

+15-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,21 @@
2121
"url": "https://github.com/testing-library/eslint-plugin-testing-library/issues"
2222
},
2323
"release": {
24-
"pkgRoot": "dist"
24+
"pkgRoot": "dist",
25+
"branches": [
26+
"+([0-9])?(.{+([0-9]),x}).x",
27+
"main",
28+
"next",
29+
"next-major",
30+
{
31+
"name": "beta",
32+
"prerelease": true
33+
},
34+
{
35+
"name": "alpha",
36+
"prerelease": true
37+
}
38+
]
2539
},
2640
"main": "index.js",
2741
"scripts": {

0 commit comments

Comments
 (0)