From 9b47130e9234456385939bec4ed51e460c10b158 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 26 Sep 2024 16:34:32 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump prettier from 2.8.4 to 3.3.3 Bumps [prettier](https://github.com/prettier/prettier) from 2.8.4 to 3.3.3. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.8.4...3.3.3) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package-lock.json | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index cc0efd2..7e9258e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ "eslint-plugin-react": "^7.23.1", "jest": "^29.4.3", "metro-react-native-babel-preset": "^0.77.0", - "prettier": "^2.2.1", + "prettier": "^3.3.3", "react": "^18.3.1", "react-native": "^0.75.3", "react-test-renderer": "^18.2.0", @@ -12531,15 +12531,15 @@ } }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" diff --git a/package.json b/package.json index d0531b8..bd9efd0 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "eslint-plugin-react": "^7.23.1", "jest": "^29.4.3", "metro-react-native-babel-preset": "^0.77.0", - "prettier": "^2.2.1", + "prettier": "^3.3.3", "react": "^18.3.1", "react-native": "^0.75.3", "react-test-renderer": "^18.2.0", From dabc774049d21ba81c8716b17d65a04956f9b791 Mon Sep 17 00:00:00 2001 From: Laurence Bortfeld <472753+mrlaessig@users.noreply.github.com> Date: Thu, 26 Sep 2024 19:06:36 +0200 Subject: [PATCH 2/2] chore: remove eslint-airbnb due to ESLint version support --- .eslintrc | 2 +- __tests__/AutocompleteInput.spec.tsx | 6 +- index.tsx | 4 +- package-lock.json | 123 +++++++++++---------------- package.json | 7 +- 5 files changed, 59 insertions(+), 83 deletions(-) diff --git a/.eslintrc b/.eslintrc index 8ac87ab..2ae38a9 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,5 +1,5 @@ { - "extends": ["airbnb", "plugin:prettier/recommended", "eslint:recommended", "plugin:@typescript-eslint/recommended"], + "extends": ["plugin:prettier/recommended", "eslint:recommended", "plugin:@typescript-eslint/recommended"], "parser": "@typescript-eslint/parser", "plugins": ["@typescript-eslint", "jest", "react", "prettier"], "root": true, diff --git a/__tests__/AutocompleteInput.spec.tsx b/__tests__/AutocompleteInput.spec.tsx index c483b41..35ecd88 100644 --- a/__tests__/AutocompleteInput.spec.tsx +++ b/__tests__/AutocompleteInput.spec.tsx @@ -53,7 +53,7 @@ describe('', () => { data={[]} foo="bar" renderTextInput={(props) => {text}} - /> + />, ); const autocomplete = testRenderer.root; @@ -86,7 +86,7 @@ describe('', () => { const flatListProps = { foo: 'bar', keyExtractor }; const otherProps = { baz: 'qux' }; const testRenderer = renderer.create( - + , ); const autocomplete = testRenderer.root; const list = autocomplete.findByType(FlatList); @@ -107,7 +107,7 @@ describe('', () => { ))} )} - /> + />, ); const autocomplete = testRenderer.root; diff --git a/index.tsx b/index.tsx index 702d9f9..65ae2b0 100644 --- a/index.tsx +++ b/index.tsx @@ -36,7 +36,7 @@ function DefaultTextInput(props: TextInputProps): React.ReactElement { function AutocompleteInputComponent( props: AutocompleteInputProps, - ref: React.ForwardedRef + ref: React.ForwardedRef, ): React.ReactElement { const defaultRenderItems: ListRenderItem = ({ item }) => {String(item)}; function renderResultList(): React.ReactElement { @@ -151,7 +151,7 @@ const styles = StyleSheet.create({ }); export const AutocompleteInput = React.forwardRef( - AutocompleteInputComponent + AutocompleteInputComponent, ) as typeof AutocompleteInputComponent; export default AutocompleteInput; diff --git a/package-lock.json b/package-lock.json index 7e9258e..bfa26d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,13 +21,12 @@ "@typescript-eslint/parser": "^8.7.0", "babel-eslint": "^10.1.0", "babel-jest": "^29.4.3", - "eslint": "^8.2.0", - "eslint-config-airbnb": "^19.0.4", - "eslint-config-prettier": "^8.1.0", + "eslint": "^8.56.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-jest": "^28.8.3", "eslint-plugin-jsx-a11y": "^6.4.1", - "eslint-plugin-prettier": "^3.3.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-react": "^7.23.1", "jest": "^29.4.3", "metro-react-native-babel-preset": "^0.77.0", @@ -3175,6 +3174,18 @@ "node": ">= 8" } }, + "node_modules/@pkgr/core": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz", + "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/@react-native-community/cli": { "version": "14.1.0", "resolved": "https://registry.npmjs.org/@react-native-community/cli/-/cli-14.1.0.tgz", @@ -6012,12 +6023,6 @@ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "dev": true }, - "node_modules/confusing-browser-globals": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", - "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", - "dev": true - }, "node_modules/connect": { "version": "3.7.0", "resolved": "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz", @@ -6837,50 +6842,10 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint-config-airbnb": { - "version": "19.0.4", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-19.0.4.tgz", - "integrity": "sha512-T75QYQVQX57jiNgpF9r1KegMICE94VYwoFQyMGhrvc+lB8YF2E/M/PYDaQe1AJcWaEgqLE+ErXV1Og/+6Vyzew==", - "dev": true, - "dependencies": { - "eslint-config-airbnb-base": "^15.0.0", - "object.assign": "^4.1.2", - "object.entries": "^1.1.5" - }, - "engines": { - "node": "^10.12.0 || ^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^7.32.0 || ^8.2.0", - "eslint-plugin-import": "^2.25.3", - "eslint-plugin-jsx-a11y": "^6.5.1", - "eslint-plugin-react": "^7.28.0", - "eslint-plugin-react-hooks": "^4.3.0" - } - }, - "node_modules/eslint-config-airbnb-base": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", - "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", - "dev": true, - "dependencies": { - "confusing-browser-globals": "^1.0.10", - "object.assign": "^4.1.2", - "object.entries": "^1.1.5", - "semver": "^6.3.0" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - }, - "peerDependencies": { - "eslint": "^7.32.0 || ^8.2.0", - "eslint-plugin-import": "^2.25.2" - } - }, "node_modules/eslint-config-prettier": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz", - "integrity": "sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", "dev": true, "bin": { "eslint-config-prettier": "bin/cli.js" @@ -7088,21 +7053,30 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz", - "integrity": "sha512-htg25EUYUeIhKHXjOinK4BgCcDwtLHjqaxCDsMy5nbnUMkKFvIhMVCp+5GFUXQ4Nr8lBsPqtGAqBenbpFqAA2g==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.1.tgz", + "integrity": "sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==", "dev": true, "dependencies": { - "prettier-linter-helpers": "^1.0.0" + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.9.1" }, "engines": { - "node": ">=6.0.0" + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-plugin-prettier" }, "peerDependencies": { - "eslint": ">=5.0.0", - "prettier": ">=1.13.0" + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "eslint-config-prettier": "*", + "prettier": ">=3.0.0" }, "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, "eslint-config-prettier": { "optional": true } @@ -7140,19 +7114,6 @@ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" } }, - "node_modules/eslint-plugin-react-hooks": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz", - "integrity": "sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==", - "dev": true, - "peer": true, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" - } - }, "node_modules/eslint-plugin-react/node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -13905,6 +13866,22 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/synckit": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.1.tgz", + "integrity": "sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A==", + "dev": true, + "dependencies": { + "@pkgr/core": "^0.1.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/temp": { "version": "0.8.4", "resolved": "https://registry.npmjs.org/temp/-/temp-0.8.4.tgz", diff --git a/package.json b/package.json index bd9efd0..9f5c103 100644 --- a/package.json +++ b/package.json @@ -42,13 +42,12 @@ "@typescript-eslint/parser": "^8.7.0", "babel-eslint": "^10.1.0", "babel-jest": "^29.4.3", - "eslint": "^8.2.0", - "eslint-config-airbnb": "^19.0.4", - "eslint-config-prettier": "^8.1.0", + "eslint": "^8.56.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-jest": "^28.8.3", "eslint-plugin-jsx-a11y": "^6.4.1", - "eslint-plugin-prettier": "^3.3.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-react": "^7.23.1", "jest": "^29.4.3", "metro-react-native-babel-preset": "^0.77.0",