@samitouri / QOS-React / commits / 42795b22bf

Installed eslint-plugin-react-hooks@next and added to ESLint config

Brian Vaughn committed Feb 20, 2019 at 11:03 UTC 42795b22bf4c544c110184bef9eb7ee3b9c59d42
3 files changed +15 -1
.eslintrc
+9 -1
@@ -1,3 +1,11 @@
1 {
2 - "extends": ["react-app", "plugin:prettier/recommended"]
2 + "extends": ["react-app","plugin:prettier/recommended"],
3 + "plugins": ["react-hooks"],
4 + "rules": {
5 + "react-hooks/exhaustive-deps": "error",
6 + "react-hooks/rules-of-hooks": "error"
7 + },
8 + "settings": {
9 + "version": "detect"
10 + }
11 }
package.json
+1
@@ -67,6 +67,7 @@
67 "eslint-plugin-prettier": "^2.6.0",
68 "eslint-plugin-promise": "^3.7.0",
69 "eslint-plugin-react": "^7.7.0",
70 + "eslint-plugin-react-hooks": "^1.1.0-rc.0",
71 "eslint-plugin-standard": "^3.0.1",
72 "events": "^3.0.0",
73 "fbjs": "0.5.1",
yarn.lock
+5
@@ -3936,6 +3936,11 @@ eslint-plugin-promise@^3.7.0:
3936 resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-3.8.0.tgz#65ebf27a845e3c1e9d6f6a5622ddd3801694b621"
3937 integrity sha512-JiFL9UFR15NKpHyGii1ZcvmtIqa3UTwiDAGb8atSffe43qJ3+1czVGN6UtkklpcJ2DVnqvTMzEKRaJdBkAL2aQ==
3938
3939 +eslint-plugin-react-hooks@^1.1.0-rc.0:
3940 + version "1.1.0-rc.0"
3941 + resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.1.0-rc.0.tgz#78a1edf2c528312875df68d6e64083b44864c947"
3942 + integrity sha512-ujQtPGcBgKw+diEqVxqjK60K2Mg4m4ImfF9AyTPmC6PQCjII2o7gXkLnW/B4PjnST/vbgzmwcYyUX1da7K1m8A==
3943 +
3944 eslint-plugin-react@^7.7.0:
3945 version "7.12.4"
3946 resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.12.4.tgz#b1ecf26479d61aee650da612e425c53a99f48c8c"