-
-
Notifications
You must be signed in to change notification settings - Fork 793
chore: release v2.3.0 #7708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: release v2.3.0 #7708
Changes from 58 commits
a3e3369
f66b0c5
0d4661f
72a8b02
272632f
de0d2d6
87b2cf6
ebbddc4
e4feb8e
ed025cd
564f023
b23bbee
b13e524
0bccd34
6bc556d
ea23d15
85d3a3a
8ab8b6c
f890861
e51dd55
98ad5a9
09445c8
6dc74da
f1b825e
85d3381
2ab15d9
74fb8ca
ae6e8fd
a85f807
24d471f
a4e9064
a85a8f5
357b8f7
aa9dd92
acf6389
a1d4b6b
480909a
837f3f3
461c478
6bd1e3b
296627d
3b6f5e3
188a767
d3aac63
28e8860
d523500
6fcbc07
6b3483c
6ed4d16
d67c7e9
0086309
a05866e
8229ef9
1b037e3
63cb7ff
cea002f
bc8ac2b
32d0173
6bf88fe
c9033de
a8188b5
27a5838
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Biome's resolver now supports `baseUrl` if specified in `tsconfig.json`. | ||
|
|
||
| #### Example | ||
|
|
||
| Given the following file structure: | ||
|
|
||
| **`tsconfig.json`** | ||
| ```json | ||
| { | ||
| "compilerOptions": { | ||
| "baseUrl": "./src", | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| **`src/foo.ts`** | ||
| ```ts | ||
| export function foo() {} | ||
| ``` | ||
|
|
||
| In this scenario, `import { foo } from "foo";` should work regardless of the | ||
| location of the file containing the `import` statement. | ||
|
|
||
| Fixes [#6432](https://github.com/biomejs/biome/issues/6432). | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Added `ignore` option to `noUnknownAtRules`. If an unknown at-rule matches any of the items provided in `ignore`, a diagnostic won't be emitted. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Enhanced the `init` command. The `init` command now checks if the existing project contains known ignore files and known generated folders. | ||
|
|
||
| If Biome finds `.gitignore` or `.ignore` files, it will add the following configuration to `biome.json`: | ||
| ```diff | ||
| { | ||
| + "vcs": { | ||
| + "enabled": true, | ||
| + "clientKind": "git", | ||
| + "useIgnoreFile": true | ||
| + } | ||
| } | ||
| ``` | ||
|
|
||
| If Biome finds a `dist/` folder, it will exclude it automatically using the double-exclude syntax: | ||
|
|
||
| ```diff | ||
| { | ||
| + "files": { | ||
| + "includes": ["**", "!!**/dist"] | ||
| + } | ||
| } | ||
| ``` | ||
|
Comment on lines
+5
to
+26
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add periods to sentences. Per the coding guidelines, every sentence in a changeset must end with a period. Lines 5, 7, and 18 are missing periods. As per coding guidelines. Apply this diff: -Enhanced the `init` command. The `init` command now checks if the existing project contains known ignore files and known generated folders
+Enhanced the `init` command. The `init` command now checks if the existing project contains known ignore files and known generated folders.
-If Biome finds `.gitignore` or `.ignore` files, it will add the following configuration to `biome.json`:
+If Biome finds `.gitignore` or `.ignore` files, it will add the following configuration to `biome.json`:
-If Biome finds a `dist/` folder, it will exclude it automatically using the double-exclude syntax:
+If Biome finds a `dist/` folder, it will exclude it automatically using the double-exclude syntax:
🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| The rules in a domain are no longer enabled automatically by the installed dependencies unless the rule is recommended. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Added `--css-parse-css-modules` CLI flag to control whether CSS Modules syntax is enabled. | ||
|
|
||
| You can now enable or disable CSS Modules parsing directly from the command line: | ||
|
|
||
| ```shell | ||
| biome check --css-parse-css-modules=true file.module.css | ||
| biome format --css-parse-css-modules=true file.module.css | ||
| biome lint --css-parse-css-modules=true file.module.css | ||
| biome ci --css-parse-css-modules=true file.module.css | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Added `--css-parse-tailwind-directives` CLI flag to control whether Tailwind CSS 4.0 directives and functions are enabled. | ||
|
|
||
| You can now enable or disable Tailwind CSS 4.0 directive parsing directly from the command line: | ||
|
|
||
| ```shell | ||
| biome check --css-parse-tailwind-directives=true file.css | ||
| biome format --css-parse-tailwind-directives=true file.css | ||
| biome lint --css-parse-tailwind-directives=true file.css | ||
| biome ci --css-parse-tailwind-directives=true file.css | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Updated the formatting of `.svelte` and `.vue` files. Now the indentation of the JavaScript blocks matches Prettier's: | ||
|
|
||
| ```diff | ||
| <script> | ||
| - import Component from "./Component" | ||
| + import Component from "./Component" | ||
| </script> | ||
| ``` | ||
|
Comment on lines
+1
to
+12
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a header and fix sentence punctuation. Changesets require #### or ##### headers and must end all sentences with periods. Adjust the colon after "Prettier's" to a period. ---
"@biomejs/biome": minor
---
+#### Updates
+
-Updated the formatting of `.svelte` and `.vue` files. Now the indentation of the JavaScript blocks matches Prettier's:
+Updated the formatting of `.svelte` and `.vue` files. Now the indentation of the JavaScript blocks matches Prettier's.
```diff
<script>
- import Component from "./Component"
+ import Component from "./Component"
</script>In .changeset/dull-drinks-switch.md around lines 1 to 12, the changeset body |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@biomejs/biome": patch | ||
| --- | ||
|
|
||
| Fixed an issue where the JUnit reporter returned a zero-based location. Now the location returned is one-based. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Implemented the `indentScriptAndStyle` option for vue and svelte files, with the default set to `false` to match [Prettier's `vueIndentScriptAndStyle` option](https://prettier.io/docs/options#vue-files-script-and-style-tags-indentation). When enabled, this option indents the content within `<script>` and `<style>` tags to align with the surrounding HTML structure. | ||
|
|
||
| It can be enabled with this configuration: | ||
|
|
||
| ```json | ||
| { | ||
| "html": { | ||
| "formatter": { | ||
| "indentScriptAndStyle": true | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| Which will format this code to: | ||
| ```vue | ||
| <script> | ||
| import Component from "./Component.vue"; | ||
| </script> | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Deprecated the option `files.experimentalScannerIgnores` in favour of **force-ignore** syntax in `files.includes`. | ||
|
|
||
| `files.includes` supports ignoring files by prefixing globs with an exclamation mark (`!`). With this change, it also supports _force_-ignoring globs by prefixing them with a double exclamation mark (`!!`). | ||
|
|
||
| The effect of force-ignoring is that the scanner will not index files matching the glob, even in project mode, even if those files are imported by other files, and even if they are files that receive special treatment by Biome, such as nested `biome.json` files. | ||
|
|
||
| #### Example | ||
|
|
||
| Let's take the following configuration: | ||
|
|
||
| ```json | ||
| { | ||
| "files": { | ||
| "includes": [ | ||
| "**", | ||
| "!**/generated", | ||
| "!!**/dist", | ||
| "fixtures/example/dist/*.js" | ||
| ] | ||
| }, | ||
| "linter": { | ||
| "domains": { | ||
| "project": "all" | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| This configuration achieves the following: | ||
|
|
||
| - Because the [project domain](https://biomejs.dev/linter/domains/#project) is enabled, all supported files in the project are indexed _and_ processed by the linter, _except_: | ||
| - Files inside a `generated` folder are not processed by the linter, but they will get indexed _if_ a file outside a `generated` folder imports them. | ||
| - Files inside a `dist` folder are never indexed nor processed, not even if they are imported for any purpose, _except_: | ||
| - When the `dist` folder is inside `fixtures/example/`, its `.js` files _do_ get both indexed and processed. | ||
|
|
||
| In general, we now recommend using the force-ignore syntax for any folders that contain _output_ files, such as `build/` and `dist/`. For such folders, it is highly unlikely that indexing has any useful benefits. For folders containing generated files, you may wish to use the regular ignore syntax so that type information can still be extracted from the files. | ||
|
|
||
| `experimentalScannerIgnores` will continue to work for now, but you'll see a deprecation warning if you still use it. | ||
|
|
||
| Run the `biome migrate --write` command to automatically update the configuration file. |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,64 @@ | ||||||
| --- | ||||||
| "@biomejs/biome": minor | ||||||
| --- | ||||||
|
|
||||||
| Added a new reporter named `rdjson`. This reporter prints diagnostics following the [RDJSON format](https://deepwiki.com/reviewdog/reviewdog/3.2-reviewdog-diagnostic-format): | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. End sentences with a period. This line should end with a period per the changeset guidelines. Apply this diff: -Added a new reporter named `rdjson`. This reporter prints diagnostics following the [RDJSON format](https://deepwiki.com/reviewdog/reviewdog/3.2-reviewdog-diagnostic-format):
+Added a new reporter named `rdjson`. This reporter prints diagnostics following the [RDJSON format](https://deepwiki.com/reviewdog/reviewdog/3.2-reviewdog-diagnostic-format).📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
|
|
||||||
| The following command: | ||||||
|
|
||||||
| ```shell | ||||||
| biome check --reporter=rdjson | ||||||
| ``` | ||||||
|
|
||||||
| Will emit diagnostics in the following format: | ||||||
|
|
||||||
| ```json | ||||||
| { | ||||||
| "source": { | ||||||
| "name": "Biome", | ||||||
| "url": "https://biomejs.dev" | ||||||
| }, | ||||||
| "diagnostics": [ | ||||||
| { | ||||||
| "code": { | ||||||
| "url": "https://biomejs.dev/linter/rules/no-unused-imports", | ||||||
| "value": "lint/correctness/noUnusedImports" | ||||||
| }, | ||||||
| "location": { | ||||||
| "path": "index.ts", | ||||||
| "range": { | ||||||
| "end": { | ||||||
| "column": 11, | ||||||
| "line": 0 | ||||||
| }, | ||||||
| "start": { | ||||||
| "column": 7, | ||||||
| "line": 0 | ||||||
| } | ||||||
| } | ||||||
| }, | ||||||
| "message": "This import is unused." | ||||||
| }, | ||||||
| { | ||||||
| "code": { | ||||||
| "url": "https://biomejs.dev/linter/rules/no-unused-imports", | ||||||
| "value": "lint/correctness/noUnusedImports" | ||||||
| }, | ||||||
| "location": { | ||||||
| "path": "index.ts", | ||||||
| "range": { | ||||||
| "end": { | ||||||
| "column": 10, | ||||||
| "line": 1 | ||||||
| }, | ||||||
| "start": { | ||||||
| "column": 9, | ||||||
| "line": 1 | ||||||
| } | ||||||
| } | ||||||
| }, | ||||||
| "message": "Several of these imports are unused." | ||||||
| } | ||||||
| ] | ||||||
| } | ||||||
| ``` | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| The `formatWithErrors` option can now be set via CLI using the `--format-with-errors` flag. | ||
|
|
||
| This flag was previously only available in the configuration file. It allows formatting to proceed on files with syntax errors, which is useful during development when you want to auto-format code while fixing syntax issues. | ||
|
|
||
| #### Example | ||
|
|
||
| ```shell | ||
| biome format --format-with-errors=true --write file.js | ||
| ``` | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Added `--json-parse-allow-comments` CLI flag to control whether comments are allowed in JSON files. | ||
|
|
||
| You can now enable or disable comment parsing in JSON files directly from the command line: | ||
|
|
||
| ```shell | ||
| biome check --json-parse-allow-comments=true file.json | ||
| biome format --json-parse-allow-comments=true file.json | ||
| biome lint --json-parse-allow-comments=true file.json | ||
| biome ci --json-parse-allow-comments=true file.json | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Added `--json-parse-allow-trailing-commas` CLI flag to control whether trailing commas are allowed in JSON files. | ||
|
|
||
| You can now enable or disable trailing comma parsing in JSON files directly from the command line: | ||
|
|
||
| ```shell | ||
| biome check --json-parse-allow-trailing-commas=true file.json | ||
| biome format --json-parse-allow-trailing-commas=true file.json | ||
| biome lint --json-parse-allow-trailing-commas=true file.json | ||
| biome ci --json-parse-allow-trailing-commas=true file.json | ||
| ``` |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,13 @@ | ||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||
| "@biomejs/biome": minor | ||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| Promoted new lint rules: | ||||||||||||||||||||||||||||||
| - Promoted `noNonNullAssertedOptionalChain` to the suspicious group | ||||||||||||||||||||||||||||||
| - Promoted `useReactFunctionComponents` to the `style` group | ||||||||||||||||||||||||||||||
| - Promoted `useImageSize` to the `correctness` group | ||||||||||||||||||||||||||||||
| - Promoted `useConsistentTypeDefinitions` to the `style` group | ||||||||||||||||||||||||||||||
| - Promoted `useQwikClasslist` to the `correctness` group | ||||||||||||||||||||||||||||||
| - Promoted `noSecrets` to the `security` group | ||||||||||||||||||||||||||||||
|
Comment on lines
+5
to
+11
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add periods to the end of each list item and the introductory line. According to the coding guidelines, every sentence in a changeset must end with a period. The introductory line (line 5) and each bullet item (lines 6–11) should have terminal periods. Apply this diff: -Promoted new lint rules:
-- Promoted `noNonNullAssertedOptionalChain` to the suspicious group
-- Promoted `useReactFunctionComponents` to the `style` group
-- Promoted `useImageSize` to the `correctness` group
-- Promoted `useConsistentTypeDefinitions` to the `style` group
-- Promoted `useQwikClasslist` to the `correctness` group
-- Promoted `noSecrets` to the `security` group
+Promoted new lint rules:
+- Promoted `noNonNullAssertedOptionalChain` to the suspicious group.
+- Promoted `useReactFunctionComponents` to the `style` group.
+- Promoted `useImageSize` to the `correctness` group.
+- Promoted `useConsistentTypeDefinitions` to the `style` group.
+- Promoted `useQwikClasslist` to the `correctness` group.
+- Promoted `noSecrets` to the `security` group.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| Removed the lint rule `useAnchorHref`, because its use case is covered by `useValidAnchor`. | ||||||||||||||||||||||||||||||
|
Comment on lines
+5
to
+13
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add links to rule documentation for each referenced rule. Per the coding guidelines, when referencing a rule in a changeset, include a link to its page on the website. Each rule should be linked to its documentation page, for example: Consider updating the rules to include their documentation links: -Promoted new lint rules:
-- Promoted `noNonNullAssertedOptionalChain` to the suspicious group.
-- Promoted `useReactFunctionComponents` to the `style` group.
-- Promoted `useImageSize` to the `correctness` group.
-- Promoted `useConsistentTypeDefinitions` to the `style` group.
-- Promoted `useQwikClasslist` to the `correctness` group.
-- Promoted `noSecrets` to the `security` group.
-
-Removed the lint rule `useAnchorHref`, because its use case is covered by `useValidAnchor`.
+Promoted new lint rules:
+- Promoted [`noNonNullAssertedOptionalChain`](https://biomejs.dev/linter/rules/no-non-null-asserted-optional-chain/) to the suspicious group.
+- Promoted [`useReactFunctionComponents`](https://biomejs.dev/linter/rules/use-react-function-components/) to the `style` group.
+- Promoted [`useImageSize`](https://biomejs.dev/linter/rules/use-image-size/) to the `correctness` group.
+- Promoted [`useConsistentTypeDefinitions`](https://biomejs.dev/linter/rules/use-consistent-type-definitions/) to the `style` group.
+- Promoted [`useQwikClasslist`](https://biomejs.dev/linter/rules/use-qwik-classlist/) to the `correctness` group.
+- Promoted [`noSecrets`](https://biomejs.dev/linter/rules/no-secrets/) to the `security` group.
+
+Removed the lint rule [`useAnchorHref`](https://biomejs.dev/linter/rules/use-anchor-href/), as its use case is covered by [`useValidAnchor`](https://biomejs.dev/linter/rules/use-valid-anchor/).🧰 Tools🪛 LanguageTool[formatting] ~13-~13: If the ‘because’ clause is essential to the meaning, do not use a comma before the clause. (COMMA_BEFORE_BECAUSE)
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the comma before "because". The clause following "because" is essential to the meaning of the sentence, so the comma should be removed. Additionally, consider using "as" instead of "because" for a more concise phrasing. Apply this diff: -Removed the lint rule `useAnchorHref`, because its use case is covered by `useValidAnchor`.
+Removed the lint rule `useAnchorHref` as its use case is covered by `useValidAnchor`.📝 Committable suggestion
Suggested change
🧰 Tools🪛 LanguageTool[formatting] ~13-~13: If the ‘because’ clause is essential to the meaning, do not use a comma before the clause. (COMMA_BEFORE_BECAUSE) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Added the new `checkstyle` reporter. When `--reporter=checkstyle` is passed to the CLI, Biome will emit diagnostics for [Checkstyle format](https://checkstyle.org/): | ||
|
|
||
| ```xml | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <checkstyle version="4.3"> | ||
| <file name="index.ts"> | ||
| <error line="1" column="8" severity="warning" message="This import is unused." source="lint/correctness/noUnusedImports" /> | ||
| <error line="2" column="10" severity="warning" message="Several of these imports are unused." source="lint/correctness/noUnusedImports" /> | ||
| <error line="8" column="5" severity="warning" message="This variable f is unused." source="lint/correctness/noUnusedVariables" /> | ||
| <error line="9" column="7" severity="warning" message="This variable f is unused." source="lint/correctness/noUnusedVariables" /> | ||
| <error line="1" column="1" severity="error" message="The imports and exports are not sorted." source="assist/source/organizeImports" /> | ||
| <error line="4" column="3" severity="error" message="Using == may be unsafe if you are relying on type coercion." source="lint/suspicious/noDoubleEquals" /> | ||
| <error line="6" column="1" severity="error" message="This is an unexpected use of the debugger statement." source="lint/suspicious/noDebugger" /> | ||
| <error line="8" column="5" severity="error" message="This variable implicitly has the any type." source="lint/suspicious/noImplicitAnyLet" /> | ||
| <error line="9" column="7" severity="error" message="This variable implicitly has the any type." source="lint/suspicious/noImplicitAnyLet" /> | ||
| <error line="2" column="10" severity="error" message="Shouldn't redeclare 'z'. Consider to delete it or rename it." source="lint/suspicious/noRedeclare" /> | ||
| <error line="9" column="7" severity="error" message="Shouldn't redeclare 'f'. Consider to delete it or rename it." source="lint/suspicious/noRedeclare" /> | ||
| <error line="0" column="0" severity="error" message="Formatter would have printed the following content:" source="format" /> | ||
| </file> | ||
| <file name="main.ts"> | ||
| <error line="1" column="8" severity="warning" message="This import is unused." source="lint/correctness/noUnusedImports" /> | ||
| <error line="2" column="10" severity="warning" message="Several of these imports are unused." source="lint/correctness/noUnusedImports" /> | ||
| <error line="8" column="5" severity="warning" message="This variable f is unused." source="lint/correctness/noUnusedVariables" /> | ||
| <error line="9" column="7" severity="warning" message="This variable f is unused." source="lint/correctness/noUnusedVariables" /> | ||
| <error line="1" column="1" severity="error" message="The imports and exports are not sorted." source="assist/source/organizeImports" /> | ||
| <error line="4" column="3" severity="error" message="Using == may be unsafe if you are relying on type coercion." source="lint/suspicious/noDoubleEquals" /> | ||
| <error line="6" column="1" severity="error" message="This is an unexpected use of the debugger statement." source="lint/suspicious/noDebugger" /> | ||
| <error line="8" column="5" severity="error" message="This variable implicitly has the any type." source="lint/suspicious/noImplicitAnyLet" /> | ||
| <error line="9" column="7" severity="error" message="This variable implicitly has the any type." source="lint/suspicious/noImplicitAnyLet" /> | ||
| <error line="2" column="10" severity="error" message="Shouldn't redeclare 'z'. Consider to delete it or rename it." source="lint/suspicious/noRedeclare" /> | ||
| <error line="9" column="7" severity="error" message="Shouldn't redeclare 'f'. Consider to delete it or rename it." source="lint/suspicious/noRedeclare" /> | ||
| <error line="0" column="0" severity="error" message="Formatter would have printed the following content:" source="format" /> | ||
| </file> | ||
| </checkstyle> | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@biomejs/biome": patch | ||
| --- | ||
|
|
||
| Fixed an issue with the `files.maxSize` setting. Previously the setting would always be looked up in the root settings, even in monorepos where a closer `biome.json` is available. It now correctly uses the nearest configuration. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Added "@rbxts/react" as an alias for "react" for handling the reactClassic jsxRuntime. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Added `.oxlintrc.json` to well-known files. |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,12 @@ | ||||||
| --- | ||||||
| "@biomejs/biome": minor | ||||||
| --- | ||||||
|
|
||||||
| The following rules are now a part of the `react` domain, and they won't be enabled automatically unless you enabled the domain, or Biome detects `react` as a dependency of your closest `package.json`: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. End the introductory sentence with a period, not a colon. Line 5 ends with Apply this diff to fix: -The following rules are now a part of the `react` domain, and they won't be enabled automatically unless you enabled the domain, or Biome detects `react` as a dependency of your closest `package.json`:
+The following rules are now a part of the `react` domain, and they won't be enabled automatically unless you enabled the domain, or Biome detects `react` as a dependency of your closest `package.json`.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
|
|
||||||
| - [`lint/correctness/noChildrenProp`](https://biomejs.dev/linter/rules/no-children-prop/) (recommended) | ||||||
| - [`lint/correctness/noReactPropAssignments`](https://biomejs.dev/linter/rules/no-react-prop-assignments/) | ||||||
| - [`lint/security/noDangerouslySetInnerHtml`](https://biomejs.dev/linter/rules/no-dangerously-set-inner-html/) (recommended) | ||||||
| - [`lint/security/noDangerouslySetInnerHtmlWithChildren`](https://biomejs.dev/linter/rules/no-dangerously-set-inner-html-with-children/) (recommended) | ||||||
| - [`lint/style/useComponentExportOnlyModules`](https://biomejs.dev/linter/rules/use-component-export-only-modules/) | ||||||
| - [`lint/suspicious/noArrayIndexKey`](https://biomejs.dev/linter/rules/no-array-index-key/) (recommended) | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Added the ability to show severity `Information` diagnostics in reporter outputs. | ||
|
|
||
| If one or more rules are triggered, and they are configured to emit an `Information` diagnostic, now they're counted in the final output: | ||
|
|
||
| ```bash | ||
| Checked 1 file in <TIME>. No fixes applied. | ||
| Found 1 info. | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the invalid JSON syntax in the example.
The JSON example has a trailing comma before the closing brace on line 16, which is not valid JSON. This will confuse users trying to replicate the example.
Apply this diff to fix the JSON:
**`tsconfig.json`** ```json { "compilerOptions": { - "baseUrl": "./src", + "baseUrl": "./src" } }In .changeset/based-bears-brawl.md around lines 12 to 18 the JSON example
contains an invalid trailing comma after "baseUrl": "./src",; remove the
trailing comma so the object closes properly (i.e., change "baseUrl": "./src",
to "baseUrl": "./src") and ensure the JSON block is valid before committing.