diff --git a/.yarn/cache/eslint-plugin-react-hooks-npm-4.3.0-290cb54ea5-0ba1566ba0.zip b/.yarn/cache/eslint-plugin-react-hooks-npm-4.3.0-290cb54ea5-0ba1566ba0.zip new file mode 100644 index 0000000..8a8a22d Binary files /dev/null and b/.yarn/cache/eslint-plugin-react-hooks-npm-4.3.0-290cb54ea5-0ba1566ba0.zip differ diff --git a/packages/react-chat/.eslintrc.json b/packages/react-chat/.eslintrc.json index b8a87ff..051027a 100644 --- a/packages/react-chat/.eslintrc.json +++ b/packages/react-chat/.eslintrc.json @@ -10,6 +10,7 @@ "plugin:eslint-comments/recommended", "plugin:@typescript-eslint/recommended", "plugin:import/typescript", + "plugin:react-hooks/recommended", "prettier" ], "globals": { "BigInt": true, "console": true, "WebAssembly": true }, diff --git a/packages/react-chat/package.json b/packages/react-chat/package.json index f21fa69..03d42f2 100644 --- a/packages/react-chat/package.json +++ b/packages/react-chat/package.json @@ -36,6 +36,7 @@ "chai": "^4.3.4", "copyfiles": "^2.4.1", "eslint": "^7.32.0", + "eslint-plugin-react-hooks": "^4.3.0", "jsdom": "^16.7.0", "jsdom-global": "^3.0.2", "mocha": "^9.0.3", diff --git a/yarn.lock b/yarn.lock index 3c26c5e..5c00e6a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1324,6 +1324,7 @@ __metadata: copyfiles: ^2.4.1 emoji-mart: ^3.0.1 eslint: ^7.32.0 + eslint-plugin-react-hooks: ^4.3.0 html-entities: ^2.3.2 js-sha3: ^0.8.0 jsdom: ^16.7.0 @@ -4255,6 +4256,15 @@ __metadata: languageName: node linkType: hard +"eslint-plugin-react-hooks@npm:^4.3.0": + version: 4.3.0 + resolution: "eslint-plugin-react-hooks@npm:4.3.0" + peerDependencies: + eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 + checksum: 0ba1566ba0780bbc75a5921f49188edf232db2085ab32c8d3889592f0db9d6fadc97fcf639775e0101dec6b5409ca3c803ec44213b90c8bacaf0bdf921871c2e + languageName: node + linkType: hard + "eslint-plugin-react@npm:^7.24.0": version: 7.26.0 resolution: "eslint-plugin-react@npm:7.26.0"