Skip to content

Commit

Permalink
Added React hooks lint rules and fixed useMemo error (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniGuardiola authored Nov 6, 2023
1 parent e7d573e commit 4127a09
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silver-hats-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"classy-ink": patch
---

Added React hooks lint rules and fixed memoization issue
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:react/jsx-runtime",
],
overrides: [
Expand Down
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"eslint": "^8.52.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"prettier": "^3.0.3",
"prettier-plugin-tailwindcss": "^0.5.6",
Expand Down
2 changes: 1 addition & 1 deletion src/components/useClassyInk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export function useClassyInk(className?: string): Props {
const result = compileClass(className);
cache?.set(className, result);
return result;
}, [className]);
}, [cache, className]);
}

0 comments on commit 4127a09

Please sign in to comment.