Description
Implement Prettier as the code formatter to ensure consistent code style across the project. This will help maintain code quality and improve developer experience.
Current State
- No standardized code formatting
- Potential inconsistencies in code style across files
- Manual formatting required
Proposed Changes
-
Add Prettier and related dependencies:
- prettier
- prettier-plugin-tailwindcss
- eslint-config-prettier
- eslint-plugin-prettier
-
Create configuration files:
.prettierrc with modern formatting rules
.prettierignore for excluded files
.vscode/settings.json for editor integration
-
Add npm scripts:
format: Format all files
format:check: Check if files need formatting
-
Update ESLint configuration to work with Prettier
Description
Implement Prettier as the code formatter to ensure consistent code style across the project. This will help maintain code quality and improve developer experience.
Current State
Proposed Changes
Add Prettier and related dependencies:
Create configuration files:
.prettierrcwith modern formatting rules.prettierignorefor excluded files.vscode/settings.jsonfor editor integrationAdd npm scripts:
format: Format all filesformat:check: Check if files need formattingUpdate ESLint configuration to work with Prettier