build: update react native dependencies (#5152)

- Update @react-native-community dependencies to their @react-native
  upgrades because the former namespace is deprecated (React release
  0.72)
- Don't install @react-native/eslint-plugin directly because it's a
  dependency of @react-native/eslint-config
This commit is contained in:
Marco Ferrari 2024-01-18 18:39:35 +01:00 committed by GitHub
parent 3a21ed5bdf
commit f3d1590cd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 29 additions and 26 deletions

48
dependencies/package-lock.json generated vendored
View file

@ -10,8 +10,7 @@
"@babel/preset-react": "^7.23.3", "@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3", "@babel/preset-typescript": "^7.23.3",
"@coffeelint/cli": "^5.2.11", "@coffeelint/cli": "^5.2.11",
"@react-native-community/eslint-config": "^3.2.0", "@react-native/eslint-config": "^0.73.2",
"@react-native-community/eslint-plugin": "^1.3.0",
"@stoplight/spectral-cli": "^6.11.0", "@stoplight/spectral-cli": "^6.11.0",
"@typescript-eslint/eslint-plugin": "^5.60.0", "@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.61.0", "@typescript-eslint/parser": "^5.61.0",
@ -4617,16 +4616,16 @@
"@babel/runtime-corejs3": "^7.14.9" "@babel/runtime-corejs3": "^7.14.9"
} }
}, },
"node_modules/@react-native-community/eslint-config": { "node_modules/@react-native/eslint-config": {
"version": "3.2.0", "version": "0.73.2",
"resolved": "https://registry.npmjs.org/@react-native-community/eslint-config/-/eslint-config-3.2.0.tgz", "resolved": "https://registry.npmjs.org/@react-native/eslint-config/-/eslint-config-0.73.2.tgz",
"integrity": "sha512-ZjGvoeiBtCbd506hQqwjKmkWPgynGUoJspG8/MuV/EfKnkjCtBmeJvq2n+sWbWEvL9LWXDp2GJmPzmvU5RSvKQ==", "integrity": "sha512-YzMfes19loTfbrkbYNAfHBDXX4oRBzc5wnvHs4h2GIHUj6YKs5ZK5lldqSrBJCdZAI3nuaO9Qj+t5JRwou571w==",
"dependencies": { "dependencies": {
"@babel/core": "^7.14.0", "@babel/core": "^7.20.0",
"@babel/eslint-parser": "^7.18.2", "@babel/eslint-parser": "^7.20.0",
"@react-native-community/eslint-plugin": "^1.1.0", "@react-native/eslint-plugin": "0.73.1",
"@typescript-eslint/eslint-plugin": "^5.30.5", "@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.30.5", "@typescript-eslint/parser": "^5.57.1",
"eslint-config-prettier": "^8.5.0", "eslint-config-prettier": "^8.5.0",
"eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-ft-flow": "^2.0.1", "eslint-plugin-ft-flow": "^2.0.1",
@ -4636,12 +4635,15 @@
"eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-native": "^4.0.0" "eslint-plugin-react-native": "^4.0.0"
}, },
"engines": {
"node": ">=18"
},
"peerDependencies": { "peerDependencies": {
"eslint": ">=8", "eslint": ">=8",
"prettier": ">=2" "prettier": ">=2"
} }
}, },
"node_modules/@react-native-community/eslint-config/node_modules/eslint-config-prettier": { "node_modules/@react-native/eslint-config/node_modules/eslint-config-prettier": {
"version": "8.10.0", "version": "8.10.0",
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz", "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz",
"integrity": "sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==", "integrity": "sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==",
@ -4652,7 +4654,7 @@
"eslint": ">=7.0.0" "eslint": ">=7.0.0"
} }
}, },
"node_modules/@react-native-community/eslint-config/node_modules/eslint-plugin-jest": { "node_modules/@react-native/eslint-config/node_modules/eslint-plugin-jest": {
"version": "26.9.0", "version": "26.9.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-26.9.0.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-26.9.0.tgz",
"integrity": "sha512-TWJxWGp1J628gxh2KhaH1H1paEdgE2J61BBF1I59c6xWeL5+D1BzMxGDN/nXAfX+aSkR5u80K+XhskK6Gwq9ng==", "integrity": "sha512-TWJxWGp1J628gxh2KhaH1H1paEdgE2J61BBF1I59c6xWeL5+D1BzMxGDN/nXAfX+aSkR5u80K+XhskK6Gwq9ng==",
@ -4675,7 +4677,7 @@
} }
} }
}, },
"node_modules/@react-native-community/eslint-config/node_modules/eslint-plugin-prettier": { "node_modules/@react-native/eslint-config/node_modules/eslint-plugin-prettier": {
"version": "4.2.1", "version": "4.2.1",
"resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz",
"integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==",
@ -4695,10 +4697,13 @@
} }
} }
}, },
"node_modules/@react-native-community/eslint-plugin": { "node_modules/@react-native/eslint-plugin": {
"version": "1.3.0", "version": "0.73.1",
"resolved": "https://registry.npmjs.org/@react-native-community/eslint-plugin/-/eslint-plugin-1.3.0.tgz", "resolved": "https://registry.npmjs.org/@react-native/eslint-plugin/-/eslint-plugin-0.73.1.tgz",
"integrity": "sha512-+zDZ20NUnSWghj7Ku5aFphMzuM9JulqCW+aPXT6IfIXFbb8tzYTTOSeRFOtuekJ99ibW2fUCSsjuKNlwDIbHFg==" "integrity": "sha512-8BNMFE8CAI7JLWLOs3u33wcwcJ821LYs5g53Xyx9GhSg0h8AygTwDrwmYb/pp04FkCNCPjKPBoaYRthQZmxgwA==",
"engines": {
"node": ">=18"
}
}, },
"node_modules/@redis/bloom": { "node_modules/@redis/bloom": {
"version": "1.2.0", "version": "1.2.0",
@ -10797,11 +10802,10 @@
} }
}, },
"node_modules/eslint-plugin-react-native": { "node_modules/eslint-plugin-react-native": {
"version": "4.0.0", "version": "4.1.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-react-native/-/eslint-plugin-react-native-4.0.0.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-react-native/-/eslint-plugin-react-native-4.1.0.tgz",
"integrity": "sha512-kMmdxrSY7A1WgdqaGC+rY/28rh7kBGNBRsk48ovqkQmdg5j4K+DaFmegENDzMrdLkoufKGRNkKX6bgSwQTCAxQ==", "integrity": "sha512-QLo7rzTBOl43FvVqDdq5Ql9IoElIuTdjrz9SKAXCvULvBoRZ44JGSkx9z4999ZusCsb4rK3gjS8gOGyeYqZv2Q==",
"dependencies": { "dependencies": {
"@babel/traverse": "^7.7.4",
"eslint-plugin-react-native-globals": "^0.1.1" "eslint-plugin-react-native-globals": "^0.1.1"
}, },
"peerDependencies": { "peerDependencies": {

View file

@ -5,8 +5,7 @@
"@babel/preset-react": "^7.23.3", "@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3", "@babel/preset-typescript": "^7.23.3",
"@coffeelint/cli": "^5.2.11", "@coffeelint/cli": "^5.2.11",
"@react-native-community/eslint-config": "^3.2.0", "@react-native/eslint-config": "^0.73.2",
"@react-native-community/eslint-plugin": "^1.3.0",
"@stoplight/spectral-cli": "^6.11.0", "@stoplight/spectral-cli": "^6.11.0",
"@typescript-eslint/eslint-plugin": "^5.60.0", "@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.61.0", "@typescript-eslint/parser": "^5.61.0",

View file

@ -296,8 +296,8 @@ control "super-linter-installed-npm-packages" do
"@babel/preset-react", "@babel/preset-react",
"@babel/preset-typescript", "@babel/preset-typescript",
"@coffeelint/cli", "@coffeelint/cli",
"@react-native-community/eslint-config", "@react-native/eslint-config",
"@react-native-community/eslint-plugin", "@react-native/eslint-plugin",
"@stoplight/spectral-cli", "@stoplight/spectral-cli",
"@typescript-eslint/eslint-plugin", "@typescript-eslint/eslint-plugin",
"@typescript-eslint/parser", "@typescript-eslint/parser",