Skip to content

Commit

Permalink
chore(configs/eslint-config): fix and add eslint-plugin-react-hooks r…
Browse files Browse the repository at this point in the history
…ecommended rules (#1399)

# Overview

* fix and add `eslint-plugin-react-hooks` recommended rules

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)
2. I added documents and tests.
  • Loading branch information
sukvvon authored Dec 19, 2024
1 parent a8f476c commit bdd66de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion configs/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const suspensiveReactTypeScriptConfig = tseslint.config(
},
{
plugins: {
'react-hooks': reactHooks.configs.recommended,
'react-hooks': reactHooks,
'react-compiler': reactCompiler,
},
languageOptions: {
Expand All @@ -128,6 +128,7 @@ export const suspensiveReactTypeScriptConfig = tseslint.config(
},
},
rules: {
...reactHooks.configs.recommended.rules,
'react-compiler/react-compiler': 'warn',
},
settings: {
Expand Down
2 changes: 1 addition & 1 deletion docs/suspensive.org/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const config: DocsThemeConfig = {
float: true,
},
navigation: true,
main: ({ children }) => {
main: function Main({ children }) {
const router = useRouter()

return (
Expand Down

0 comments on commit bdd66de

Please sign in to comment.