You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the invalid result when biome check --write is executed on a file which
requires import sorting and contains a license header:
importElectronLogofrom"@assets/electron.svg";/* * European Union Public License 1.2 * * Copyright (c) 2024, My Company Name * * The contents of this file are subject to the terms and conditions defined in the License. * You may not use, modify, or distribute this file except in compliance with the License. * * SPDX-License-Identifier: EUPL-1.2 */import{Fragment,typeReactNode}from"react";importVersionsfrom"./Versions.tsx";
This is the expected result:
/* * European Union Public License 1.2 * * Copyright (c) 2024, My Company Name * * The contents of this file are subject to the terms and conditions defined in the License. * You may not use, modify, or distribute this file except in compliance with the License. * * SPDX-License-Identifier: EUPL-1.2 */importElectronLogofrom"@assets/electron.svg";import{Fragment,typeReactNode}from"react";importVersionsfrom"./Versions.tsx";
Your comment (because it's a comment, even though it is a fancy one) is technically attached to the import statement right after, because there aren't any newlines.
If want to have your comments to be "sticky", you have to add a newline after the comment.
Environment information
Configuration
Playground link
https://biomejs.dev/playground/?code=LwAqAAoAIAAqACAAIAAgAEUAdQByAG8AcABlAGEAbgAgAFUAbgBpAG8AbgAgAFAAdQBiAGwAaQBjACAATABpAGMAZQBuAHMAZQAgADEALgAyAAoAIAAqAAoAIAAqACAAIAAgAEMAbwBwAHkAcgBpAGcAaAB0ACAAKABjACkAIAAyADAAMgA0ACwAIABNAHkAIABDAG8AbQBwAGEAbgB5ACAATgBhAG0AZQAKACAAKgAKACAAKgAgACAAIABUAGgAZQAgAGMAbwBuAHQAZQBuAHQAcwAgAG8AZgAgAHQAaABpAHMAIABmAGkAbABlACAAYQByAGUAIABzAHUAYgBqAGUAYwB0ACAAdABvACAAdABoAGUAIAB0AGUAcgBtAHMAIABhAG4AZAAgAGMAbwBuAGQAaQB0AGkAbwBuAHMAIABkAGUAZgBpAG4AZQBkACAAaQBuACAAdABoAGUAIABMAGkAYwBlAG4AcwBlAC4ACgAgACoAIAAgACAAWQBvAHUAIABtAGEAeQAgAG4AbwB0ACAAdQBzAGUALAAgAG0AbwBkAGkAZgB5ACwAIABvAHIAIABkAGkAcwB0AHIAaQBiAHUAdABlACAAdABoAGkAcwAgAGYAaQBsAGUAIABlAHgAYwBlAHAAdAAgAGkAbgAgAGMAbwBtAHAAbABpAGEAbgBjAGUAIAB3AGkAdABoACAAdABoAGUAIABMAGkAYwBlAG4AcwBlAC4ACgAgACoACgAgACoAIAAgACAAUwBQAEQAWAAtAEwAaQBjAGUAbgBzAGUALQBJAGQAZQBuAHQAaQBmAGkAZQByADoAIABFAFUAUABMAC0AMQAuADIACgAgACoALwAKAGkAbQBwAG8AcgB0ACAAewAgAEYAcgBhAGcAbQBlAG4AdAAsACAAdAB5AHAAZQAgAFIAZQBhAGMAdABOAG8AZABlACAAfQAgAGYAcgBvAG0AIAAiAHIAZQBhAGMAdAAiADsACgBpAG0AcABvAHIAdAAgAEUAbABlAGMAdAByAG8AbgBMAG8AZwBvACAAZgByAG8AbQAgACIAQABhAHMAcwBlAHQAcwAvAGUAbABlAGMAdAByAG8AbgAuAHMAdgBnACIAOwAKAGkAbQBwAG8AcgB0ACAAVgBlAHIAcwBpAG8AbgBzACAAZgByAG8AbQAgACIALgAvAFYAZQByAHMAaQBvAG4AcwAuAHQAcwB4ACIAOwA%3D
Code of Conduct
The text was updated successfully, but these errors were encountered: