Skip to content

Add Prettier and ESLint configuration to projects#69

Merged
Josephat-S merged 1 commit into
devfrom
feat/linting-config
May 26, 2026
Merged

Add Prettier and ESLint configuration to projects#69
Josephat-S merged 1 commit into
devfrom
feat/linting-config

Conversation

@Josephat-S
Copy link
Copy Markdown
Contributor

This pull request adds Prettier and its Tailwind CSS plugin to all Next.js monolith templates (blog, ecommerce, portfolio, saas, school) to enforce consistent code formatting. It also updates ESLint configurations to integrate with Prettier and introduces new npm scripts for formatting and auto-fixing lint errors.

Formatting and linting improvements:

  • Added .prettierrc configuration files with formatting rules and enabled the prettier-plugin-tailwindcss plugin for all templates.
  • Updated .eslintrc.json files to extend from both next/core-web-vitals and prettier, ensuring ESLint and Prettier work together without conflicts.

Tooling and dependencies:

  • Added prettier, prettier-plugin-tailwindcss, and eslint-config-prettier as dev dependencies in each template's package.json.
  • Added new npm scripts: format (runs Prettier on the codebase) and lint:fix (runs ESLint with auto-fix), in addition to the existing lint script.

Closes #48

@Josephat-S Josephat-S requested a review from a team May 26, 2026 10:31
@Josephat-S Josephat-S merged commit ee7864a into dev May 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Prettier & ESLint Config to Generated Projects

1 participant