@m-social/prettier-config-react
v2.0.0
Published
Shared Prettier config for React projects used at M-Social
Readme
@m-social/prettier-config-react
A shareable Prettier configuration for React projects used at M-Social
📦 Installation
Install the package using pnpm (recommended):
pnpm add -D prettier @m-social/prettier-config-reactOr with other package managers:
# npm
npm install --save-dev prettier @m-social/prettier-config-react
# yarn
yarn add -D prettier @m-social/prettier-config-react🚀 Usage
There are three ways to use this configuration:
package.json (Recommended)
Add the following to your package.json:
{
"prettier": "@m-social/prettier-config-react"
}.prettierrc.json
Create a .prettierrc.json file with:
"@m-social/prettier-config-react".prettierrc.mjs
Create a .prettierrc.mjs file and re-export the config:
import config from "@m-social/prettier-config-react";
export default config;For more information about using Prettier configurations, see the official documentation.
📄 License
MIT © M-Social
