Skip to content

Commit

Permalink
style: Update Prettier config for sorting imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud73 committed Jul 13, 2023
1 parent 19a2008 commit a9cbcac
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"singleQuote": true,
"printWidth": 100
"printWidth": 100,
"importOrder": ["^@angular/(.*)$", "<THIRD_PARTY_MODULES>", "^[./]"],
"importOrderParserPlugins": ["typescript", "decorators-legacy"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true
}
87 changes: 87 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"@angular/cli": "~16.1.0",
"@angular/compiler-cli": "^16.1.0",
"@compodoc/compodoc": "^1.1.21",
"@trivago/prettier-plugin-sort-imports": "^4.1.0",
"@types/jasmine": "~4.3.0",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
Expand Down

0 comments on commit a9cbcac

Please sign in to comment.