0.3.4 • Published 1 year ago

@monogram/prettier-config v0.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.

0.3.4

1 year ago

0.3.3

2 years ago

0.3.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.1.2-rc

3 years ago

0.2.0

3 years ago

0.1.2-rc.3

3 years ago

0.1.2-rc.4

3 years ago

0.1.2-rc.0

3 years ago

0.1.2-rc.1

3 years ago

0.1.2-rc.2

3 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago