Skip to content

Commit

Permalink
docs(prettier): add newest ruleset to README (#63)
Browse files Browse the repository at this point in the history
Resolves #61
  • Loading branch information
mheob committed Sep 27, 2022
1 parent 12b3867 commit 49204ca
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 23 deletions.
5 changes: 5 additions & 0 deletions .changeset/lemon-countries-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mheob/prettier-config': patch
---

Add the newest ruleset to the README
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@mheob/check-package-manager": "workspace:*",
"@mheob/eslint-config": "workspace:*",
"@mheob/prettier-config": "workspace:*",
"@types/node": "^18.7.21",
"@types/node": "^18.7.23",
"eslint": "^8.24.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
Expand All @@ -45,7 +45,7 @@
"turbo": "^1.5.3",
"typescript": "^4.8.3"
},
"packageManager": "pnpm@7.12.1",
"packageManager": "pnpm@7.12.2",
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
Expand Down
13 changes: 9 additions & 4 deletions packages/prettier-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@ This configuration uses the [`@trivago/prettier-plugin-sort-imports`](https://gi
plugin and set these styles:

```js
const jsDocPlugin = require('prettier-plugin-jsdoc');
const sortImports = require('@trivago/prettier-plugin-sort-imports');

/** @type {import('prettier').Config} */
module.exports = {
plugins: [jsDocPlugin, sortImports],
plugins: [sortImports],
arrowParens: 'always',
endOfLine: 'lf',
printWidth: 100,
Expand All @@ -56,16 +55,22 @@ module.exports = {
importOrderSortSpecifiers: true,
singleQuote: true,
semi: true,
tabWidth: 2,
trailingComma: 'all',
useTabs: false,
useTabs: true,

overrides: [
{
files: '*.{yaml,yml}',
options: {
printWidth: 130,
singleQuote: false,
useTabs: false,
},
},
{
files: '*.md',
options: {
printWidth: 130,
},
},
],
Expand Down
34 changes: 17 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 49204ca

Please sign in to comment.