mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
ea22ee6bf6
Summary: Fixes missing/incorrect devDependencies in a newly built app. The previous set did not pull in prettier, causing linting to fail. There was a peerDependency warning on yarn install. We also saw a separate lint warning at runtime specific to TS 4.9 being pulled in now, so we constrain in that version a bit. Prettier and preset-env versions match the constraints and lockfiles of other RN packages. ## Changelog [General] [Fixed] - Fixup template devDependencies Pull Request resolved: https://github.com/facebook/react-native/pull/35372 Test Plan: Created a new app targeting 0.71 via `react-native init`. 1. `yarn install --force` no longer shows warnings 2. `prettier` is installed, `yarn lint` no longer fails, and shows no warnings or errors 3. ~Tentatively a test step to add tests against linting in new app, but last time doing that in CircleCI led to timeouts with no output that I didn't have time to debug, so maybe that's fixed now? �♀️.~ (edit: still hangs) Reviewed By: NickGerleman Differential Revision: D41363021 Pulled By: lunaleaps fbshipit-source-id: d6163b01e8934d75a231fa0fd849d7bde7b3500c
39 lines
1011 B
JSON
39 lines
1011 B
JSON
{
|
|
"name": "HelloWorld",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"android": "react-native run-android",
|
|
"ios": "react-native run-ios",
|
|
"lint": "eslint .",
|
|
"start": "react-native start",
|
|
"test": "jest"
|
|
},
|
|
"dependencies": {
|
|
"react": "18.2.0",
|
|
"react-native": "0.71.0-rc.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.12.9",
|
|
"@babel/preset-env": "^7.14.0",
|
|
"@babel/runtime": "^7.12.5",
|
|
"@react-native-community/eslint-config": "^3.0.0",
|
|
"@tsconfig/react-native": "^2.0.2",
|
|
"@types/jest": "^29.2.1",
|
|
"@types/react": "^18.0.24",
|
|
"@types/react-test-renderer": "^18.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
|
"@typescript-eslint/parser": "^5.37.0",
|
|
"babel-jest": "^29.2.1",
|
|
"eslint": "^8.19.0",
|
|
"jest": "^29.2.1",
|
|
"metro-react-native-babel-preset": "0.73.3",
|
|
"prettier": "^2.4.1",
|
|
"react-test-renderer": "18.2.0",
|
|
"typescript": "4.8.4"
|
|
},
|
|
"jest": {
|
|
"preset": "react-native"
|
|
}
|
|
}
|