From 09f15ff8749ecc9e169742fb0598c7e648e5a561 Mon Sep 17 00:00:00 2001 From: Rot4tion <56016610+Rot4tion@users.noreply.github.com> Date: Fri, 9 May 2025 01:06:33 +0700 Subject: [PATCH] templates: add eslint ignore rule for '.next/' (#12332) ### What? Standardizes ESLint configurations across all template projects like website template to ensure consistent code quality enforcement. ### Why? Previously, there were inconsistencies in the ESLint configurations between different template projects. Some templates were missing the .next/ ignore pattern, which could lead to unnecessary linting of build files. By standardizing these configurations, we ensure consistent code quality standards and developer experience across all template projects. ### How? Added the missing ignores: ['.next/'] configuration to templates that were missing it --- templates/blank/eslint.config.mjs | 3 +++ templates/with-payload-cloud/eslint.config.mjs | 3 +++ templates/with-postgres/eslint.config.mjs | 3 +++ templates/with-vercel-mongodb/eslint.config.mjs | 3 +++ templates/with-vercel-postgres/eslint.config.mjs | 3 +++ 5 files changed, 15 insertions(+) diff --git a/templates/blank/eslint.config.mjs b/templates/blank/eslint.config.mjs index 37d29ea57..7acd77dd1 100644 --- a/templates/blank/eslint.config.mjs +++ b/templates/blank/eslint.config.mjs @@ -30,6 +30,9 @@ const eslintConfig = [ ], }, }, + { + ignores: ['.next/'], + }, ] export default eslintConfig diff --git a/templates/with-payload-cloud/eslint.config.mjs b/templates/with-payload-cloud/eslint.config.mjs index 37d29ea57..7acd77dd1 100644 --- a/templates/with-payload-cloud/eslint.config.mjs +++ b/templates/with-payload-cloud/eslint.config.mjs @@ -30,6 +30,9 @@ const eslintConfig = [ ], }, }, + { + ignores: ['.next/'], + }, ] export default eslintConfig diff --git a/templates/with-postgres/eslint.config.mjs b/templates/with-postgres/eslint.config.mjs index 37d29ea57..7acd77dd1 100644 --- a/templates/with-postgres/eslint.config.mjs +++ b/templates/with-postgres/eslint.config.mjs @@ -30,6 +30,9 @@ const eslintConfig = [ ], }, }, + { + ignores: ['.next/'], + }, ] export default eslintConfig diff --git a/templates/with-vercel-mongodb/eslint.config.mjs b/templates/with-vercel-mongodb/eslint.config.mjs index 37d29ea57..7acd77dd1 100644 --- a/templates/with-vercel-mongodb/eslint.config.mjs +++ b/templates/with-vercel-mongodb/eslint.config.mjs @@ -30,6 +30,9 @@ const eslintConfig = [ ], }, }, + { + ignores: ['.next/'], + }, ] export default eslintConfig diff --git a/templates/with-vercel-postgres/eslint.config.mjs b/templates/with-vercel-postgres/eslint.config.mjs index 37d29ea57..7acd77dd1 100644 --- a/templates/with-vercel-postgres/eslint.config.mjs +++ b/templates/with-vercel-postgres/eslint.config.mjs @@ -30,6 +30,9 @@ const eslintConfig = [ ], }, }, + { + ignores: ['.next/'], + }, ] export default eslintConfig