eslint-config-heck 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/node.js +5 -1
  2. package/package.json +5 -4
package/node.js CHANGED
@@ -20,7 +20,7 @@ const env = {
20
20
 
21
21
  const globals = {};
22
22
 
23
- const plugins = ["react", "unicorn"];
23
+ const plugins = ["react", "react-hooks", "unicorn"];
24
24
  const settings = {
25
25
  react: {
26
26
  version: "detect",
@@ -666,6 +666,10 @@ const rules = {
666
666
  },
667
667
  ],
668
668
 
669
+ // eslint-plugin-react-hooks
670
+ "react-hooks/rules-of-hooks": "error",
671
+ "react-hooks/exhaustive-deps": "error",
672
+
669
673
  // eslint-plugin-unicorn
670
674
  "unicorn/better-regex": "error",
671
675
  "unicorn/catch-error-name": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-heck",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,12 +18,13 @@
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
20
  "@delagen/eslint-plugin-deprecation": "1.3.2",
21
- "@typescript-eslint/eslint-plugin": "5.18.0",
22
- "@typescript-eslint/parser": "5.18.0",
21
+ "@typescript-eslint/eslint-plugin": "5.19.0",
22
+ "@typescript-eslint/parser": "5.19.0",
23
23
  "eslint": "8.13.0",
24
24
  "eslint-plugin-jest": "26.1.4",
25
25
  "eslint-plugin-react": "7.29.4",
26
- "eslint-plugin-testing-library": "5.3.0",
26
+ "eslint-plugin-react-hooks": "4.4.0",
27
+ "eslint-plugin-testing-library": "5.3.1",
27
28
  "eslint-plugin-typescript-heck": "1.2.1",
28
29
  "eslint-plugin-unicorn": "42.0.0",
29
30
  "typescript": "4.6.3"