@silverchip-labs/prettier-config-phosphor
v1.0.2
Published
Prettier Config Phosphor is a shared configuration package for Prettier, the opinionated code formatter. It provides a consistent code formatting style across your JavaScript projects, ensuring that your codebase is clean and easy to read.
Downloads
98
Readme
Prettier Config Phosphor
Prettier Config Phosphor is a shared configuration package for Prettier, the opinionated code formatter. It provides a consistent code formatting style across your JavaScript projects, ensuring that your codebase is clean and easy to read.
Installation
To start using Prettier Config Phosphor, follow these simple steps:
- Install the package as a development dependency in your project:
npm install --save-dev @silverchip-labs/prettier-config-phosphor
Create a .prettierrc file in the root of your project or update your existing .prettierrc file.
Extend the prettier-config-phosphor configuration in your .prettierrc file:
"prettier-config-phosphor"
- Customize the configuration to match your project's requirements by adding or modifying rules.
Usage
Prettier Config Phosphor provides a predefined set of formatting rules that align with the best practices for JavaScript development. However, you can customize the configuration to suit your needs. Simply update the .prettierrc file as follows:
{
"tabWidth": 2,
"semi": false,
"singleQuote": true,
// Add or modify other rules
}