fix: add dynamic sitemap.xml and fix eslint config
Some checks failed
Build & Deploy / 🔍 Prepare Environment (push) Successful in 9s
Build & Deploy / 🧪 QA (push) Failing after 49s
Build & Deploy / 🏗️ Build (push) Successful in 6m57s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / ⚡ PageSpeed (push) Has been skipped
Build & Deploy / 🔔 Notifications (push) Successful in 2s

This commit is contained in:
2026-02-09 11:17:29 +01:00
parent 41b592fbe0
commit d289e583c8
2 changed files with 61 additions and 17 deletions

View File

@@ -3,17 +3,9 @@ import tseslint from "typescript-eslint";
import nextPlugin from "@next/eslint-plugin-next";
import reactPlugin from "eslint-plugin-react";
import hooksPlugin from "eslint-plugin-react-hooks";
import { FlatCompat } from "@eslint/eslintrc";
import { dirname } from "path";
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
});
export default tseslint.config(
{
ignores: ["**/dist/**", "**/node_modules/**", "**/.next/**", "**/out/**"],
@@ -34,15 +26,6 @@ export default tseslint.config(
"react/react-in-jsx-scope": "off",
"react/no-unescaped-entities": "off",
"@next/next/no-img-element": "warn",
},
settings: {
react: {
version: "detect",
},
},
},
{
rules: {
"no-unused-vars": "warn",
"@typescript-eslint/no-unused-vars": ["warn", {
"argsIgnorePattern": "^_",
@@ -68,5 +51,10 @@ export default tseslint.config(
"no-self-assign": "off",
"no-control-regex": "off",
},
settings: {
react: {
version: "detect",
},
},
},
);