auto import is importing everything on the same line
When I use the auto import feature to paste a code snippet it is currently showing like this:
import { Authentication,AuthenticationParams } from "@/domain/usecases"; import { HttpPostClientSpy } from "@/data/test"; import { AccountModel } from "@/domain/models"; import { RemoteAuthentication } from "@/data/usecases/authentication/remote-authentication";
type SutTypes = {
sut: Authentication
httpPostClientSpy: HttpPostClientSpy<AuthenticationParams, AccountModel>
}
let url: string
const makeSut = (): SutTypes => {
const httpPostClientSpy = new HttpPostClientSpy<AuthenticationParams, AccountModel>()
const sut = new RemoteAuthentication(url, httpPostClientSpy)
return {
sut,
httpPostClientSpy
}
}
But I would like it to arrive like this:
import { Authentication, AuthenticationParams } from '@/domain/usecases'
import { HttpPostClientSpy } from '@/data/test'
import { AccountModel } from '@/domain/models'
import { RemoteAuthentication } from '@/data/usecases/authentication/remote-authentication'
type SutTypes = {
sut: Authentication
httpPostClientSpy: HttpPostClientSpy<AuthenticationParams, AccountModel>
}
let url: string
const makeSut = (): SutTypes => {
const httpPostClientSpy = new HttpPostClientSpy<AuthenticationParams, AccountModel>()
const sut = new RemoteAuthentication(url, httpPostClientSpy)
return {
sut,
httpPostClientSpy
}
}
How to solve this?
Please sign in to leave a comment.
does the issue only occurs on pasting code fragments? please share a screen recording of your steps