refactor: moving from nextjs to vite+react

This commit is contained in:
Pihkaal
2024-01-28 12:14:04 +01:00
parent 9bb6ccdd4f
commit 8446ee6c65
52 changed files with 610 additions and 2337 deletions

View File

@@ -6,11 +6,13 @@ const config = {
parserOptions: {
project: true,
},
plugins: ["@typescript-eslint"],
env: { browser: true, es2020: true },
plugins: ["@typescript-eslint", "react-refresh"],
extends: [
"next/core-web-vitals",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:react-hooks/recommended",
],
rules: {
// These opinionated rules are enabled in stylistic-type-checked above.
@@ -33,6 +35,11 @@ const config = {
checksVoidReturn: { attributes: false },
},
],
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
},
};