Skip to content

Commit a4a0b37

Browse files
committed
migrate type FC to VFC
1 parent a0577cf commit a4a0b37

File tree

169 files changed

+29755
-9050
lines changed

Some content is hidden

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

169 files changed

+29755
-9050
lines changed

05-jsx/02-jsx-usage/yarn.lock

+25-17
Original file line numberDiff line numberDiff line change
@@ -2317,9 +2317,9 @@
23172317
pretty-format "^26.6.2"
23182318

23192319
"@testing-library/jest-dom@^5.11.4":
2320-
version "5.11.6"
2321-
resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.11.6.tgz#782940e82e5cd17bc0a36f15156ba16f3570ac81"
2322-
integrity sha512-cVZyUNRWwUKI0++yepYpYX7uhrP398I+tGz4zOlLVlUYnZS+Svuxv4fwLeCIy7TnBYKXUaOlQr3vopxL8ZfEnA==
2320+
version "5.11.9"
2321+
resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.11.9.tgz#e6b3cd687021f89f261bd53cbe367041fbd3e975"
2322+
integrity sha512-Mn2gnA9d1wStlAIT2NU8J15LNob0YFBVjs2aEQ3j8rsfRQo+lAs7/ui1i2TGaJjapLmuNPLTsrm+nPjmZDwpcQ==
23232323
dependencies:
23242324
"@babel/runtime" "^7.9.2"
23252325
"@types/testing-library__jest-dom" "^5.9.1"
@@ -2331,19 +2331,19 @@
23312331
redent "^3.0.0"
23322332

23332333
"@testing-library/react@^11.1.0":
2334-
version "11.2.2"
2335-
resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-11.2.2.tgz#099c6c195140ff069211143cb31c0f8337bdb7b7"
2336-
integrity sha512-jaxm0hwUjv+hzC+UFEywic7buDC9JQ1q3cDsrWVSDAPmLotfA6E6kUHlYm/zOeGCac6g48DR36tFHxl7Zb+N5A==
2334+
version "11.2.5"
2335+
resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-11.2.5.tgz#ae1c36a66c7790ddb6662c416c27863d87818eb9"
2336+
integrity sha512-yEx7oIa/UWLe2F2dqK0FtMF9sJWNXD+2PPtp39BvE0Kh9MJ9Kl0HrZAgEuhUJR+Lx8Di6Xz+rKwSdEPY2UV8ZQ==
23372337
dependencies:
23382338
"@babel/runtime" "^7.12.5"
23392339
"@testing-library/dom" "^7.28.1"
23402340

23412341
"@testing-library/user-event@^12.1.10":
2342-
version "12.2.2"
2343-
resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-12.2.2.tgz#22d0047da745289335240f523dfe74c889ec96cb"
2344-
integrity sha512-mTYL9LrwiSeyorStUOMuRGQDn1ca40tIhuv//o/K3lY8wBEp+9Im90MFVx5i3u7zCPmavn3uWZs/10chsbI8Tg==
2342+
version "12.8.3"
2343+
resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-12.8.3.tgz#1aa3ed4b9f79340a1e1836bc7f57c501e838704a"
2344+
integrity sha512-IR0iWbFkgd56Bu5ZI/ej8yQwrkCv8Qydx6RzwbKz9faXazR/+5tvYKsZQgyXJiwgpcva127YO6JcWy7YlCfofQ==
23452345
dependencies:
2346-
"@babel/runtime" "^7.10.2"
2346+
"@babel/runtime" "^7.12.5"
23472347

23482348
"@types/anymatch@*":
23492349
version "1.3.1"
@@ -2445,14 +2445,22 @@
24452445
dependencies:
24462446
"@types/istanbul-lib-report" "*"
24472447

2448-
"@types/jest@*", "@types/jest@^26.0.15":
2448+
"@types/jest@*":
24492449
version "26.0.15"
24502450
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.15.tgz#12e02c0372ad0548e07b9f4e19132b834cb1effe"
24512451
integrity sha512-s2VMReFXRg9XXxV+CW9e5Nz8fH2K1aEhwgjUqPPbQd7g95T0laAcvLv032EhFHIa5GHsZ8W7iJEQVaJq6k3Gog==
24522452
dependencies:
24532453
jest-diff "^26.0.0"
24542454
pretty-format "^26.0.0"
24552455

2456+
"@types/jest@^26.0.15":
2457+
version "26.0.21"
2458+
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.21.tgz#3a73c2731e7e4f0fbaea56ce7ff8c79cf812bd24"
2459+
integrity sha512-ab9TyM/69yg7eew9eOwKMUmvIZAKEGZYlq/dhe5/0IMUd/QLJv5ldRMdddSn+u22N13FP3s5jYyktxuBwY0kDA==
2460+
dependencies:
2461+
jest-diff "^26.0.0"
2462+
pretty-format "^26.0.0"
2463+
24562464
"@types/json-schema@*", "@types/json-schema@^7.0.3", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.6":
24572465
version "7.0.6"
24582466
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0"
@@ -2474,9 +2482,9 @@
24742482
integrity sha512-JsoLXFppG62tWTklIoO4knA+oDTYsmqWxHRvd4lpmfQRNhX6osheUOWETP2jMoV/2bEHuMra8Pp3Dmo/stBFcw==
24752483

