Skip to content

Commit

Permalink
format: add sort import
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para committed Sep 20, 2023
1 parent bc44119 commit 0c47834
Show file tree
Hide file tree
Showing 3 changed files with 210 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,13 @@
"singleQuote": true,
"arrowParens": "avoid",
"vueIndentScriptAndStyle": false,
"printWidth": 100
"printWidth": 100,

"importOrderParserPlugins": ["typescript", "decorators-legacy"],

"importOrder": ["^\\."],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,

"plugins": ["@trivago/prettier-plugin-sort-imports"]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@electron-forge/publisher-github": "^6.4.0",
"@electron-forge/publisher-s3": "^6.4.0",
"@intlify/unplugin-vue-i18n": "^0.11.0",
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
"@types/animejs": "^3.1.7",
"@types/crypto-js": "^4.1.1",
"@types/ffi-napi": "^4.0.7",
Expand Down
200 changes: 200 additions & 0 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 0c47834

Please sign in to comment.