refactor: align routes with next 16 and local fonts
This commit is contained in:
parent
2e3b46a7b5
commit
dad84d7d0e
16 changed files with 2448 additions and 198 deletions
|
|
@ -1,16 +1,8 @@
|
|||
import { dirname } from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
import { FlatCompat } from "@eslint/eslintrc";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
const compat = new FlatCompat({
|
||||
baseDirectory: __dirname,
|
||||
});
|
||||
|
||||
import nextConfig from "eslint-config-next"
|
||||
import tseslint from "typescript-eslint"
|
||||
|
||||
const eslintConfig = [
|
||||
...compat.extends("next/core-web-vitals", "next/typescript"),
|
||||
...nextConfig,
|
||||
{
|
||||
ignores: [
|
||||
"node_modules/**",
|
||||
|
|
@ -24,12 +16,21 @@ const eslintConfig = [
|
|||
],
|
||||
},
|
||||
{
|
||||
files: ["**/*.ts", "**/*.tsx"],
|
||||
plugins: {
|
||||
"@typescript-eslint": tseslint.plugin,
|
||||
},
|
||||
rules: {
|
||||
"@typescript-eslint/no-explicit-any": "warn",
|
||||
"@typescript-eslint/ban-ts-comment": "warn",
|
||||
"react/no-unescaped-entities": "off",
|
||||
"react-hooks/set-state-in-effect": "off",
|
||||
"react-hooks/purity": "off",
|
||||
"react-hooks/refs": "off",
|
||||
"react-hooks/immutability": "off",
|
||||
"react-hooks/incompatible-library": "off",
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export default eslintConfig;
|
||||
]
|
||||
|
||||
export default eslintConfig
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue