Zum Inhalt springen
verdict:

Biome 2.3.0

notable

note: die Zusammenfassung und die Release Notes sind auf Englisch

note: keine Zusammenfassung für dieses ältere Release

Wir fassen die neueren Releases zusammen. Die originalen Release Notes dieser Version stehen hier unten.

release-notesgithub.com/biomejs/biome · 484 Zeilen
  1. ## 2.3.0
  2. ### Minor Changes
  3. - [#7263](https://github.com/biomejs/biome/pull/7263) [`a3e3369`](https://github.com/biomejs/biome/commit/a3e336937e4cef0aa4b9cd30fc4d3c195e967e86) Thanks [@arendjr](https://github.com/arendjr)! - Biome's resolver now supports `baseUrl` if specified in `tsconfig.json`.
  4. #### Example
  5. Given the following file structure:
  6. **`tsconfig.json`**
  7. ```json
  8. {
  9. "compilerOptions": {
  10. "baseUrl": "./src"
  11. }
  12. }
  13. ```
  14. **`src/foo.ts`**
  15. ```ts
  16. export function foo() {}
  17. ```
  18. In this scenario, `import { foo } from "foo";` should work regardless of the
  19. location of the file containing the `import` statement.
  20. Fixes [#6432](https://github.com/biomejs/biome/issues/6432).
  21. - [#7745](https://github.com/biomejs/biome/pull/7745) [`6fcbc07`](https://github.com/biomejs/biome/commit/6fcbc07e7379a34719485f306f2b4a7f7e4ed91a) Thanks [@dyc3](https://github.com/dyc3)! - Added `ignore` option to `noUnknownAtRules`. If an unknown at-rule matches any of the items provided in `ignore`, a diagnostic won't be emitted.
  22. - [#7753](https://github.com/biomejs/biome/pull/7753) [`63cb7ff`](https://github.com/biomejs/biome/commit/63cb7ff31dc7932cf06e5f2760ef657d411a7230) Thanks [@ematipico](https://github.com/ematipico)! - Enhanced the `init` command. The `init` command now checks if the existing project contains known ignore files and known generated folders.
  23. If Biome finds `.gitignore` or `.ignore` files, it will add the following configuration to `biome.json`:
  24. ```diff
  25. {
  26. + "vcs": {
  27. + "enabled": true,
  28. + "clientKind": "git",
  29. + "useIgnoreFile": true
  30. + }
  31. }
  32. ```
  33. If Biome finds a `dist/` folder, it will exclude it automatically using the double-exclude syntax:
  34. ```diff
  35. {
  36. + "files": {
  37. + "includes": ["**", "!!**/dist"]
  38. + }
  39. }
  40. ```
  41. - [#7548](https://github.com/biomejs/biome/pull/7548) [`85d3a3a`](https://github.com/biomejs/biome/commit/85d3a3a64eeb4fc4bb6fb7829f48cb19dfe28b9d) Thanks [@siketyan](https://github.com/siketyan)! - The rules in a domain are no longer enabled automatically by the installed dependencies unless the rule is recommended.
  42. - [#7723](https://github.com/biomejs/biome/pull/7723) [`d3aac63`](https://github.com/biomejs/biome/commit/d3aac63b1d1db373ad838b73c416941b8d284b32) Thanks [@ematipico](https://github.com/ematipico)! - Added `--css-parse-css-modules` CLI flag to control whether CSS Modules syntax is enabled.
  43. You can now enable or disable CSS Modules parsing directly from the command line:
  44. ```shell
  45. biome check --css-parse-css-modules=true file.module.css
  46. biome format --css-parse-css-modules=true file.module.css
  47. biome lint --css-parse-css-modules=true file.module.css
  48. biome ci --css-parse-css-modules=true file.module.css
  49. ```
  50. - [#7723](https://github.com/biomejs/biome/pull/7723) [`d3aac63`](https://github.com/biomejs/biome/commit/d3aac63b1d1db373ad838b73c416941b8d284b32) Thanks [@ematipico](https://github.com/ematipico)! - Added `--css-parse-tailwind-directives` CLI flag to control whether Tailwind CSS 4.0 directives and functions are enabled.
  51. You can now enable or disable Tailwind CSS 4.0 directive parsing directly from the command line:
  52. ```shell
  53. biome check --css-parse-tailwind-directives=true file.css
  54. biome format --css-parse-tailwind-directives=true file.css
  55. biome lint --css-parse-tailwind-directives=true file.css
  56. biome ci --css-parse-tailwind-directives=true file.css
  57. ```
  58. - [#7330](https://github.com/biomejs/biome/pull/7330) [`272632f`](https://github.com/biomejs/biome/commit/272632f02c511ba2dc485d9567040197555eaeb7) Thanks [@ematipico](https://github.com/ematipico)! - Updated the formatting of `.svelte` and `.vue` files. Now the indentation of the JavaScript blocks matches Prettier's:
  59. ```diff
  60. <script>
  61. - import Component from "./Component"
  62. + import Component from "./Component"
  63. </script>
  64. ```
  65. - [#7333](https://github.com/biomejs/biome/pull/7333) [`de0d2d6`](https://github.com/biomejs/biome/commit/de0d2d658a7ef192aba8c8ae37bc618a08228e41) Thanks [@dyc3](https://github.com/dyc3)! - 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.
  66. It can be enabled with this configuration:
  67. ```json
  68. {
  69. "html": {
  70. "formatter": {
  71. "indentScriptAndStyle": true
  72. }
  73. }
  74. }
  75. ```
  76. Which will format this code to:
  77. ```vue
  78. <script>
  79. import Component from "./Component.vue";
  80. </script>
  81. ```
  82. - [#7359](https://github.com/biomejs/biome/pull/7359) [`ebbddc4`](https://github.com/biomejs/biome/commit/ebbddc4612c6c05aaf71197ee9f3c57a74ab4158) Thanks [@arendjr](https://github.com/arendjr)! - Deprecated the option `files.experimentalScannerIgnores` in favour of **force-ignore** syntax in `files.includes`.
  83. `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 (`!!`).
  84. 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.
  85. #### Example
  86. Let's take the following configuration:
  87. ```json
  88. {
  89. "files": {
  90. "includes": [
  91. "**",
  92. "!**/generated",
  93. "!!**/dist",
  94. "fixtures/example/dist/*.js"
  95. ]
  96. },
  97. "linter": {
  98. "domains": {
  99. "project": "all"
  100. }
  101. }
  102. }
  103. ```
  104. This configuration achieves the following:
  105. - 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_:
  106. - 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.
  107. - Files inside a `dist` folder are never indexed nor processed, not even if they are imported for any purpose, _except_:
  108. - When the `dist` folder is inside `fixtures/example/`, its `.js` files _do_ get both indexed and processed.
  109. 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.
  110. `experimentalScannerIgnores` will continue to work for now, but you'll see a deprecation warning if you still use it.
  111. Run the `biome migrate --write` command to automatically update the configuration file.
  112. - [#7698](https://github.com/biomejs/biome/pull/7698) [`3b6f5e3`](https://github.com/biomejs/biome/commit/3b6f5e3dfaa7562050557e4f3e85bf3a613b066f) Thanks [@ematipico](https://github.com/ematipico)! - Added a new reporter named `rdjson`. This reporter prints diagnostics following the [RDJSON format](https://deepwiki.com/reviewdog/reviewdog/3.2-reviewdog-diagnostic-format):
  113. The following command:
  114. ```shell
  115. biome check --reporter=rdjson
  116. ```
  117. Will emit diagnostics in the following format:
  118. ```json
  119. {
  120. "source": {
  121. "name": "Biome",
  122. "url": "https://biomejs.dev"
  123. },
  124. "diagnostics": [
  125. {
  126. "code": {
  127. "url": "https://biomejs.dev/linter/rules/no-unused-imports",
  128. "value": "lint/correctness/noUnusedImports"
  129. },
  130. "location": {
  131. "path": "index.ts",
  132. "range": {
  133. "end": {
  134. "column": 11,
  135. "line": 0
  136. },
  137. "start": {
  138. "column": 7,
  139. "line": 0
  140. }
  141. }
  142. },
  143. "message": "This import is unused."
  144. },
  145. {
  146. "code": {
  147. "url": "https://biomejs.dev/linter/rules/no-unused-imports",
  148. "value": "lint/correctness/noUnusedImports"
  149. },
  150. "location": {
  151. "path": "index.ts",
  152. "range": {
  153. "end": {
  154. "column": 10,
  155. "line": 1
  156. },
  157. "start": {
  158. "column": 9,
  159. "line": 1
  160. }
  161. }
  162. },
  163. "message": "Several of these imports are unused."
  164. }
  165. ]
  166. }
  167. ```
  168. - [#7719](https://github.com/biomejs/biome/pull/7719) [`188a767`](https://github.com/biomejs/biome/commit/188a7678a3ef1ae80f4fb78d29575ba236730531) Thanks [@cadunass](https://github.com/cadunass)! - The `formatWithErrors` option can now be set via CLI using the `--format-with-errors` flag.
  169. 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.
  170. #### Example
  171. ```shell
  172. biome format --format-with-errors=true --write file.js
  173. ```
  174. - [#7723](https://github.com/biomejs/biome/pull/7723) [`d3aac63`](https://github.com/biomejs/biome/commit/d3aac63b1d1db373ad838b73c416941b8d284b32) Thanks [@ematipico](https://github.com/ematipico)! - Added `--json-parse-allow-comments` CLI flag to control whether comments are allowed in JSON files.
  175. You can now enable or disable comment parsing in JSON files directly from the command line:
  176. ```shell
  177. biome check --json-parse-allow-comments=true file.json
  178. biome format --json-parse-allow-comments=true file.json
  179. biome lint --json-parse-allow-comments=true file.json
  180. biome ci --json-parse-allow-comments=true file.json
  181. ```
  182. - [#7723](https://github.com/biomejs/biome/pull/7723) [`d3aac63`](https://github.com/biomejs/biome/commit/d3aac63b1d1db373ad838b73c416941b8d284b32) Thanks [@ematipico](https://github.com/ematipico)! - Added `--json-parse-allow-trailing-commas` CLI flag to control whether trailing commas are allowed in JSON files.
  183. You can now enable or disable trailing comma parsing in JSON files directly from the command line:
  184. ```shell
  185. biome check --json-parse-allow-trailing-commas=true file.json
  186. biome format --json-parse-allow-trailing-commas=true file.json
  187. biome lint --json-parse-allow-trailing-commas=true file.json
  188. biome ci --json-parse-allow-trailing-commas=true file.json
  189. ```
  190. - [#7758](https://github.com/biomejs/biome/pull/7758) [`cea002f`](https://github.com/biomejs/biome/commit/cea002f8cf733817d2fbe830afec0b5a13ecbcb7) Thanks [@ematipico](https://github.com/ematipico)! - Promoted new lint rules:
  191. - Promoted `noNonNullAssertedOptionalChain` to the suspicious group
  192. - Promoted `useReactFunctionComponents` to the `style` group
  193. - Promoted `useImageSize` to the `correctness` group
  194. - Promoted `useConsistentTypeDefinitions` to the `style` group
  195. - Promoted `useQwikClasslist` to the `correctness` group
  196. - Promoted `noSecrets` to the `security` group
  197. Removed the lint rule `useAnchorHref`, because its use case is covered by `useValidAnchor`.
  198. - [#6356](https://github.com/biomejs/biome/pull/6356) [`296627d`](https://github.com/biomejs/biome/commit/296627d9788fa43ae51265a7f75caa1d8c50f985) Thanks [@wrick17](https://github.com/wrick17)! - Added the new `checkstyle` reporter. When `--reporter=checkstyle` is passed to the CLI, Biome will emit diagnostics for [Checkstyle format](https://checkstyle.org/):
  199. ```xml
  200. <?xml version="1.0" encoding="utf-8"?>
  201. <checkstyle version="4.3">
  202. <file name="index.ts">
  203. <error line="1" column="8" severity="warning" message="This import is unused." source="lint/correctness/noUnusedImports" />
  204. <error line="2" column="10" severity="warning" message="Several of these imports are unused." source="lint/correctness/noUnusedImports" />
  205. <error line="8" column="5" severity="warning" message="This variable f is unused." source="lint/correctness/noUnusedVariables" />
  206. <error line="9" column="7" severity="warning" message="This variable f is unused." source="lint/correctness/noUnusedVariables" />
  207. <error line="1" column="1" severity="error" message="The imports and exports are not sorted." source="assist/source/organizeImports" />
  208. <error line="4" column="3" severity="error" message="Using == may be unsafe if you are relying on type coercion." source="lint/suspicious/noDoubleEquals" />
  209. <error line="6" column="1" severity="error" message="This is an unexpected use of the debugger statement." source="lint/suspicious/noDebugger" />
  210. <error line="8" column="5" severity="error" message="This variable implicitly has the any type." source="lint/suspicious/noImplicitAnyLet" />
  211. <error line="9" column="7" severity="error" message="This variable implicitly has the any type." source="lint/suspicious/noImplicitAnyLet" />
  212. <error line="2" column="10" severity="error" message="Shouldn&apos;t redeclare &apos;z&apos;. Consider to delete it or rename it." source="lint/suspicious/noRedeclare" />
  213. <error line="9" column="7" severity="error" message="Shouldn&apos;t redeclare &apos;f&apos;. Consider to delete it or rename it." source="lint/suspicious/noRedeclare" />
  214. <error line="0" column="0" severity="error" message="Formatter would have printed the following content:" source="format" />
  215. </file>
  216. <file name="main.ts">
  217. <error line="1" column="8" severity="warning" message="This import is unused." source="lint/correctness/noUnusedImports" />
  218. <error line="2" column="10" severity="warning" message="Several of these imports are unused." source="lint/correctness/noUnusedImports" />
  219. <error line="8" column="5" severity="warning" message="This variable f is unused." source="lint/correctness/noUnusedVariables" />
  220. <error line="9" column="7" severity="warning" message="This variable f is unused." source="lint/correctness/noUnusedVariables" />
  221. <error line="1" column="1" severity="error" message="The imports and exports are not sorted." source="assist/source/organizeImports" />
  222. <error line="4" column="3" severity="error" message="Using == may be unsafe if you are relying on type coercion." source="lint/suspicious/noDoubleEquals" />
  223. <error line="6" column="1" severity="error" message="This is an unexpected use of the debugger statement." source="lint/suspicious/noDebugger" />
  224. <error line="8" column="5" severity="error" message="This variable implicitly has the any type." source="lint/suspicious/noImplicitAnyLet" />
  225. <error line="9" column="7" severity="error" message="This variable implicitly has the any type." source="lint/suspicious/noImplicitAnyLet" />
  226. <error line="2" column="10" severity="error" message="Shouldn&apos;t redeclare &apos;z&apos;. Consider to delete it or rename it." source="lint/suspicious/noRedeclare" />
  227. <error line="9" column="7" severity="error" message="Shouldn&apos;t redeclare &apos;f&apos;. Consider to delete it or rename it." source="lint/suspicious/noRedeclare" />
  228. <error line="0" column="0" severity="error" message="Formatter would have printed the following content:" source="format" />
  229. </file>
  230. </checkstyle>
  231. ```
  232. - [#7488](https://github.com/biomejs/biome/pull/7488) [`b13e524`](https://github.com/biomejs/biome/commit/b13e524484a3c0130a3cd276785214a6353a49d9) Thanks [@kpapa05](https://github.com/kpapa05)! - Added "@rbxts/react" as an alias for "react" for handling the reactClassic jsxRuntime.
  233. - [#7536](https://github.com/biomejs/biome/pull/7536) [`0bccd34`](https://github.com/biomejs/biome/commit/0bccd347e0e114143967aec28fb9d7f6bc2f1ff8) Thanks [@TheAlexLichter](https://github.com/TheAlexLichter)! - Added `.oxlintrc.json` to well-known files.
  234. - [#7548](https://github.com/biomejs/biome/pull/7548) [`85d3a3a`](https://github.com/biomejs/biome/commit/85d3a3a64eeb4fc4bb6fb7829f48cb19dfe28b9d) Thanks [@siketyan](https://github.com/siketyan)! - 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`:
  235. - [`lint/correctness/noChildrenProp`](https://biomejs.dev/linter/rules/no-children-prop/) (recommended)
  236. - [`lint/correctness/noReactPropAssignments`](https://biomejs.dev/linter/rules/no-react-prop-assignments/)
  237. - [`lint/security/noDangerouslySetInnerHtml`](https://biomejs.dev/linter/rules/no-dangerously-set-inner-html/) (recommended)
  238. - [`lint/security/noDangerouslySetInnerHtmlWithChildren`](https://biomejs.dev/linter/rules/no-dangerously-set-inner-html-with-children/) (recommended)
  239. - [`lint/style/useComponentExportOnlyModules`](https://biomejs.dev/linter/rules/use-component-export-only-modules/)
  240. - [`lint/suspicious/noArrayIndexKey`](https://biomejs.dev/linter/rules/no-array-index-key/) (recommended)
  241. - [#7667](https://github.com/biomejs/biome/pull/7667) [`480909a`](https://github.com/biomejs/biome/commit/480909a64964201eb306e95979e2dc96992798ad) Thanks [@ematipico](https://github.com/ematipico)! - Added the ability to show severity `Information` diagnostics in reporter outputs.
  242. If one or more rules are triggered, and they are configured to emit an `Information` diagnostic, now they're counted in the final output:
  243. ```bash
  244. Checked 1 file in <TIME>. No fixes applied.
  245. Found 1 info.
  246. ```
  247. - [#7702](https://github.com/biomejs/biome/pull/7702) [`28e8860`](https://github.com/biomejs/biome/commit/28e8860b8c4ddd069a70cde76ce54cde8f388a13) Thanks [@ematipico](https://github.com/ematipico)! - Added linting and assist support for `.html` files, with addition of two new configurations:
  248. - `html.linter.enabled`
  249. - `html.assist.enabled`
  250. The HTML linter, in this release, only contains the rule `noHeaderScope`. More rules will be released in the upcoming releases.
  251. - [#7164](https://github.com/biomejs/biome/pull/7164) [`f66b0c5`](https://github.com/biomejs/biome/commit/f66b0c52d1c0b5ac3d462310462cf1613b862a7d) Thanks [@dyc3](https://github.com/dyc3)! - Added a new CSS parser option `tailwindDirectives`. Enabling this option will allow all of Tailwind v4's syntax additions to be parsed and formatted by Biome.
  252. You can enable this by setting `css.parser.tailwindDirectives` to `true` in your Biome configuration.
  253. ```json
  254. {
  255. "css": {
  256. "parser": {
  257. "tailwindDirectives": true
  258. }
  259. }
  260. }
  261. ```
  262. - [#7669](https://github.com/biomejs/biome/pull/7669) [`6ed4d16`](https://github.com/biomejs/biome/commit/6ed4d165a756cd308cadb6f90cd9864e5fc4c100) Thanks [@barklund](https://github.com/barklund)! - React 19.2 support is now supported in Biome:
  263. - Treats `useEffectEvent` like `useRef` in [`useExhaustiveDependencies`](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/)
  264. - Added `<Activity />` to known React APIs.
  265. - [#7702](https://github.com/biomejs/biome/pull/7702) [`28e8860`](https://github.com/biomejs/biome/commit/28e8860b8c4ddd069a70cde76ce54cde8f388a13) Thanks [@ematipico](https://github.com/ematipico)! - Added **experimental** full support for HTML, Vue, Svelte and Astro files. In this release, the HTML parser
  266. has been enhanced, and it's now able to parse `.vue`, `.svelte` and `.astro` files.
  267. This means that now Biome is able to lint and format the JavaScript (TypeScript), HTML and CSS code that is contained in these files.
  268. Now that the main architecture is stable and working, in the upcoming patches and minors we will also fix possible inaccuracies and edge cases coming from existing lint rules, such as `noUnusedVariables` inside `<script>` blocks or frontmatter.
  269. The support is considered experimental because there might be cases that aren't fine-parsed yet, hence causing possible inaccuracies when it comes to formatting and linting.
  270. - [#7599](https://github.com/biomejs/biome/pull/7599) [`09445c8`](https://github.com/biomejs/biome/commit/09445c8aa865a41a626ba51c3856f5991eb0704e) Thanks [@anaisbetts](https://github.com/anaisbetts)! - #### lineEnding has a new option `auto`
  271. The option `lineEnding` now has a variant called `auto` to match the operating system's expected
  272. line-ending style: on Windows, this will be CRLF (`\r\n`), and on macOS / Linux, this will
  273. be LF (`\n`).
  274. This allows for cross-platform projects that use Biome not to have to
  275. force one option or the other, which aligns better with Git's default behavior
  276. on these platforms.
  277. **Example usage:**
  278. ```json
  279. {
  280. "formatter": {
  281. "lineEnding": "auto"
  282. }
  283. }
  284. ```
  285. ```bash
  286. biome format --line-ending auto
  287. ```
  288. - [#7392](https://github.com/biomejs/biome/pull/7392) [`e4feb8e`](https://github.com/biomejs/biome/commit/e4feb8e05de85edaf245cb90b3ca98195c202bf8) Thanks [@ematipico](https://github.com/ematipico)! - Added new capabilities to the CLI arguments `--skip` and `--only`, available to the `biome lint` command.
  289. `--skip` and `--only` can now accept domain names; when provided, Biome will run or skip all the rules that belong to a certain domain.
  290. For example, the following command will only run the rules that belong to the [next](https://biomejs.dev/linter/domains/#next) domain:
  291. ```shell
  292. biome lint --only=next
  293. ```
  294. Another example, the following command will skip the rules that belong to the [project](https://biomejs.dev/linter/domains/#project) domain:
  295. ```shell
  296. biome lint --skip=project
  297. ```
  298. - [#7702](https://github.com/biomejs/biome/pull/7702) [`28e8860`](https://github.com/biomejs/biome/commit/28e8860b8c4ddd069a70cde76ce54cde8f388a13) Thanks [@ematipico](https://github.com/ematipico)! - Added a new option called `html.interpolation`. This option enables the parsing of text expressions (or interpolation) in HTML files.
  299. The following `file.html` will be correctly formatted:
  300. ```html
  301. <!-- file.html -->
  302. <div>
  303. Hello {{ name }}!
  304. <p>Your balance is: {{ account.balance }}</p>
  305. <button>{{ isLoading ? "Loading..." : "Submit" }}</button>
  306. </div>
  307. ```
  308. To note that `html.interpolation` only parses text expressions that are delimited by double curly braces (`{{ }}`). The content of expressions is parsed as normal text.
  309. ### Patch Changes
  310. - [#7712](https://github.com/biomejs/biome/pull/7712) [`fcc9b42`](https://github.com/biomejs/biome/commit/fcc9b42dd07e536e93a81cb051fed09a1b3e7deb) Thanks [@minht11](https://github.com/minht11)! - Added new rule [`useVueDefineMacrosOrder`](https://biomejs.dev/linter/rules/use-vue-define-macros-order) which allows enforcing specific order for Vue compiler macros.
  311. In this example, the rule will suggest moving `defineProps` before `defineEmits`:
  312. ```vue
  313. <script lang="ts" setup>
  314. const emit = defineEmits(["update"]);
  315. const props = defineProps<{ name: string }>();
  316. </script>
  317. ```
  318. - [#7698](https://github.com/biomejs/biome/pull/7698) [`3b6f5e3`](https://github.com/biomejs/biome/commit/3b6f5e3dfaa7562050557e4f3e85bf3a613b066f) Thanks [@ematipico](https://github.com/ematipico)! - Fixed an issue where the JUnit reporter returned a zero-based location. Now the location returned is one-based.
  319. - [#7819](https://github.com/biomejs/biome/pull/7819) [`ef45056`](https://github.com/biomejs/biome/commit/ef45056cc0fe9a55f71356bbc78817d464f8c932) Thanks [@ematipico](https://github.com/ematipico)! - Fixed [#7788](https://github.com/biomejs/biome/issues/7788). Removes some error logging that were emitted when loading possible configuration files.
  320. - [#7593](https://github.com/biomejs/biome/pull/7593) [`e51dd55`](https://github.com/biomejs/biome/commit/e51dd555c0bde05353078f177cb02e67a4217eb0) Thanks [@arendjr](https://github.com/arendjr)! - 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.
  321. - [#7825](https://github.com/biomejs/biome/pull/7825) [`ad55b35`](https://github.com/biomejs/biome/commit/ad55b35b3c71a5465f2de723bbab8261508fb3f2) Thanks [@Conaclos](https://github.com/Conaclos)! - Fixed [#7798](https://github.com/biomejs/biome/issues/7798). [useNamingConvention](https://biomejs.dev/linter/rules/use-naming-convention/) no longer panics when it encounters a name that consists of a single dollar sign `$` that doesn't match a custom convention.
  322. - [#7764](https://github.com/biomejs/biome/pull/7764) [`93be2ab`](https://github.com/biomejs/biome/commit/93be2ab6e076a33dc55156d07249c4bead87a9de) Thanks [@gaauwe](https://github.com/gaauwe)! - Fixed [#6589](https://github.com/biomejs/biome/issues/6589): Biome now properly loads extension settings before loading the configuration file when opening a text document in the LSP server.
  323. ## What's Changed
  324. * feat(resolver): support `baseUrl` in `tsconfig.json` by @arendjr in https://github.com/biomejs/biome/pull/7263
  325. * feat(parse/css): add option to parse Tailwind v4 directives by @dyc3 in https://github.com/biomejs/biome/pull/7164
  326. * feat(format/css): implement formatters for new tailwind nodes by @dyc3 in https://github.com/biomejs/biome/pull/7241
  327. * fix(parse/css): let `@utility` parse declarations and rules by @dyc3 in https://github.com/biomejs/biome/pull/7314
  328. * feat: indentation for vue and svelte files by @ematipico in https://github.com/biomejs/biome/pull/7330
  329. * feat(htmlish): implement `indentScriptAndStyle` option by @dyc3 in https://github.com/biomejs/biome/pull/7333
  330. * feat(core): add force-ignore syntax to `files.includes` by @arendjr in https://github.com/biomejs/biome/pull/7359
  331. * feat(cli): --skip/--only with domains by @ematipico in https://github.com/biomejs/biome/pull/7392
  332. * chore: ensure force-ignore syntax works with nested biome.json by @arendjr in https://github.com/biomejs/biome/pull/7444
  333. * feat(core): embedded formatting in html files by @ematipico in https://github.com/biomejs/biome/pull/7467
  334. * feat: add react library aliases by @kpapa05 in https://github.com/biomejs/biome/pull/7488
  335. * chore: add .oxlintrc.json to well-known files by @TheAlexLichter in https://github.com/biomejs/biome/pull/7536
  336. * chore: introduce ruledoc utils by @arendjr in https://github.com/biomejs/biome/pull/7541
  337. * fix: resolve parse errors in ruledoc code blocks by @arendjr in https://github.com/biomejs/biome/pull/7544
  338. * feat(lint): move some rules to the `react` domain by @siketyan in https://github.com/biomejs/biome/pull/7548
  339. * perf: optimise embedded formatter by @arendjr in https://github.com/biomejs/biome/pull/7567
  340. * feat: implemented embedded JSON parsing by @arendjr in https://github.com/biomejs/biome/pull/7571
  341. * perf: only query settings once by @arendjr in https://github.com/biomejs/biome/pull/7593
  342. * feat: add 'auto' mode to lineEndings by @anaisbetts in https://github.com/biomejs/biome/pull/7599
  343. * feat: emit diagnostics from embedded nodes by @ematipico in https://github.com/biomejs/biome/pull/7632
  344. * chore: `AnyEmbeddedSnippet` terminology by @arendjr in https://github.com/biomejs/biome/pull/7674
  345. * feat(cli): print info count by @ematipico in https://github.com/biomejs/biome/pull/7667
  346. * feat(core): apply code fixes in snippets by @ematipico in https://github.com/biomejs/biome/pull/7670
  347. * feat(html): analyzer by @ematipico in https://github.com/biomejs/biome/pull/5814
  348. * fix: incorrect logic for CSS fix all by @ematipico in https://github.com/biomejs/biome/pull/7699
  349. * feat(reporter): add checkstyle by @wrick17 in https://github.com/biomejs/biome/pull/6356
  350. * feat(cli): rdjson reporter by @ematipico in https://github.com/biomejs/biome/pull/7698
  351. * feat(cli): expose formatWithErrors via --format-with-errors flag by @cadunass in https://github.com/biomejs/biome/pull/7719
  352. * feat(cli): add parsing arguments by @ematipico in https://github.com/biomejs/biome/pull/7723
  353. * feat(core): full experimental support htmlish languages by @ematipico in https://github.com/biomejs/biome/pull/7702
  354. * fix: typescript types generation by @ematipico in https://github.com/biomejs/biome/pull/7743
  355. * feat(noUnknownAtRule): add `ignore` option by @dyc3 in https://github.com/biomejs/biome/pull/7745
  356. * chore: add migration for ignores scanner by @ematipico in https://github.com/biomejs/biome/pull/7751
  357. * feat(biome_js_analyze): added support for React 19.2 by @barklund in https://github.com/biomejs/biome/pull/7669
  358. * feat(cli): enhance init command by @ematipico in https://github.com/biomejs/biome/pull/7753
  359. * feat: promote lint rules by @ematipico in https://github.com/biomejs/biome/pull/7758
  360. * chore: remove errors logs by @ematipico in https://github.com/biomejs/biome/pull/7819
  361. * fix(lsp): load extension settings before configuration on document open by @gaauwe in https://github.com/biomejs/biome/pull/7764
  362. * fix(useNamingConvention): don't panic on $ name by @Conaclos in https://github.com/biomejs/biome/pull/7825
  363. * feat(linter): implement `useVueDefineMacrosOrder` by @minht11 in https://github.com/biomejs/biome/pull/7712
  364. * docs: fix typo in `ignoreUnknown` option description by @plmrry in https://github.com/biomejs/biome/pull/7829
  365. * chore: release v2.3.0 by @ematipico in https://github.com/biomejs/biome/pull/7708
  366. * test: use Manifest::read_manifest to insert tsconfig by @siketyan in https://github.com/biomejs/biome/pull/7832
  367. * chore: fix LSP astro test by @ematipico in https://github.com/biomejs/biome/pull/7833
  368. * ci: additional workflow for rules check by @ematipico in https://github.com/biomejs/biome/pull/7823
  369. * ci: release by @github-actions[bot] in https://github.com/biomejs/biome/pull/7824
  370. ## New Contributors
  371. * @kpapa05 made their first contribution in https://github.com/biomejs/biome/pull/7488
  372. * @TheAlexLichter made their first contribution in https://github.com/biomejs/biome/pull/7536
  373. * @anaisbetts made their first contribution in https://github.com/biomejs/biome/pull/7599
  374. * @wrick17 made their first contribution in https://github.com/biomejs/biome/pull/6356
  375. * @cadunass made their first contribution in https://github.com/biomejs/biome/pull/7719
  376. * @barklund made their first contribution in https://github.com/biomejs/biome/pull/7669
  377. * @gaauwe made their first contribution in https://github.com/biomejs/biome/pull/7764
  378. * @plmrry made their first contribution in https://github.com/biomejs/biome/pull/7829
  379. **Full Changelog**: https://github.com/biomejs/biome/compare/@biomejs/biome@2.2.7...@biomejs/biome@2.3.0

auf github ansehenimported 2026-09-28 über npm