Skip to content

Commit cacf590

Browse files
authored
Bump template dependency version (#11415)
1 parent 5cedfe4 commit cacf590

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

packages/confusing-browser-globals/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ If you use Create React App, you don't need to configure anything, as this rule
3131
If you maintain your own ESLint configuration, you can do this:
3232

3333
```js
34-
var restrictedGlobals = require('confusing-browser-globals');
34+
const restrictedGlobals = require('confusing-browser-globals');
3535

3636
module.exports = {
3737
rules: {

packages/cra-template-typescript/template.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"package": {
33
"dependencies": {
4-
"@testing-library/jest-dom": "^5.11.4",
5-
"@testing-library/react": "^11.1.0",
6-
"@testing-library/user-event": "^12.1.10",
7-
"@types/node": "^12.0.0",
8-
"@types/react": "^17.0.0",
9-
"@types/react-dom": "^17.0.0",
10-
"@types/jest": "^26.0.15",
11-
"typescript": "^4.1.2",
12-
"web-vitals": "^1.0.1"
4+
"@testing-library/jest-dom": "^5.14.1",
5+
"@testing-library/react": "^12.0.0",
6+
"@testing-library/user-event": "^13.2.1",
7+
"@types/jest": "^27.0.1",
8+
"@types/node": "^16.7.13",
9+
"@types/react": "^17.0.20",
10+
"@types/react-dom": "^17.0.9",
11+
"typescript": "^4.4.2",
12+
"web-vitals": "^2.1.0"
1313
},
1414
"eslintConfig": {
1515
"extends": ["react-app", "react-app/jest"]

packages/cra-template/template.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"package": {
33
"dependencies": {
4-
"@testing-library/jest-dom": "^5.11.4",
5-
"@testing-library/react": "^11.1.0",
6-
"@testing-library/user-event": "^12.1.10",
7-
"web-vitals": "^1.0.1"
4+
"@testing-library/jest-dom": "^5.14.1",
5+
"@testing-library/react": "^12.0.0",
6+
"@testing-library/user-event": "^13.2.1",
7+
"web-vitals": "^2.1.0"
88
},
99
"eslintConfig": {
1010
"extends": ["react-app", "react-app/jest"]

packages/create-react-app/createReactApp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ function run(
512512
},
513513
[root, appName, verbose, originalDirectory, templateName],
514514
`
515-
var init = require('${packageName}/scripts/init.js');
515+
const init = require('${packageName}/scripts/init.js');
516516
init.apply(null, JSON.parse(process.argv[1]));
517517
`
518518
);

packages/create-react-app/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636

3737
'use strict';
3838

39-
var currentNodeVersion = process.versions.node;
40-
var semver = currentNodeVersion.split('.');
41-
var major = semver[0];
39+
const currentNodeVersion = process.versions.node;
40+
const semver = currentNodeVersion.split('.');
41+
const major = semver[0];
4242

4343
if (major < 14) {
4444
console.error(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy