From 396606a34a0e5cc1922bb23f4c37bbfd03b8d195 Mon Sep 17 00:00:00 2001 From: gitfromwildan <201965665+gitfromwildan@users.noreply.github.com> Date: Sat, 30 May 2026 19:36:35 +0700 Subject: [PATCH] chore: remove unused eslint and add unsafe-eval --- .eslintrc.json | 19 ------------------- next.config.mjs | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 0851bea..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": [ - "next/core-web-vitals", - "next/typescript", - "plugin:@typescript-eslint/recommended" - ], - "rules": { - "@typescript-eslint/no-explicit-any": "warn", - "@typescript-eslint/no-unused-vars": [ - "warn", - { - "argsIgnorePattern": "^_", - "varsIgnorePattern": "^_", - "caughtErrorsIgnorePattern": "^_" - } - ], - "@typescript-eslint/no-empty-object-type": "off" - } -} diff --git a/next.config.mjs b/next.config.mjs index baa953f..22653f4 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -17,7 +17,7 @@ const nextConfig = { { source: "/(.*)", headers: [ - { key: "Content-Security-Policy", value: "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; font-src 'self' data:; connect-src 'self' https:; frame-src https://www.youtube-nocookie.com; frame-ancestors 'none'" }, + { key: "Content-Security-Policy", value: "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; font-src 'self' data:; connect-src 'self' https:; frame-src https://www.youtube-nocookie.com; frame-ancestors 'none'" }, { key: "Strict-Transport-Security", value: "max-age=63072000; includeSubDomains; preload" }, { key: "X-Frame-Options", value: "DENY" }, { key: "X-Content-Type-Options", value: "nosniff" },