From 4435aca4e064bfea59031ae04914943c4c01825c Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 31 Mar 2022 19:56:19 +0000 Subject: [PATCH 1/2] feat(deps): update dependency eslint-plugin-react-hooks to ~4.4.0 --- packages/eslint-config-react/package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/eslint-config-react/package.json b/packages/eslint-config-react/package.json index 8afc5e59..b421f3b5 100644 --- a/packages/eslint-config-react/package.json +++ b/packages/eslint-config-react/package.json @@ -32,7 +32,7 @@ "babel-eslint": "^10.1.0", "eslint-plugin-jsx-a11y": "~6.5.1", "eslint-plugin-react": "~7.29.0", - "eslint-plugin-react-hooks": "~4.2.0" + "eslint-plugin-react-hooks": "~4.4.0" }, "devDependencies": { "eslint": "^7.32.0", diff --git a/yarn.lock b/yarn.lock index 686bc038..eb588467 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3646,10 +3646,10 @@ eslint-plugin-prettier@~4.0.0: dependencies: prettier-linter-helpers "^1.0.0" -eslint-plugin-react-hooks@~4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.0.tgz#8c229c268d468956334c943bb45fc860280f5556" - integrity sha512-623WEiZJqxR7VdxFCKLI6d6LLpwJkGPYKODnkH3D7WpOG5KM8yWueBd8TLsNAetEJNF5iJmolaAKO3F8yzyVBQ== +eslint-plugin-react-hooks@~4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.4.0.tgz#71c39e528764c848d8253e1aa2c7024ed505f6c4" + integrity sha512-U3RVIfdzJaeKDQKEJbz5p3NW8/L80PCATJAfuojwbaEL+gBjfGdhUcGde+WGUW46Q5sr/NgxevsIiDtNXrvZaQ== eslint-plugin-react@~7.29.0: version "7.29.2" From 7f3a02ae0720360d9048f5f7c19a6c7658d9fdc9 Mon Sep 17 00:00:00 2001 From: cberthou Date: Wed, 6 Apr 2022 18:48:24 +0200 Subject: [PATCH 2/2] fix(deps): update snapshots --- packages/eslint-config-react/__snapshots__/index.test.js.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-config-react/__snapshots__/index.test.js.snap b/packages/eslint-config-react/__snapshots__/index.test.js.snap index dee5bf32..eddf181d 100644 --- a/packages/eslint-config-react/__snapshots__/index.test.js.snap +++ b/packages/eslint-config-react/__snapshots__/index.test.js.snap @@ -4,7 +4,7 @@ exports[`fails with incorrect file 1`] = ` "/eslint-config-react/__fixtures__/incorrect.js: line 7, col 25, Warning - Expected object keys to be in ascending order. 'a' should be before 'b'. (sort-keys-fix/sort-keys-fix) /eslint-config-react/__fixtures__/incorrect.js: line 15, col 37, Error - 'name' is missing in props validation (react/prop-types) /eslint-config-react/__fixtures__/incorrect.js: line 24, col 3, Error - img elements must have an alt prop, either with meaningful text, or an empty string for decorative images. (jsx-a11y/alt-text) -/eslint-config-react/__fixtures__/incorrect.js: line 32, col 7, Error - React Hook \\"useState\\" is called in function \\"handleClick\\" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. (react-hooks/rules-of-hooks) +/eslint-config-react/__fixtures__/incorrect.js: line 32, col 7, Error - React Hook \\"useState\\" is called in function \\"handleClick\\" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word \\"use\\". (react-hooks/rules-of-hooks) 4 problems" `;