Skip to content

Commit

Permalink
feat: wrap functions in useCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
ugogo committed Oct 2, 2022
1 parent fa43116 commit bd1dad0
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 154 deletions.
6 changes: 4 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parserOptions": {
"project": ["./tsconfig.json", "rollup.config.js"]
},
"plugins": ["@typescript-eslint"],
"plugins": ["@typescript-eslint", "react-hooks"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
Expand All @@ -20,6 +20,8 @@
},
"rules": {
"react/jsx-sort-props": "error",
"react/sort-prop-types": "error"
"react/sort-prop-types": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-react": "^7.31.8",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-typescript-sort-keys": "^2.1.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.16",
Expand Down
Loading

0 comments on commit bd1dad0

Please sign in to comment.