Skip to content

Commit

Permalink
enable eslint hooks rules
Browse files Browse the repository at this point in the history
  • Loading branch information
aciccarello committed Mar 17, 2023
1 parent 556a456 commit 40e1ab8
Show file tree
Hide file tree
Showing 15 changed files with 270 additions and 201 deletions.
11 changes: 11 additions & 0 deletions .changeset/shaggy-donuts-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'slate-react': minor
---

update dependencies on react hooks to be more senstive to changes

The code should now meet eslint react hook standards

This could result in more renders

closes #3886
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"plugin:import/typescript",
"prettier",
"prettier/@typescript-eslint",
"prettier/react"
"prettier/react",
"plugin:react-hooks/recommended"
],
"plugins": ["@typescript-eslint", "import", "react", "prettier"],
"parser": "@typescript-eslint/parser",
Expand All @@ -19,7 +20,7 @@
"settings": {
"import/extensions": [".js", ".ts", ".jsx", ".tsx"],
"react": {
"version": "detect"
"version": "16"
}
},
"env": {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-react": "^7.16.0",
"eslint-plugin-react-hooks": "^4.6.0",
"faker": "^4.1.0",
"image-extensions": "^1.1.0",
"is-hotkey": "^0.1.6",
Expand Down
Loading

0 comments on commit 40e1ab8

Please sign in to comment.