Skip to content

Commit

Permalink
feat(prettier): add prettier-plugin-packagejson
Browse files Browse the repository at this point in the history
Resolves #4
  • Loading branch information
mrmckeb committed Sep 21, 2022
1 parent 6109def commit 1b41033
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 9 deletions.
15 changes: 8 additions & 7 deletions package.json
Expand Up @@ -17,10 +17,6 @@
"prettier",
"typescript.json"
],
"packageManager": "pnpm@7.12.0",
"engines": {
"node": ">=16"
},
"scripts": {
"eslint-check": "eslint --max-warnings=0 .",
"prepare": "husky install",
Expand All @@ -45,7 +41,8 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^5.6.4",
"eslint-plugin-tsdoc": "^0.2.17",
"eslint-plugin-unicorn": "^43.0.2"
"eslint-plugin-unicorn": "^43.0.2",
"prettier-plugin-packagejson": "^2.2.18"
},
"devDependencies": {
"@babel/core": "^7.19.1",
Expand All @@ -67,16 +64,20 @@
"typescript": "^4.8.3"
},
"peerDependenciesMeta": {
"@next/eslint-plugin-next": {
"@babel/core": {
"optional": true
},
"@babel/core": {
"@next/eslint-plugin-next": {
"optional": true
},
"typescript": {
"optional": true
}
},
"packageManager": "pnpm@7.12.0",
"engines": {
"node": ">=16"
},
"publishConfig": {
"access": "public"
}
Expand Down
73 changes: 71 additions & 2 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions prettier/index.js
Expand Up @@ -15,4 +15,5 @@ module.exports = {
...overridableDefaults,
singleQuote: true,
trailingComma: 'all',
plugins: ['prettier-plugin-packagejson'],
};

0 comments on commit 1b41033

Please sign in to comment.