0.0.9 • Published 5 months ago
@alphaomega/prettier v0.0.9
Prettier Configuration
This package provides a shared Prettier configuration to enforce a consistent code style across your JavaScript and TypeScript projects.
Features
- Enforces single quotes for strings.
- Uses semi-colons at the end of statements.
- Sets a tab width of 2 spaces for indentation.
- Applies trailing commas where valid in ES5 (objects, arrays, etc.).
- Ensures bracket spacing in object literals.
- Uses spaces over tabs for indentation.
- Etc.
Installation
To use this Prettier configuration in your project, follow these steps:
- Install the package:
yarn add @alphaomega/prettier-config --dev
Create a .prettierrc.js file in your project root (if not already present), and extend the configuration:
module.exports = {
...require('@alphaomega/prettier-config'),
// You can override specific settings here if needed
};