The format and check commands provide inconsistent handling of the order of import statements #2777
Answered
by
ematipico
AaronConlon
asked this question in
Q&A
-
Hi there, I don't know how to fix it. When I format the code: import { fdir } from "fdir";
import ignore from "ignore";
import { existsSync, readFileSync } from "node:fs";
import { join, relative, resolve } from "node:path"; And if I unsafe check it which will be changed the order: import { existsSync, readFileSync } from "node:fs";
import { join, relative, resolve } from "node:path";
import { fdir } from "fdir";
import ignore from "ignore"; Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
ematipico
May 9, 2024
Replies: 1 comment 2 replies
-
That's correct. That's how the import sorting works: https://biomejs.dev/analyzer/import-sorting/#how-imports-are-sorted If you don't need it, you should disable it via configuration or CLI. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
AaronConlon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's correct. That's how the import sorting works: https://biomejs.dev/analyzer/import-sorting/#how-imports-are-sorted
If you don't need it, you should disable it via configuration or CLI.