Socket
Book a DemoInstallSign in
Socket

@monogram/prettier-config

Package Overview
Dependencies
Maintainers
6
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@monogram/prettier-config

Prettier config used at monogram.io (adapted from @github/prettier-config)

latest
Source
npmnpm
Version
0.3.4
Version published
Weekly downloads
0
Maintainers
6
Weekly downloads
 
Created
Source

prettier-config

Prettier config used at monogram.io

Installing

Auto install

Executing it with npx from the project's root will perform the manual installation steps, installing @monogram/prettier-config as a dev dependency and adding "prettier": "@monogram/prettier-config" to your project's package.json.

npx @monogram/prettier-config

Install manually

Install the package using your package manager

yarn add -D @monogram/prettier-config
# or
npm i -D @monogram/prettier-config
# or
pnpm i -D @monogram/prettier-config

Add the prettier key to your package.json

+++  "prettier": "@monogram/prettier-config"

Extending

Can also be extended like this:

// .prettierrc.js
module.exports = {
	...require('@monogram/prettier-config'),
	tabWidth: 2,
	useTabs: false,
	overrides: [
		{
			files: '*.scss',
			options: {
				singleQuote: true,
				tabWidth: 2,
				useTabs: false,
				printWidth: 160,
			},
		},
	],
}

Check out the prettier documentation for more info on sharing configurations.

Acknowledgment

Inspired by @github/prettier-config.

Keywords

prettier

FAQs

Package last updated on 21 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts