mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
cf763cdf81
Summary: Upgrades ESLint to v7.28.0. This is the latest version before v8.0.0, which would be a more involved upgrade. Upgrades all ESLint-related dependencies to their latest version, except for [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype/). This is because eslint-plugin-flowtype@8.0.0 dropped support for ESLint v7. Configures ESLint for Metro to extend `plugin:prettier/recommended`. ## Changelog [General][Changed] - Upgraded packages to the latest versions for ESLint v7. Pull Request resolved: https://github.com/facebook/react-native/pull/32560 Test Plan: Run this on an open source checkout of `facebook/react-native`: ``` # See no new errors or warnings. $ yarn run lint ``` Run this internally: ``` $ js1 test xplat/js/tools/__tests__/dependency-constraints-test.js ``` Verify linting works: ``` js1 lint xplat/js/RKJSModules/Libraries/Core/ ``` Reviewed By: lunaleaps Differential Revision: D32258399 Pulled By: yungsters fbshipit-source-id: d11b3fc3e33770157a90f3dee352cf80b39c442c
30 lines
678 B
JSON
30 lines
678 B
JSON
{
|
|
"name": "HelloWorld",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"android": "react-native run-android",
|
|
"ios": "react-native run-ios",
|
|
"start": "react-native start",
|
|
"test": "jest",
|
|
"lint": "eslint ."
|
|
},
|
|
"dependencies": {
|
|
"react": "17.0.2",
|
|
"react-native": "1000.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.12.9",
|
|
"@babel/runtime": "^7.12.5",
|
|
"@react-native-community/eslint-config": "^2.0.0",
|
|
"babel-jest": "^26.6.3",
|
|
"eslint": "^7.32.0",
|
|
"jest": "^26.6.3",
|
|
"metro-react-native-babel-preset": "^0.66.2",
|
|
"react-test-renderer": "17.0.2"
|
|
},
|
|
"jest": {
|
|
"preset": "react-native"
|
|
}
|
|
}
|