3.3.2 • Published 9 months ago

@mheob/prettier-config v3.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

My personal Prettier config

To make my configurations a bit easier I share my Prettier config.

Install

With NPM

npm install -D @mheob/prettier-config

With YARN

yarn add -D @mheob/prettier-config

With PNPM

pnpm add -D @mheob/prettier-config

With BUN

bun add -D @mheob/prettier-config

Usage

If you need to override some settings you can do it this way:

// .prettierrc.cjs
/** @type {import('prettier').Config} */
module.exports = {
	...require('@mheob/prettier-config'),
	semi: false,
	useTabs: false,
};

Ruleset

This configuration uses these styles:

/** @type {import('prettier').Config} */
module.exports = {
	arrowParens: 'avoid',
	endOfLine: 'lf',
	printWidth: 100,
	proseWrap: 'always',
	semi: true,
	singleQuote: true,
	trailingComma: 'all',
	useTabs: true,

	// eslint-disable-next-line perfectionist/sort-objects
	overrides: [
		{
			files: '*.{yaml,yml}',
			options: {
				printWidth: 130,
				singleQuote: false,
				useTabs: false,
			},
		},
		{
			files: '*.md',
			options: {
				printWidth: 130,
			},
		},
	],
};
3.3.2

9 months ago

3.3.1

1 year ago

3.3.0

1 year ago

3.2.1

1 year ago

3.2.0

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

3.0.0

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

1.4.0

3 years ago

1.3.1

3 years ago

2.0.0

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago