Skip to content

feat: add Prettier for code formatting (closes #27)#65

Open
Ai-chan-0411 wants to merge 1 commit intoO2sa:mainfrom
Ai-chan-0411:feat/add-prettier
Open

feat: add Prettier for code formatting (closes #27)#65
Ai-chan-0411 wants to merge 1 commit intoO2sa:mainfrom
Ai-chan-0411:feat/add-prettier

Conversation

@Ai-chan-0411
Copy link
Copy Markdown
Contributor

Summary

  • Adds Prettier (v3) as a code formatter with a standard configuration
  • Integrates eslint-config-prettier to disable ESLint rules that conflict with Prettier
  • Adds format and format:check npm scripts for formatting and CI validation
  • Formats all existing source files with Prettier for consistent code style

closes #27

Changes

File Description
.prettierrc.json Prettier configuration (semi, double quotes, trailing commas, 80 char width)
.prettierignore Ignores build artifacts and lock files
package.json Added prettier + eslint-config-prettier devDependencies and format scripts
eslint.config.js Added eslint-config-prettier as last config entry to disable conflicting rules
*.ts, *.tsx, *.js, *.json, *.css, *.md Auto-formatted by Prettier

Test plan

  • npx prettier --check "**/*.{ts,tsx,js,jsx,json,css,md}" passes
  • ESLint config still works with Prettier integration
  • No functional code changes — formatting only

- Add Prettier (v3) with standard config (.prettierrc.json)
- Add .prettierignore for build artifacts and lock files
- Integrate eslint-config-prettier to disable conflicting ESLint rules
- Add `format` and `format:check` npm scripts
- Format all existing source files with Prettier

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 12, 2026

@Ai-chan-0411 is attempting to deploy a commit to the osama's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

Thank you for the pull request! ✅

A maintainer will review this soon. Please be patient while we take a look. 🙌

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 for code formatting

1 participant