build: prettier leaves side-effect imports where they are

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.
This commit is contained in:
Maurice
2026-10-10 20:30:16 +02:00
parent 939b13859d
commit 517fa21e2f
5 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -14,5 +14,6 @@
"importOrderParserPlugins": [
"typescript",
"decorators-legacy"
]
],
"importOrderSideEffects": false
}
@@ -4,6 +4,7 @@ import { Injectable, Module } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import 'reflect-metadata';
import { afterEach, describe, expect, it } from 'vitest';
import { z } from 'zod';
@@ -11,6 +11,7 @@ import { Module } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import 'reflect-metadata';
import { afterEach, describe, expect, it } from 'vitest';
import { z } from 'zod';
@@ -13,6 +13,7 @@ import { Injectable, Module } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import 'reflect-metadata';
import { afterEach, describe, expect, it, vi } from 'vitest';
import { z } from 'zod';
+2 -1
View File
@@ -14,5 +14,6 @@
"importOrderParserPlugins": [
"typescript",
"decorators-legacy"
]
],
"importOrderSideEffects": false
}