Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
chore: use prettierrc js file (#62)
Browse files Browse the repository at this point in the history
* chore: migrate prettier config

* chore: update
  • Loading branch information
miracles1919 authored Aug 13, 2022
1 parent 2d95b32 commit fd86705
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
18 changes: 18 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
printWidth: 80,
singleQuote: true,
trailingComma: 'all',
proseWrap: 'never',
overrides: [
{
files: '.prettierrc',
options: {
parser: 'json',
},
},
],
plugins: [
require.resolve('prettier-plugin-organize-imports'),
require.resolve('prettier-plugin-packagejson'),
],
};
11 changes: 0 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,6 @@
"prettier --parser=typescript --write"
]
},
"prettier": {
"pluginSearchDirs": false,
"plugins": [
"prettier-plugin-organize-imports",
"prettier-plugin-packagejson"
],
"printWidth": 80,
"proseWrap": "never",
"singleQuote": true,
"trailingComma": "all"
},
"dependencies": {
"@microsoft/api-extractor": "7.25.1",
"@umijs/babel-preset-umi": "^4.0.0",
Expand Down

0 comments on commit fd86705

Please sign in to comment.