Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

swrlab/swr-prettier-config

Repository files navigation

SWR Prettier config

Installation

Step 1: Install npm package

npm install @swrlab/swr-prettier-config --save-dev

or

yarn add @swrlab/swr-prettier-config -D

Step 2: Include in package.json:

{
  "prettier": "@swrlab/swr-prettier-config"
}

Or create a .prettierrc.json file with a link:

"@swrlab/swr-prettier-config"

Editor Config

This repository also contains a .editorconfig file. Consider this version as the main and copy it to other repositories where needed. This should ensure that the same copy is used everywhere.