@m-social/prettier-config
v2.0.0
Published
Base Prettier config used internally at M-Social
Readme
@m-social/prettier-config
A shareable Prettier configuration used at M-Social
📦 Installation
Install the package using pnpm (recommended):
pnpm add -D prettier @m-social/prettier-configOr with other package managers:
# npm
npm install --save-dev prettier @m-social/prettier-config
# yarn
yarn add -D prettier @m-social/prettier-config🚀 Usage
Often this config should not be used directly. Instead, more specific configs should be used:
@m-social/prettier-config-sveltefor Svelte projects@m-social/prettier-config-reactfor React projects
If you still need to use this config, there are three ways to do it:
package.json (Recommended)
Add the following to your package.json:
{
"prettier": "@m-social/prettier-config"
}.prettierrc.json
Create a .prettierrc.json file with:
"@m-social/prettier-config".prettierrc.mjs
Create a .prettierrc.mjs file and re-export the config:
import config from "@m-social/prettier-config";
export default config;For more information about using Prettier configurations, see the official documentation.
📄 License
MIT © M-Social
