Step 1: Install npm package
npm install @swrlab/swr-prettier-config --save-devor
yarn add @swrlab/swr-prettier-config -DStep 2: Include in package.json:
{
"prettier": "@swrlab/swr-prettier-config"
}Or create a .prettierrc.json file with a link:
"@swrlab/swr-prettier-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.