From 726bd9f86033009e5d18dfd2b99ef22dff38a472 Mon Sep 17 00:00:00 2001 From: Josephat-S Date: Tue, 26 May 2026 12:30:49 +0200 Subject: [PATCH] Add Prettier & ESLint Config to Generated Projects --- templates/blog/nextjs-monolith/.eslintrc.json | 2 +- templates/blog/nextjs-monolith/.prettierrc | 8 ++++++++ templates/blog/nextjs-monolith/package.json | 11 ++++++++--- templates/ecommerce/nextjs-monolith/.eslintrc.json | 2 +- templates/ecommerce/nextjs-monolith/.prettierrc | 8 ++++++++ templates/ecommerce/nextjs-monolith/package.json | 11 ++++++++--- templates/portfolio/nextjs-monolith/.eslintrc.json | 2 +- templates/portfolio/nextjs-monolith/.prettierrc | 8 ++++++++ templates/portfolio/nextjs-monolith/package.json | 11 ++++++++--- templates/saas/nextjs-monolith/.eslintrc.json | 2 +- templates/saas/nextjs-monolith/.prettierrc | 8 ++++++++ templates/saas/nextjs-monolith/package.json | 11 ++++++++--- templates/school/nextjs-monolith/.eslintrc.json | 2 +- templates/school/nextjs-monolith/.prettierrc | 8 ++++++++ templates/school/nextjs-monolith/package.json | 11 ++++++++--- 15 files changed, 85 insertions(+), 20 deletions(-) create mode 100644 templates/blog/nextjs-monolith/.prettierrc create mode 100644 templates/ecommerce/nextjs-monolith/.prettierrc create mode 100644 templates/portfolio/nextjs-monolith/.prettierrc create mode 100644 templates/saas/nextjs-monolith/.prettierrc create mode 100644 templates/school/nextjs-monolith/.prettierrc diff --git a/templates/blog/nextjs-monolith/.eslintrc.json b/templates/blog/nextjs-monolith/.eslintrc.json index a2569c2..a9a76c9 100644 --- a/templates/blog/nextjs-monolith/.eslintrc.json +++ b/templates/blog/nextjs-monolith/.eslintrc.json @@ -1,4 +1,4 @@ { "root": true, - "extends": "next/core-web-vitals" + "extends": ["next/core-web-vitals", "prettier"] } diff --git a/templates/blog/nextjs-monolith/.prettierrc b/templates/blog/nextjs-monolith/.prettierrc new file mode 100644 index 0000000..eed0e50 --- /dev/null +++ b/templates/blog/nextjs-monolith/.prettierrc @@ -0,0 +1,8 @@ +{ + "singleQuote": true, + "trailingComma": "all", + "semi": true, + "printWidth": 100, + "tabWidth": 2, + "plugins": ["prettier-plugin-tailwindcss"] +} diff --git a/templates/blog/nextjs-monolith/package.json b/templates/blog/nextjs-monolith/package.json index 5dfa145..ae891af 100644 --- a/templates/blog/nextjs-monolith/package.json +++ b/templates/blog/nextjs-monolith/package.json @@ -6,7 +6,9 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "format": "prettier --write .", + "lint:fix": "next lint --fix" }, "dependencies": { "next": "14.2.3", @@ -22,6 +24,9 @@ "eslint-config-next": "14.2.3", "postcss": "^8.4.38", "tailwindcss": "^3.4.3", - "typescript": "^5.4.5" + "typescript": "^5.4.5", + "prettier": "^3.3.0", + "prettier-plugin-tailwindcss": "^0.6.5", + "eslint-config-prettier": "^9.1.0" } -} +} \ No newline at end of file diff --git a/templates/ecommerce/nextjs-monolith/.eslintrc.json b/templates/ecommerce/nextjs-monolith/.eslintrc.json index a2569c2..a9a76c9 100644 --- a/templates/ecommerce/nextjs-monolith/.eslintrc.json +++ b/templates/ecommerce/nextjs-monolith/.eslintrc.json @@ -1,4 +1,4 @@ { "root": true, - "extends": "next/core-web-vitals" + "extends": ["next/core-web-vitals", "prettier"] } diff --git a/templates/ecommerce/nextjs-monolith/.prettierrc b/templates/ecommerce/nextjs-monolith/.prettierrc new file mode 100644 index 0000000..eed0e50 --- /dev/null +++ b/templates/ecommerce/nextjs-monolith/.prettierrc @@ -0,0 +1,8 @@ +{ + "singleQuote": true, + "trailingComma": "all", + "semi": true, + "printWidth": 100, + "tabWidth": 2, + "plugins": ["prettier-plugin-tailwindcss"] +} diff --git a/templates/ecommerce/nextjs-monolith/package.json b/templates/ecommerce/nextjs-monolith/package.json index 5dfa145..ae891af 100644 --- a/templates/ecommerce/nextjs-monolith/package.json +++ b/templates/ecommerce/nextjs-monolith/package.json @@ -6,7 +6,9 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "format": "prettier --write .", + "lint:fix": "next lint --fix" }, "dependencies": { "next": "14.2.3", @@ -22,6 +24,9 @@ "eslint-config-next": "14.2.3", "postcss": "^8.4.38", "tailwindcss": "^3.4.3", - "typescript": "^5.4.5" + "typescript": "^5.4.5", + "prettier": "^3.3.0", + "prettier-plugin-tailwindcss": "^0.6.5", + "eslint-config-prettier": "^9.1.0" } -} +} \ No newline at end of file diff --git a/templates/portfolio/nextjs-monolith/.eslintrc.json b/templates/portfolio/nextjs-monolith/.eslintrc.json index a2569c2..a9a76c9 100644 --- a/templates/portfolio/nextjs-monolith/.eslintrc.json +++ b/templates/portfolio/nextjs-monolith/.eslintrc.json @@ -1,4 +1,4 @@ { "root": true, - "extends": "next/core-web-vitals" + "extends": ["next/core-web-vitals", "prettier"] } diff --git a/templates/portfolio/nextjs-monolith/.prettierrc b/templates/portfolio/nextjs-monolith/.prettierrc new file mode 100644 index 0000000..eed0e50 --- /dev/null +++ b/templates/portfolio/nextjs-monolith/.prettierrc @@ -0,0 +1,8 @@ +{ + "singleQuote": true, + "trailingComma": "all", + "semi": true, + "printWidth": 100, + "tabWidth": 2, + "plugins": ["prettier-plugin-tailwindcss"] +} diff --git a/templates/portfolio/nextjs-monolith/package.json b/templates/portfolio/nextjs-monolith/package.json index 5dfa145..ae891af 100644 --- a/templates/portfolio/nextjs-monolith/package.json +++ b/templates/portfolio/nextjs-monolith/package.json @@ -6,7 +6,9 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "format": "prettier --write .", + "lint:fix": "next lint --fix" }, "dependencies": { "next": "14.2.3", @@ -22,6 +24,9 @@ "eslint-config-next": "14.2.3", "postcss": "^8.4.38", "tailwindcss": "^3.4.3", - "typescript": "^5.4.5" + "typescript": "^5.4.5", + "prettier": "^3.3.0", + "prettier-plugin-tailwindcss": "^0.6.5", + "eslint-config-prettier": "^9.1.0" } -} +} \ No newline at end of file diff --git a/templates/saas/nextjs-monolith/.eslintrc.json b/templates/saas/nextjs-monolith/.eslintrc.json index a2569c2..a9a76c9 100644 --- a/templates/saas/nextjs-monolith/.eslintrc.json +++ b/templates/saas/nextjs-monolith/.eslintrc.json @@ -1,4 +1,4 @@ { "root": true, - "extends": "next/core-web-vitals" + "extends": ["next/core-web-vitals", "prettier"] } diff --git a/templates/saas/nextjs-monolith/.prettierrc b/templates/saas/nextjs-monolith/.prettierrc new file mode 100644 index 0000000..eed0e50 --- /dev/null +++ b/templates/saas/nextjs-monolith/.prettierrc @@ -0,0 +1,8 @@ +{ + "singleQuote": true, + "trailingComma": "all", + "semi": true, + "printWidth": 100, + "tabWidth": 2, + "plugins": ["prettier-plugin-tailwindcss"] +} diff --git a/templates/saas/nextjs-monolith/package.json b/templates/saas/nextjs-monolith/package.json index 5dfa145..ae891af 100644 --- a/templates/saas/nextjs-monolith/package.json +++ b/templates/saas/nextjs-monolith/package.json @@ -6,7 +6,9 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "format": "prettier --write .", + "lint:fix": "next lint --fix" }, "dependencies": { "next": "14.2.3", @@ -22,6 +24,9 @@ "eslint-config-next": "14.2.3", "postcss": "^8.4.38", "tailwindcss": "^3.4.3", - "typescript": "^5.4.5" + "typescript": "^5.4.5", + "prettier": "^3.3.0", + "prettier-plugin-tailwindcss": "^0.6.5", + "eslint-config-prettier": "^9.1.0" } -} +} \ No newline at end of file diff --git a/templates/school/nextjs-monolith/.eslintrc.json b/templates/school/nextjs-monolith/.eslintrc.json index a2569c2..a9a76c9 100644 --- a/templates/school/nextjs-monolith/.eslintrc.json +++ b/templates/school/nextjs-monolith/.eslintrc.json @@ -1,4 +1,4 @@ { "root": true, - "extends": "next/core-web-vitals" + "extends": ["next/core-web-vitals", "prettier"] } diff --git a/templates/school/nextjs-monolith/.prettierrc b/templates/school/nextjs-monolith/.prettierrc new file mode 100644 index 0000000..eed0e50 --- /dev/null +++ b/templates/school/nextjs-monolith/.prettierrc @@ -0,0 +1,8 @@ +{ + "singleQuote": true, + "trailingComma": "all", + "semi": true, + "printWidth": 100, + "tabWidth": 2, + "plugins": ["prettier-plugin-tailwindcss"] +} diff --git a/templates/school/nextjs-monolith/package.json b/templates/school/nextjs-monolith/package.json index 5dfa145..ae891af 100644 --- a/templates/school/nextjs-monolith/package.json +++ b/templates/school/nextjs-monolith/package.json @@ -6,7 +6,9 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "format": "prettier --write .", + "lint:fix": "next lint --fix" }, "dependencies": { "next": "14.2.3", @@ -22,6 +24,9 @@ "eslint-config-next": "14.2.3", "postcss": "^8.4.38", "tailwindcss": "^3.4.3", - "typescript": "^5.4.5" + "typescript": "^5.4.5", + "prettier": "^3.3.0", + "prettier-plugin-tailwindcss": "^0.6.5", + "eslint-config-prettier": "^9.1.0" } -} +} \ No newline at end of file