24762484
"@types/node@^12.0.0":
2477-
version "12.19.6"
2478-
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.19.6.tgz#fbf249fa46487dd8c7386d785231368b92a33a53"
2479-
integrity sha512-U2VopDdmBoYBmtm8Rz340mvvSz34VgX/K9+XCuckvcLGMkt3rbMX8soqFOikIPlPBc5lmw8By9NUK7bEFSBFlQ==
2485+
version "12.20.6"
2486+
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.6.tgz#7b73cce37352936e628c5ba40326193443cfba25"
2487+
integrity sha512-sRVq8d+ApGslmkE9e3i+D3gFGk7aZHAT+G4cIpIEdLJYPsWiSPwcAnJEjddLQQDqV3Ra2jOclX/Sv6YrvGYiWA==
24802488

24812489
"@types/normalize-package-data@^2.4.0":
24822490
version "2.4.0"
@@ -11720,9 +11728,9 @@ wbuf@^1.1.0, wbuf@^1.7.3:
1172011728
minimalistic-assert "^1.0.0"
1172111729

1172211730
web-vitals@^1.0.1:
11723-
version "1.1.0"
11724-
resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-1.1.0.tgz#7f410d9a1f7a1cd5d952806b45776204b47dc274"
11725-
integrity sha512-1cx54eRxY/+M0KNKdNpNnuXAXG+vJEvwScV4DiV9rOYDguHoeDIzm09ghBohOPtkqPO5OtPC14FWkNva3SDisg==
11731+
version "1.1.1"
11732+
resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-1.1.1.tgz#2df535e3355fb7fbe34787b44b736e270e539377"
11733+
integrity sha512-jYOaqu01Ny1NvMwJ3dBJDUOJ2PGWknZWH4AUnvFOscvbdHMERIKT2TlgiAey5rVyfOePG7so2JcXXZdSnBvioQ==
1172611734

1172711735
webidl-conversions@^5.0.0:
1172811736
version "5.0.0"

06-lint/01-eslint/package.json

+12-11
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@testing-library/jest-dom": "^5.11.9",
6+
"@testing-library/jest-dom": "^5.11.10",
77
"@testing-library/react": "^11.2.5",
8-
"@testing-library/user-event": "^12.8.3",
9-
"@types/jest": "^26.0.20",
10-
"@types/node": "^14.14.33",
8+
"@testing-library/user-event": "^13.0.16",
9+
"@types/jest": "^26.0.22",
10+
"@types/node": "^14.14.37",
1111
"@types/react": "^17.0.3",
12-
"@types/react-dom": "^17.0.2",
13-
"react": "^17.0.1",
14-
"react-dom": "^17.0.1",
12+
"@types/react-dom": "^17.0.3",
13+
"react": "^17.0.2",
14+
"react-dom": "^17.0.2",
1515
"react-scripts": "4.0.3",
1616
"typescript": "^4.2.3",
17-
"web-vitals": "^1.1.0"
17+
"web-vitals": "^1.1.1"
1818
},
1919
"scripts": {
2020
"start": "react-scripts start",
@@ -45,12 +45,13 @@
4545
},
4646
"devDependencies": {
4747
"@types/testing-library__jest-dom": "^5.9.5",
48-
"@typescript-eslint/eslint-plugin": "^4.17.0",
49-
"@typescript-eslint/parser": "^4.17.0",
48+
"@types/testing-library__user-event": "^4.2.0",
49+
"@typescript-eslint/eslint-plugin": "^4.19.0",
50+
"@typescript-eslint/parser": "^4.19.0",
5051
"eslint-config-airbnb": "18.2.1",
5152
"eslint-plugin-import": "^2.22.1",
5253
"eslint-plugin-jsx-a11y": "^6.4.1",
53-
"eslint-plugin-react": "^7.22.0",
54+
"eslint-plugin-react": "^7.23.1",
5455
"eslint-plugin-react-hooks": "4.2.0"
5556
}
5657
}

06-lint/01-eslint/src/App.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { FC } from 'react';
1+
import { VFC } from 'react';
22
import logo from './logo.svg';
33
import './App.css';
44

5-
const App: FC = () => (
5+
const App: VFC = () => (
66
<div className="App">
77
<header className="App-header">
88
<img src={logo} className="App-logo" alt="logo" />

0 commit comments

Comments
 (0)