-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically sort imports using Prettier plugin
- Loading branch information
Showing
23 changed files
with
623 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
const config = { | ||
/** | ||
* Enable plugin for automatically sorting of imports | ||
*/ | ||
plugins: ["@trivago/prettier-plugin-sort-imports"], | ||
importOrderParserPlugins: ["typescript", "decorators-legacy"], | ||
|
||
/** | ||
* Custom sorting of imports, first lit stuff, then other third | ||
* party libs, then own modules | ||
*/ | ||
importOrder: [ | ||
"^lit$", | ||
"^lit/.*$", | ||
"^@lit/.*$", | ||
"^@lit-app/.*$", | ||
"<THIRD_PARTY_MODULES>", | ||
"^[./]", | ||
], | ||
|
||
/** | ||
* Whether to separate sorting groups (as defined above) with | ||
* newline | ||
*/ | ||
// importOrderSeparation: true, | ||
|
||
/** | ||
* Whether to sort the specifiers on the left hand side of the | ||
* import statement | ||
*/ | ||
importOrderSortSpecifiers: true, | ||
}; | ||
|
||
export default config; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.