prettier-config-generator
Generate Prettier configuration files for consistent code formatting across JavaScript, TypeScript, CSS, and other file types. Triggers on "create prettier config", "generate prettier configuration", "prettier setup", "code formatting config".
When & Why to Use This Skill
This Claude skill automates the generation of Prettier configuration files to ensure consistent code formatting across JavaScript, TypeScript, CSS, and other web technologies. It simplifies the development environment setup by providing ready-to-use, industry-standard formatting rules that enhance code readability and maintainability.
Use Cases
- Project Initialization: Instantly generate a .prettierrc or prettier.config.js file when starting a new web development project to establish formatting standards from day one.
- Cross-Language Consistency: Create unified formatting rules for multi-language repositories including TypeScript, CSS, and JSON to maintain a clean and professional codebase.
- Team Collaboration: Standardize code style across a development team by generating and sharing a consistent Prettier configuration, effectively reducing merge conflicts caused by varying IDE formatting settings.
- Legacy Code Refactoring: Quickly set up a configuration to reformat an existing codebase to meet modern standards (Prettier 3.x) during a migration or cleanup phase.
| name | prettier-config-generator |
|---|---|
| description | Generate Prettier configuration files for consistent code formatting across JavaScript, TypeScript, CSS, and other file types. Triggers on "create prettier config", "generate prettier configuration", "prettier setup", "code formatting config". |
Prettier Config Generator
Generate Prettier configuration files for consistent code formatting.
Output Requirements
File Output: .prettierrc, .prettierrc.js, or prettier.config.js
Format: Valid Prettier configuration
Standards: Prettier 3.x
When Invoked
Immediately generate a complete Prettier configuration with formatting rules for the project type.
Configuration Template
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 100,
"bracketSpacing": true,
"arrowParens": "avoid"
}
Example Invocations
Prompt: "Create prettier config for TypeScript project"
Output: Complete .prettierrc with TypeScript-friendly settings.