@rainstormy/presets-prettier
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-rc.0 • Public • Published

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: [],
})

Package Sidebar

Install

npm i @rainstormy/presets-prettier

Weekly Downloads

0

Version

1.0.0-rc.0

License

MIT

Unpacked Size

7.58 kB

Total Files

6

Last publish

Collaborators

  • rainstormybot-nimbus
  • spdiswal