-
-
Notifications
You must be signed in to change notification settings - Fork 877
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
Merged
chore: release v2.3.0 #7708
Changes from all commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
a3e3369
feat(resolver): support `baseUrl` in `tsconfig.json` (#7263)
arendjr f66b0c5
feat(parse/css): add option to parse Tailwind v4 directives (#7164)
dyc3 0d4661f
feat(format/css): implement formatters for new tailwind nodes (#7241)
dyc3 72a8b02
fix(parse/css): let `@utility` parse declarations and rules (#7314)
dyc3 272632f
feat: indentation for vue and svelte files (#7330)
ematipico de0d2d6
feat(htmlish): implement `indentScriptAndStyle` option (#7333)
dyc3 87b2cf6
Merge branch 'main' into next
arendjr ebbddc4
feat(core): add force-ignore syntax to `files.includes` (#7359)
arendjr e4feb8e
feat(cli): --skip/--only with domains (#7392)
ematipico ed025cd
chore: ensure force-ignore syntax works with nested biome.json (#7444)
arendjr 564f023
feat(core): embedded formatting in html files (#7467)
ematipico b23bbee
Merge branch 'main' into next
siketyan b13e524
feat: add react library aliases (#7488)
kpapa05 0bccd34
chore: add .oxlintrc.json to well-known files (#7536)
TheAlexLichter 6bc556d
chore: introduce ruledoc utils (#7541)
arendjr ea23d15
fix: resolve parse errors in ruledoc code blocks (#7544)
arendjr 85d3a3a
feat(lint): move some rules to the `react` domain (#7548)
siketyan 8ab8b6c
perf: optimise embedded formatter (#7567)
arendjr f890861
feat: implemented embedded JSON parsing (#7571)
arendjr e51dd55
perf: only query settings once (#7593)
arendjr 98ad5a9
Merge remote-tracking branch 'origin/main' into next
ematipico 09445c8
feat: add 'auto' mode to lineEndings (#7599)
anaisbetts 6dc74da
chore: fix failure inside website
ematipico f1b825e
chore: add .zed to gitignore (#7634)
tidefield 85d3381
fix(lint/noUselessEscapeInString): avoid false positive for $\{ escap…
lucasweng 2ab15d9
fix(lint): only highlight function names in useMaxParams rule (#7608)
ritoban23 74fb8ca
docs: add Polish translation of Biome README (#7630)
SzymCode ae6e8fd
fix(linter): `useImportExtensions` handles queries and hashes (#7640)
arendjr a85f807
ci: breakdown benchmarks (#7641)
ematipico 24d471f
ci: fix permission for benchmarks
ematipico a4e9064
chore: upgrade to rust 1.90.0 (#7642)
ematipico a85a8f5
fix(css_parser): add support for parsing :state() (#7619) (#7665)
ryan-m-walker 357b8f7
feat: emit diagnostics from embedded nodes (#7632)
ematipico aa9dd92
Merge remote-tracking branch 'origin/main' into next
ematipico acf6389
chore: merge with main
ematipico a1d4b6b
chore: `AnyEmbeddedSnippet` terminology (#7674)
arendjr 480909a
feat(cli): print info count (#7667)
ematipico 837f3f3
feat(core): apply code fixes in snippets (#7670)
ematipico 461c478
feat(html): analyzer (#5814)
ematipico 6bd1e3b
fix: incorrect logic for CSS fix all (#7699)
ematipico 296627d
feat(reporter): add checkstyle (#6356)
wrick17 3b6f5e3
feat(cli): rdjson reporter (#7698)
ematipico 188a767
feat(cli): expose formatWithErrors via --format-with-errors flag (#7719)
cadunass d3aac63
feat(cli): add parsing arguments (#7723)
ematipico 28e8860
feat(core): full experimental support htmlish languages (#7702)
ematipico d523500
fix: typescript types generation (#7743)
ematipico 6fcbc07
feat(noUnknownAtRule): add `ignore` option (#7745)
dyc3 6b3483c
chore: add migration for ignores scanner (#7751)
ematipico 6ed4d16
feat(biome_js_analyze): added support for React 19.2 (#7669)
barklund d67c7e9
Merge remote-tracking branch 'origin/main' into next
ematipico 0086309
chore: fix regression in tests
ematipico a05866e
Merge remote-tracking branch 'origin/main' into next
ematipico 8229ef9
Merge remote-tracking branch 'origin/main' into next
ematipico 1b037e3
chore: merge main and fix compilation
ematipico 63cb7ff
feat(cli): enhance init command (#7753)
ematipico cea002f
feat: promote lint rules (#7758)
ematipico bc8ac2b
Merge remote-tracking branch 'origin/main' into next
ematipico 32d0173
[autofix.ci] apply automated fixes
autofix-ci[bot] 6bf88fe
chore: remove empty source from JSON rules
ematipico c9033de
Merge remote-tracking branch 'origin/main' into next
ematipico a8188b5
chore: regenerate files
ematipico 27a5838
chore: fix incorrect configuration
ematipico File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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). | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"] | ||
| + } | ||
| } | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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): | ||
|
|
||
| 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." | ||
| } | ||
| ] | ||
| } | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| ``` | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
|
||
| Removed the lint rule `useAnchorHref`, because its use case is covered by `useValidAnchor`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Added `.oxlintrc.json` to well-known files. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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`: | ||
|
|
||
| - [`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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. | ||
| ``` |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.