1.0.0 • Published 2 years ago
@omikorin/prettier-config v1.0.0
@omikorin/prettier-config
A curated .prettierrc with explicit config for every option.
Installation
To install @omikorin/prettier-config, use your favourite package manager:
pnpm install -D @omikorin/prettier-configUsage
Create a file named .prettierrc.js in the project's root directory with the following code.
const config = require('@omikorin/prettier-config');
module.exports = config;or edit package.json:
{
// ...
"prettier": "@omikorin/prettier-config"
}Alternatively, you can overwrite chosen options like this.
const config = require('@omikorin/prettier-config');
module.exports = {
...config,
useTabs: true,
};We all know tabs are worse than spaces and should be avoided.
License
This project is licensed under the terms of the ISC license.
1.0.0
2 years ago