nice routing

This commit is contained in:
talksik
2022-01-31 00:00:08 -08:00
parent 16c8d26476
commit 6a349f2227
5 changed files with 38 additions and 18 deletions
+9 -2
View File
@@ -1,5 +1,5 @@
{
"plugins": ["@typescript-eslint"],
"plugins": ["@typescript-eslint", "react-hooks"],
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
@@ -10,7 +10,14 @@
// I suggest you add those two rules:
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "error",
"prefer-const": "error"
"prefer-const": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": [
"warn",
{
"additionalHooks": "(useRecoilCallback|useRecoilTransaction_UNSTABLE)"
}
]
},
"parser": "@typescript-eslint/parser"
}