Skip to content

Commit cf763cd

Browse files
yungstersfacebook-github-bot
authored andcommitted
RN: Upgrade ESLint Packages (#32560)
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 [email protected] 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: #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
1 parent 8880c09 commit cf763cd

File tree

6 files changed

+1494
-557
lines changed

6 files changed

+1494
-557
lines changed

packages/eslint-config-react-native-community/index.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ module.exports = {
1616
sourceType: 'module',
1717
},
1818

19-
extends: [
20-
'plugin:prettier/recommended', // https://github.com/prettier/eslint-plugin-prettier#recommended-configuration
21-
'prettier/react',
22-
],
19+
extends: ['plugin:prettier/recommended'],
2320

2421
plugins: [
2522
'eslint-comments',

packages/eslint-config-react-native-community/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@
1515
"@typescript-eslint/eslint-plugin": "^4.22.1",
1616
"@typescript-eslint/parser": "^4.22.1",
1717
"babel-eslint": "^10.1.0",
18-
"eslint-config-prettier": "^6.10.1",
19-
"eslint-plugin-eslint-comments": "^3.1.2",
20-
"eslint-plugin-flowtype": "2.50.3",
21-
"eslint-plugin-jest": "22.4.1",
22-
"eslint-plugin-prettier": "3.1.2",
23-
"eslint-plugin-react": "^7.20.0",
24-
"eslint-plugin-react-hooks": "^4.0.7",
25-
"eslint-plugin-react-native": "^3.10.0",
18+
"eslint-config-prettier": "^8.3.0",
19+
"eslint-plugin-eslint-comments": "^3.2.0",
20+
"eslint-plugin-flowtype": "^7.0.0",
21+
"eslint-plugin-jest": "^25.2.4",
22+
"eslint-plugin-prettier": "^4.0.0",
23+
"eslint-plugin-react": "^7.26.1",
24+
"eslint-plugin-react-hooks": "^4.2.0",
25+
"eslint-plugin-react-native": "^3.11.0",
2626
"prettier": "^2.4.1"
2727
},
2828
"peerDependencies": {
2929
"eslint": ">=7",
3030
"prettier": ">=2"
3131
},
3232
"devDependencies": {
33-
"eslint": "7.12.0",
33+
"eslint": "^7.32.0",
3434
"prettier": "^2.4.1"
3535
}
3636
}

0 commit comments

Comments
 (0)