Skip to content

Commit

Permalink
chore: add schema and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Aug 28, 2023
1 parent ba881f7 commit ad33af8
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The configuration that is contained inside the file `biome.json`
working directory. If no current working directory can't be found, Biome
won't use the VCS integration, and a diagnostic will be emitted
--files-max-size=NUMBER The maximum allowed size for source code files in bytes. Files above
this limit will be ignored for performance reason. Defaults to 1 MiB
this limit will be ignored for performance reasons. Defaults to 1 MiB
--files-ignore-unknown=<true|false> Tells Biome to not emit diagnostics when handling files
that doesn't know
--indent-style=<tab|space> The indent style.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The configuration that is contained inside the file `biome.json`
working directory. If no current working directory can't be found, Biome
won't use the VCS integration, and a diagnostic will be emitted
--files-max-size=NUMBER The maximum allowed size for source code files in bytes. Files above
this limit will be ignored for performance reason. Defaults to 1 MiB
this limit will be ignored for performance reasons. Defaults to 1 MiB
--files-ignore-unknown=<true|false> Tells Biome to not emit diagnostics when handling files
that doesn't know
--indent-style=<tab|space> The indent style.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Set of properties to integrate Biome with a VCS software.
The configuration of the filesystem
--files-max-size=NUMBER The maximum allowed size for source code files in bytes. Files above
this limit will be ignored for performance reason. Defaults to 1 MiB
this limit will be ignored for performance reasons. Defaults to 1 MiB
--files-ignore-unknown=<true|false> Tells Biome to not emit diagnostics when handling files
that doesn't know
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The configuration that is contained inside the file `biome.json`
working directory. If no current working directory can't be found, Biome
won't use the VCS integration, and a diagnostic will be emitted
--files-max-size=NUMBER The maximum allowed size for source code files in bytes. Files above
this limit will be ignored for performance reason. Defaults to 1 MiB
this limit will be ignored for performance reasons. Defaults to 1 MiB
--files-ignore-unknown=<true|false> Tells Biome to not emit diagnostics when handling files
that doesn't know
--indent-style=<tab|space> The indent style.
Expand Down
2 changes: 1 addition & 1 deletion crates/rome_service/src/configuration/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl MergeWith<Option<JavascriptFormatter>> for Configuration {
#[serde(rename_all = "camelCase", default, deny_unknown_fields)]
pub struct FilesConfiguration {
/// The maximum allowed size for source code files in bytes. Files above
/// this limit will be ignored for performance reason. Defaults to 1 MiB
/// this limit will be ignored for performance reasons. Defaults to 1 MiB
#[bpaf(long("files-max-size"), argument("NUMBER"))]
pub max_size: Option<NonZeroU64>,

Expand Down
10 changes: 5 additions & 5 deletions website/src/pages/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Biome official CLI. Use it to check the health of your project or run it to chec
- **`ci`** &mdash;
Command to use in CI environments. Run various checks of a set of files.
- **`init`** &mdash;
Bootstraps a new Biome project. Creates a configuration file with some defaults.
Bootstraps a new biome project. Creates a configuration file with some defaults.
- **`lsp-proxy`** &mdash;
Acts as a server for the Language Server Protocol over stdin/stdout
- **`migrate`** &mdash;
Expand Down Expand Up @@ -169,7 +169,7 @@ Run various checks on a set of files.

If Biome can't find the configuration, it will attempt to use the current working directory. If no current working directory can't be found, Biome won't use the VCS integration, and a diagnostic will be emitted
- **` --files-max-size`**=_`NUMBER`_ &mdash;
The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reason. Defaults to 1 MiB
The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB
- **` --files-ignore-unknown`**=_`<true|false>`_ &mdash;
Tells Biome to not emit diagnostics when handling files that doesn't know
- **` --indent-style`**=_`<tab|space>`_ &mdash;
Expand Down Expand Up @@ -256,7 +256,7 @@ Run various checks on a set of files.

If Biome can't find the configuration, it will attempt to use the current working directory. If no current working directory can't be found, Biome won't use the VCS integration, and a diagnostic will be emitted
- **` --files-max-size`**=_`NUMBER`_ &mdash;
The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reason. Defaults to 1 MiB
The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB
- **` --files-ignore-unknown`**=_`<true|false>`_ &mdash;
Tells Biome to not emit diagnostics when handling files that doesn't know
- **` --indent-style`**=_`<tab|space>`_ &mdash;
Expand Down Expand Up @@ -367,7 +367,7 @@ Run the formatter on a set of files.

**The configuration of the filesystem**
- **` --files-max-size`**=_`NUMBER`_ &mdash;
The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reason. Defaults to 1 MiB
The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB
- **` --files-ignore-unknown`**=_`<true|false>`_ &mdash;
Tells Biome to not emit diagnostics when handling files that doesn't know

Expand Down Expand Up @@ -428,7 +428,7 @@ Command to use in CI environments. Run various checks of a set of files.

If Biome can't find the configuration, it will attempt to use the current working directory. If no current working directory can't be found, Biome won't use the VCS integration, and a diagnostic will be emitted
- **` --files-max-size`**=_`NUMBER`_ &mdash;
The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reason. Defaults to 1 MiB
The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB
- **` --files-ignore-unknown`**=_`<true|false>`_ &mdash;
Tells Biome to not emit diagnostics when handling files that doesn't know
- **` --indent-style`**=_`<tab|space>`_ &mdash;
Expand Down
18 changes: 18 additions & 0 deletions website/src/pages/schemas/1.0.0/schema.json.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Run `BIOME_VERSION=<version number> cargo codegen-website
// to generate a new schema
import { readFileSync } from "fs";
import { join, resolve } from "path";

export function get() {
const schemaPath = resolve(
join("..", "packages", "@biomejs", "biome", "configuration_schema.json"),
);
const schema = readFileSync(schemaPath, "utf8");

return new Response(schema, {
status: 200,
headers: {
"content-type": "application/json",
},
});
}
13 changes: 12 additions & 1 deletion website/src/pages/vscode.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,18 @@ Biome respects VS Code's _Format on Save_ setting. To enable format on save, ope

### Fix on save

Biome respects VS Code's _Code Actions On Save_ setting. To enable fix on save, add `"editor.codeActionsOnSave": { "quickfix.biome": true }` in vscode settings.json.
Biome respects VS Code's _Code Actions On Save_ setting. To enable fix on save, add


```json
{
"editor.codeActionsOnSave": {
"quickfix.biome": true
}
}
```

in vscode `settings.json`.

### Imports Sorting [Experimental]

Expand Down

0 comments on commit ad33af8

Please sign in to comment.