mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
517fa21e2f
The sort-imports plugin moved bare imports along with the rest, which on src/index.ts would have put reflect-metadata after the modules that need it and the env validation ahead of dotenv. With importOrderSideEffects off, a side-effect import stays in place and the imports between two of them are sorted on their own. The three test files that were already formatted gain the blank line the new grouping writes after reflect-metadata.
20 lines
377 B
Plaintext
20 lines
377 B
Plaintext
{
|
|
"printWidth": 120,
|
|
"singleQuote": true,
|
|
"trailingComma": "all",
|
|
"plugins": [
|
|
"prettier-plugin-organize-imports",
|
|
"@trivago/prettier-plugin-sort-imports"
|
|
],
|
|
"importOrder": [
|
|
"^[a-zA-Z]",
|
|
"^@/.*"
|
|
],
|
|
"importOrderSeparation": true,
|
|
"importOrderParserPlugins": [
|
|
"typescript",
|
|
"decorators-legacy"
|
|
],
|
|
"importOrderSideEffects": false
|
|
}
|