mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
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:
+2
-1
@@ -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
@@ -14,5 +14,6 @@
|
||||
"importOrderParserPlugins": [
|
||||
"typescript",
|
||||
"decorators-legacy"
|
||||
]
|
||||
],
|
||||
"importOrderSideEffects": false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user