Skip to content

Add Prettier & ESLint Config to Generated Projects #48

@Josephat-S

Description

@Josephat-S

What to build

Generated projects should come with pre-configured Prettier and ESLint so users have code quality tools from day one. Add .prettierrc, update .eslintrc.json, and add format and lint:fix scripts.

Files to modify

  • templates/*/nextjs-monolith/package.json (add prettier devDep, add scripts)
  • templates/*/nextjs-monolith/.prettierrc (Create)
  • templates/*/nextjs-monolith/.eslintrc.json (Modify — add prettier plugin)

Acceptance criteria

  • Every generated Next.js project has a .prettierrc (single quotes, trailing commas).
  • package.json includes prettier as a devDependency.
  • npm run format script runs Prettier on the project.
  • npm run lint:fix script runs ESLint with auto-fix.
  • No conflicts between ESLint and Prettier rules.

Dependencies

  • None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeatureRequest for a new feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions