@23g/prettier-config
A simple and low-maintenance Prettier configuration package to keep your code consistently formatted with minimal effort.
Installation
Install the package via npm:
npm install --save-dev @23g/prettier-config
Usage
Option 1: Extendable config
Create a .prettierrc.js
file in the root of your project and include the following configuration:
import prettierConfig from '@23g/prettier-config';
export default {
...prettierConfig,
};
Option 2: Simple config
Alternatively, you can specify the configuration directly in your package.json
:
{
"prettier": "@23g/prettier-config"
}
Features
- Simple setup - Just install and reference the configuration.
- Low maintenance - No need to frequently update or tweak settings.
- Consistent formatting - Ensures uniform code style across your project.