3.3.3 • Published 1 year ago
@mheob/prettier-config v3.3.3
My personal Prettier config
To make my configurations a bit easier I share my Prettier config.
Install
With NPM
npm install -D @mheob/prettier-configWith YARN
yarn add -D @mheob/prettier-configWith PNPM
pnpm add -D @mheob/prettier-configWith BUN
bun add -D @mheob/prettier-configUsage
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.3
1 year ago
3.3.2
1 year ago
3.3.1
2 years ago
3.3.0
2 years ago
3.2.1
2 years ago
3.2.0
2 years ago
3.1.1
2 years ago
3.1.0
3 years ago
3.0.1
3 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
4 years ago
1.1.0
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago