Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 107 additions & 1 deletion src/content/docs/reference/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,22 @@ When formatting `package.json`, Biome will use `always` unless configured otherw

> Default: `"auto"`

### `formatter.trailingNewline`

Whether to add a trailing newline at the end of the file.

> Defaults to true.

:::danger
Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
- https://thoughtbot.com/blog/no-newline-at-end-of-file
- https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804
- https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files

Disable trailing newline at your own risk.
:::


### `formatter.useEditorconfig`

Whether Biome should use the `.editorconfig` file to determine the formatting options.
Expand Down Expand Up @@ -873,6 +889,21 @@ When breaking binary expressions into multiple lines, whether to break them befo
) {}
```

### `javascript.formatter.trailingNewline`

Whether to add a trailing newline at the end of the file.

> Defaults to true.

:::danger
Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
- https://thoughtbot.com/blog/no-newline-at-end-of-file
- https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804
- https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files

Disable trailing newline at your own risk.
:::

### `javascript.globals`

A list of global names that Biome should ignore (analyzer, linter, etc.)
Expand Down Expand Up @@ -1067,6 +1098,21 @@ When formatting `package.json`, Biome will use `always` unless configured otherw

> Default: `"auto"`

### `json.formatter.trailingNewline`

Whether to add a trailing newline at the end of the file.

> Defaults to true.

:::danger
Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
- https://thoughtbot.com/blog/no-newline-at-end-of-file
- https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804
- https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files

Disable trailing newline at your own risk.
:::

### `json.linter.enabled`

Enables Biome's formatter for JSON (and its super languages) files.
Expand Down Expand Up @@ -1182,6 +1228,22 @@ The type of quote used when representing string literals. It can be `"single"` o

> Default: `"double"`

### `css.formatter.trailingNewline`

Whether to add a trailing newline at the end of the file.

> Defaults to true.

:::danger
Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
- https://thoughtbot.com/blog/no-newline-at-end-of-file
- https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804
- https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files

Disable trailing newline at your own risk.
:::


### `css.linter.enabled`

Enables Biome's linter for CSS files.
Expand All @@ -1197,7 +1259,6 @@ Enables Biome's linter for CSS files.
}
}
```

### `css.assist.enabled`

Enables Biome's assist for CSS files.
Expand Down Expand Up @@ -1260,6 +1321,21 @@ The type of quote used when representing string literals. It can be `"single"` o

> Default: `"double"`

### `graphql.formatter.trailingNewline`

Whether to add a trailing newline at the end of the file.

> Defaults to true.

:::danger
Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
- https://thoughtbot.com/blog/no-newline-at-end-of-file
- https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804
- https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files

Disable trailing newline at your own risk.
:::

### `graphql.linter.enabled`

Enables Biome's linter for GraphQL files.
Expand Down Expand Up @@ -1320,6 +1396,21 @@ The type of quote used when representing string literals. It can be `"single"` o

> Default: `"double"`

### `grit.formatter.trailingNewline`

Whether to add a trailing newline at the end of the file.

> Defaults to true.

:::danger
Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
- https://thoughtbot.com/blog/no-newline-at-end-of-file
- https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804
- https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files

Disable trailing newline at your own risk.
:::

### `grit.linter.enabled`

Enables Biome's linter for Grit files.
Expand Down Expand Up @@ -1471,6 +1562,21 @@ Whether void elements should be self-closed. Defaults to never.
- `"never"`: The slash `/` inside void elements is removed by the formatter.
- `"always"`: The slash `/` inside void elements is always added.

### `html.formatter.trailingNewline`

Whether to add a trailing newline at the end of the file.

> Defaults to true.

:::danger
Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
- https://thoughtbot.com/blog/no-newline-at-end-of-file
- https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804
- https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files

Disable trailing newline at your own risk.
:::

### `html.linter.enabled`

Enables Biome's linter for HTML files.
Expand Down