Skip to content

Commit

Permalink
chore: update code
Browse files Browse the repository at this point in the history
  • Loading branch information
fireairforce committed Nov 7, 2024
1 parent 88adefb commit 08e7203
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 77 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b
### Bug fixes

- Fix [#4121](https://github.com/biomejs/biome/issues/4326), don't ident a CSS selector when has leading comments. Contributed by @fireairforce
- Fix [#4334](https://github.com/biomejs/biome/issues/4334), don't insert trailing comma on type import statement. Contributed by @fireairforce

### JavaScript APIs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::prelude::*;
use biome_formatter::write;
use biome_formatter::FormatError::SyntaxError;
use biome_js_syntax::{TsImportTypeArguments, TsImportTypeArgumentsFields};
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatTsImportTypeArguments;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,21 @@ Attribute Position: Auto
-----
```ts
type ImportType1 = typeof import('source');
type ImportType1 = typeof import("source");

type ImportType2 = import('source');
type ImportType2 = import("source");

type QualifiedImportType = typeof import('source').Qualified<TypeParams>;
type QualifiedImportType = typeof import("source").Qualified<TypeParams>;

type ActionLogsQ = import("longlonglonglonglonglonglonglongsource").QueryBuilder<"audit.action_logs">;
type ActionLogsQ =
import("longlonglonglonglonglonglonglongsource").QueryBuilder<"audit.action_logs">;

type LongImportType = typeof import("./long/long/long/long/long/long/long/long/path/long/long/long/long/path").default
type LongImportType =
typeof import("./long/long/long/long/long/long/long/long/path/long/long/long/long/path").default;
```

# Lines exceeding max width of 80 characters
```
7: type ActionLogsQ = import("longlonglonglonglonglonglonglongsource").QueryBuilder<"audit.action_logs">;
9: type LongImportType = typeof import("./long/long/long/long/long/long/long/long/path/long/long/long/long/path").default
8: import("longlonglonglonglonglonglonglongsource").QueryBuilder<"audit.action_logs">;
11: typeof import("./long/long/long/long/long/long/long/long/path/long/long/long/long/path").default;
```
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Attribute Position: Auto
-----

```ts
export type Fs = typeof import("fs", {with: { "resolution-mode": "import" }} );
export type Fs = typeof import("fs", {with: { "resolution-mode": "import" }});
export type TypeFromRequire =
import("pkg", {with: { "resolution-mode": "require", }} ).TypeFromRequire;
import("pkg", {with: { "resolution-mode": "require", }}).TypeFromRequire;
export type TypeFromImport =
import("pkg", {with: { "resolution-mode": "import", }} ).TypeFromImport;
import("pkg", {with: { "resolution-mode": "import", }}).TypeFromImport;
```

0 comments on commit 08e7203

Please sign in to comment.