diff --git a/.eslintrc b/.eslintrc index d99bb211..28f6aaac 100644 --- a/.eslintrc +++ b/.eslintrc @@ -7,6 +7,7 @@ "extends": [ "eslint:recommended", "plugin:react/recommended", + "plugin:react-hooks/recommended", "plugin:prettier/recommended" ], "parser": "babel-eslint", diff --git a/package-lock.json b/package-lock.json index 405ebd29..fe067210 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4122,6 +4122,11 @@ "integrity": "sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ==", "dev": true }, + "animation-frame": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/animation-frame/-/animation-frame-0.3.0.tgz", + "integrity": "sha1-O7P0RrpT2ji7o0VYL0Nb46uK7ik=" + }, "ansi-align": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz", @@ -8218,6 +8223,12 @@ } } }, + "eslint-plugin-react-hooks": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.0.4.tgz", + "integrity": "sha512-equAdEIsUETLFNCmmCkiCGq6rkSK5MoJhXFPFYeUebcjKgBmWWcgVOqZyQC8Bv1BwVCnTq9tBxgJFgAJTWoJtA==", + "dev": true + }, "eslint-scope": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.0.tgz", diff --git a/package.json b/package.json index 606733e1..effd7d77 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "eslint-plugin-jest": "^23.17.0", "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-react": "^7.20.0", + "eslint-plugin-react-hooks": "^4.0.4", "file-loader": "^6.0.0", "jest": "^26.0.1", "nodemon": "^2.0.4", @@ -80,6 +81,7 @@ "webpack-cli": "^3.3.12" }, "dependencies": { + "animation-frame": "^0.3.0", "bcrypt": "^5.0.0", "body-parser": "^1.19.0", "celebrate": "^12.1.1",