@rainstormy/presets-prettier
v1.0.0-rc.0
Published
A predefined, opinionated Prettier configuration suitable for any TypeScript project.
Downloads
1
Maintainers
Readme
General Preset for Prettier
This package provides a predefined, opinionated Prettier configuration suitable for any TypeScript project.
This preset includes the following plugins, which are installed along with the preset package:
Installation
Install the @rainstormy/presets-prettier
package and its peer dependencies:
npm install --save-dev @rainstormy/presets-prettier prettier typescript
pnpm install --save-dev @rainstormy/presets-prettier prettier typescript
yarn add --dev @rainstormy/presets-prettier prettier typescript
Usage
Create or extend a Prettier configuration file (prettier.config.js
) and export the result of prettierPresets
as the configuration object.
For example (with the default options in comments):
import { prettierPresets } from "@rainstormy/presets-prettier"
export default prettierPresets({
// additionalPresets: [],
})