Skip to content

Commit d2c2173

Browse files
committed
Merge remote-tracking branch 'reactdev/main' into merge-react-dev
# Conflicts: # beta/package.json # beta/src/content/learn/add-react-to-a-website.md # beta/src/content/learn/start-a-new-react-project.md # beta/src/sidebarLearn.json # beta/yarn.lock # content/blog/2019-02-23-is-react-translated-yet.md # content/docs/accessibility.md # content/docs/add-react-to-a-website.md # content/docs/addons-shallow-renderer.md # content/docs/addons-test-utils.md # content/docs/cdn-links.md # content/docs/code-splitting.md # content/docs/components-and-props.md # content/docs/composition-vs-inheritance.md # content/docs/conditional-rendering.md # content/docs/create-a-new-react-app.md # content/docs/error-boundaries.md # content/docs/faq-ajax.md # content/docs/faq-build.md # content/docs/faq-state.md # content/docs/faq-structure.md # content/docs/faq-styling.md # content/docs/forms.md # content/docs/forwarding-refs.md # content/docs/fragments.md # content/docs/getting-started.md # content/docs/handling-events.md # content/docs/hello-world.md # content/docs/hooks-custom.md # content/docs/hooks-effect.md # content/docs/hooks-faq.md # content/docs/hooks-intro.md # content/docs/hooks-overview.md # content/docs/hooks-reference.md # content/docs/hooks-rules.md # content/docs/hooks-state.md # content/docs/introducing-jsx.md # content/docs/jsx-in-depth.md # content/docs/lifting-state-up.md # content/docs/lists-and-keys.md # content/docs/nav.yml # content/docs/portals.md # content/docs/react-without-es6.md # content/docs/react-without-jsx.md # content/docs/reconciliation.md # content/docs/reference-dom-elements.md # content/docs/reference-events.md # content/docs/reference-glossary.md # content/docs/reference-javascript-environment-requirements.md # content/docs/reference-react-component.md # content/docs/reference-react-dom-server.md # content/docs/reference-react-dom.md # content/docs/reference-react.md # content/docs/reference-test-renderer.md # content/docs/refs-and-the-dom.md # content/docs/render-props.md # content/docs/rendering-elements.md # content/docs/state-and-lifecycle.md # content/docs/strict-mode.md # content/docs/testing-environments.md # content/docs/testing.md # content/docs/thinking-in-react.md # content/docs/uncontrolled-components.md # content/docs/web-components.md # content/footerNav.yml # content/headerNav.yml # content/home/examples/a-component-using-external-plugins.md # content/home/examples/a-simple-component.md # content/home/examples/a-stateful-component.md # content/home/examples/an-application.md # content/home/marketing/component-based.md # content/home/marketing/declarative.md # content/home/marketing/learn-once-write-anywhere.md # content/tutorial/nav.yml # content/tutorial/tutorial.md # examples/introducing-jsx.js # src/components/LayoutHeader/DocSearch.js # src/content/learn/editor-setup.md # src/content/learn/javascript-in-jsx-with-curly-braces.md # src/html.js # src/pages/index.js # yarn.lock
2 parents c7567c8 + 920f32e commit d2c2173

File tree

1,440 files changed

+16610
-79152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,440 files changed

+16610
-79152
lines changed

.babelrc

Lines changed: 0 additions & 41 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

.eslintignore

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
node_modules/*
2-
3-
# Skip beta
4-
beta/*
5-
6-
# Ignore markdown files and examples
7-
content/*
8-
9-
# Ignore built files
10-
public/*
11-
12-
# Ignore examples
13-
examples/*
1+
scripts
2+
plugins
3+
next.config.js

.eslintrc

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
{
2-
"extends": [
3-
"fbjs"
4-
],
5-
"plugins": [
6-
"prettier",
7-
"react"
8-
],
9-
"parser": "babel-eslint",
2+
"root": true,
3+
"extends": "next/core-web-vitals",
4+
"parser": "@typescript-eslint/parser",
5+
"plugins": ["@typescript-eslint"],
106
"rules": {
11-
"relay/graphql-naming": 0,
12-
"max-len": 0
7+
"no-unused-vars": "off",
8+
"@typescript-eslint/no-unused-vars": "warn"
139
},
1410
"env": {
1511
"node": true,
16-
"browser": true
12+
"commonjs": true,
13+
"browser": true,
14+
"es6": true
1715
}
1816
}

.flowconfig

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Thank you for the PR! Contributors like you keep React awesome!
44
55
Please see the Contribution Guide for guidelines:
66
7-
https://github.com/reactjs/reactjs.org/blob/main/CONTRIBUTING.md
7+
https://github.com/reactjs/react.dev/blob/main/CONTRIBUTING.md
88
99
If your PR references an existing issue, please add the issue number below
1010

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
# Disable Dependabot. Doing it here so it propagates to translation forks.
8+
open-pull-requests-limit: 0

.github/labeler.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/analyze.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,30 @@ jobs:
2020

2121
- name: Install dependencies
2222
uses: bahmutov/[email protected]
23-
with:
24-
working-directory: 'beta'
2523

2624
- name: Restore next build
2725
uses: actions/cache@v2
2826
id: restore-build-cache
2927
env:
3028
cache-name: cache-next-build
3129
with:
32-
path: beta/.next/cache
30+
path: .next/cache
3331
# change this if you prefer a more strict cache
3432
key: ${{ runner.os }}-build-${{ env.cache-name }}
3533

3634
- name: Build next.js app
3735
# change this if your site requires a custom build command
3836
run: ./node_modules/.bin/next build
39-
working-directory: beta
4037

4138
# Here's the first place where next-bundle-analysis' own script is used
4239
# This step pulls the raw bundle stats for the current bundle
4340
- name: Analyze bundle
4441
run: npx -p nextjs-bundle-analysis report
45-
working-directory: beta
4642

4743
- name: Upload bundle
4844
uses: actions/upload-artifact@v2
4945
with:
50-
path: beta/.next/analyze/__bundle_analysis.json
46+
path: .next/analyze/__bundle_analysis.json
5147
name: bundle_analysis.json
5248

5349
- name: Download base branch bundle stats
@@ -57,7 +53,7 @@ jobs:
5753
workflow: analyze.yml
5854
branch: ${{ github.event.pull_request.base.ref }}
5955
name: bundle_analysis.json
60-
path: beta/.next/analyze/base/bundle
56+
path: .next/analyze/base/bundle
6157

6258
# And here's the second place - this runs after we have both the current and
6359
# base branch bundle stats, and will compare them to determine what changed.
@@ -75,13 +71,12 @@ jobs:
7571
- name: Compare with base branch bundle
7672
if: success() && github.event.number
7773
run: ls -laR .next/analyze/base && npx -p nextjs-bundle-analysis compare
78-
working-directory: beta
7974

8075
- name: Upload analysis comment
8176
uses: actions/upload-artifact@v2
8277
with:
8378
name: analysis_comment.txt
84-
path: beta/.next/analyze/__bundle_analysis_comment.txt
79+
path: .next/analyze/__bundle_analysis_comment.txt
8580

8681
- name: Save PR number
8782
run: echo ${{ github.event.number }} > ./pr_number

0 commit comments

Comments
 (0)