Update dependency @biomejs/biome to v1.8.2 #29

Merged
chrisw-b merged 1 commit from renovate/biomejs-biome-1.x into main 2024-06-23 06:05:39 -04:00
Collaborator

This PR contains the following updates:

Package Update Change
@biomejs/biome (source) patch 1.8.1 -> 1.8.2

Release Notes

biomejs/biome (@​biomejs/biome)

v1.8.2

Compare Source

CLI
Bug fixes
  • Fix #​3201 by correctly injecting the source code of the file when printing the diagnostics. Contributed by @​ematipico
  • Fix #​3179 where comma separators are not correctly removed after running biome migrate and thus choke the parser. Contributed by @​Sec-ant
  • Fix #​3232 by correctly using the colors set by the user. Contributed by @​ematipico
Enhancement
  • Reword the reporter message No fixes needed to No fixes applied.

    The former message is misleading when there're still errors or warnings in the files that should be taken care of manually. For example:

    Checked 2 files in <TIME>. No fixes needed.
    Found 2 errors.
    

    The new message suits better in these cases.

    Contributed by @​Sec-ant

Configuration
Bug fixes
  • Don't conceal previous overrides (#​3176).

    Previously, each override inherited the unset configuration of the base configuration.
    This means that setting a configuration in an override can be concealed by a subsequent override that inherits of the value from the base configuration.

    For example, in the next example, noDebugger was disabled for the index.js file.

    {
      "linter": {
        "rules": {
          "suspicious": { "noDebugger": "off" }
        }
      },
      "overrides": [
        {
          "include": ["index.js"],
          "linter": {
            "rules": {
              "suspicious": { "noDebugger": "warn" }
            }
          }
        }, {
          "include": ["index.js"],
          "linter": {
            "rules": {
              "suspicious": { "noDoubleEquals": "off" }
            }
          }
        }
      ]
    }
    

    The rule is now correctly enabled for the index.js file.

    Contributed by @​Conaclos

Formatter
Bug fixes
JavaScript APIs
Bug fixes
  • Fix a regression introduced by the release of v1.8.0
Linter
New features
Bug fixes
  • Add nursery/noShorthandPropertyOverrides. #​2958 Contributed by @​neokidev

  • Fix [#​3084] false positive by correctly recognize parenthesized return statement. Contributed by @​unvalley

  • useImportExtensions now suggests a correct fix for import '.' and import './.'. Contributed by @​minht11

  • Fix useDateNow false positive when new Date object has arguments new Date(0).getTime(). Contributed by @​minht11.

  • The noUnmatchableAnbSelector rule is now able to catch unmatchable an+b selectors like 0n+0 or -0n+0. Contributed by @​Sec-ant.

  • The useHookAtTopLevel rule now recognizes properties named as hooks like foo.useFoo(). Contributed by @​ksnyder9801

  • Fix #​3092, prevent warning for Custom properties (--*). Contributed by @​chansuke

  • Fix a false positive in the useLiteralKeys rule. (#​3160)

    This rule now ignores the following kind of computed member name:

    const a = {
      [`line1
      line2`]: true,
    };
    

    Contributed by @​Sec-ant

  • The noUnknownProperty rule now ignores the composes property often used in css modules. #​3000 Contributed by @​chansuke

  • Fix false positives of the useExhaustiveDependencies rule.

    The component itself is considered stable when it is used recursively inside a hook closure defined inside of it:

    import { useMemo } from "react";
    
    function MyRecursiveComponent() {
      // MyRecursiveComponent is stable, we don't need to add it to the dependencies list.
      const children = useMemo(() => <MyRecursiveComponent />, []);
      return <div>{children}</div>;
    }
    

    Also, export default function and export default class are considered stable now because they can only appear at the top level of a module.

    Contributed by @​Sec-ant

  • Fix missing withDefaults macro in vue files for globals variables. Contributed by @​Shyam-Chen

Parser
Bug fixes

Configuration

📅 Schedule: Branch creation - "before 3pm on Sunday" in timezone America/New_York, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Update | Change | |---|---|---| | [@biomejs/biome](https://biomejs.dev) ([source](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome)) | patch | `1.8.1` -> `1.8.2` | --- ### Release Notes <details> <summary>biomejs/biome (@&#8203;biomejs/biome)</summary> ### [`v1.8.2`](https://github.com/biomejs/biome/blob/HEAD/CHANGELOG.md#v182-2024-06-20) [Compare Source](https://github.com/biomejs/biome/compare/39db99b1cd087d6aa46ecfecba6adbfa0d45a303...54b4c9a39078836843ef363bb6986fad74834480) ##### CLI ##### Bug fixes - Fix [#&#8203;3201](https://github.com/biomejs/biome/issues/3201) by correctly injecting the source code of the file when printing the diagnostics. Contributed by [@&#8203;ematipico](https://github.com/ematipico) - Fix [#&#8203;3179](https://github.com/biomejs/biome/issues/3179) where comma separators are not correctly removed after running `biome migrate` and thus choke the parser. Contributed by [@&#8203;Sec-ant](https://github.com/Sec-ant) - Fix [#&#8203;3232](https://github.com/biomejs/biome/issues/3232) by correctly using the colors set by the user. Contributed by [@&#8203;ematipico](https://github.com/ematipico) ##### Enhancement - Reword the reporter message `No fixes needed` to `No fixes applied`. The former message is misleading when there're still errors or warnings in the files that should be taken care of manually. For example: ```block Checked 2 files in <TIME>. No fixes needed. Found 2 errors. ``` The new message suits better in these cases. Contributed by [@&#8203;Sec-ant](https://github.com/Sec-ant) ##### Configuration ##### Bug fixes - Don't conceal previous overrides ([#&#8203;3176](https://github.com/biomejs/biome/issues/3176)). Previously, each override inherited the unset configuration of the base configuration. This means that setting a configuration in an override can be concealed by a subsequent override that inherits of the value from the base configuration. For example, in the next example, `noDebugger` was disabled for the `index.js` file. ```json { "linter": { "rules": { "suspicious": { "noDebugger": "off" } } }, "overrides": [ { "include": ["index.js"], "linter": { "rules": { "suspicious": { "noDebugger": "warn" } } } }, { "include": ["index.js"], "linter": { "rules": { "suspicious": { "noDoubleEquals": "off" } } } } ] } ``` The rule is now correctly enabled for the `index.js` file. Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) ##### Formatter ##### Bug fixes - Fix [#&#8203;3103](https://github.com/biomejs/biome/issues/3103) by correctly resolving CSS formatter options. Contributed by [@&#8203;ah-yu](https://github.com/ah-yu) - Fix [#&#8203;3192](https://github.com/biomejs/biome/issues/3192) don't add an extra whitespace within :has. Contributed by [@&#8203;denbezrukov](https://github.com/denbezrukov) ##### JavaScript APIs ##### Bug fixes - Fix a regression introduced by the release of `v1.8.0` ##### Linter ##### New features - Add [nursery/useValidAutocomplete](https://biomejs.dev/linter/rules/use-valid-autocomplete/). Contributed by [@&#8203;unvalley](https://github.com/unvalley) ##### Bug fixes - Add [nursery/noShorthandPropertyOverrides](https://biomejs.dev/linter/rules/no-shorthand-property-overrides). [#&#8203;2958](https://github.com/biomejs/biome/issues/2958) Contributed by [@&#8203;neokidev](https://github.com/neokidev) - Fix \[[#&#8203;3084](https://github.com/biomejs/biome/issues/3084)] false positive by correctly recognize parenthesized return statement. Contributed by [@&#8203;unvalley](https://github.com/unvalley) - [useImportExtensions](https://biomejs.dev/linter/rules/use-import-extensions/) now suggests a correct fix for `import '.'` and `import './.'`. Contributed by [@&#8203;minht11](https://github.com/minht11) - Fix [useDateNow](https://biomejs.dev/linter/rules/use-date-now/) false positive when new Date object has arguments `new Date(0).getTime()`. Contributed by [@&#8203;minht11](https://github.com/minht11). - The [`noUnmatchableAnbSelector`](https://biomejs.dev/linter/rules/no-unmatchable-anb-selector/) rule is now able to catch unmatchable `an+b` selectors like `0n+0` or `-0n+0`. Contributed by [@&#8203;Sec-ant](https://github.com/Sec-ant). - The [`useHookAtTopLevel`](https://biomejs.dev/linter/rules/use-hook-at-top-level/) rule now recognizes properties named as hooks like `foo.useFoo()`. Contributed by [@&#8203;ksnyder9801](https://github.com/ksnyder9801) - Fix [#&#8203;3092](https://github.com/biomejs/biome/issues/3092), prevent warning for `Custom properties (--*)`. Contributed by [@&#8203;chansuke](https://github.com/chansuke) - Fix a false positive in the [`useLiteralKeys`](https://biomejs.dev/linter/rules/use-literal-keys/) rule. ([#&#8203;3160](https://github.com/biomejs/biome/issues/3160)) This rule now ignores the following kind of computed member name: ```js const a = { [`line1 line2`]: true, }; ``` Contributed by [@&#8203;Sec-ant](https://github.com/Sec-ant) - The [noUnknownProperty](https://biomejs.dev/linter/rules/no-unknown-property/) rule now ignores the `composes` property often used in css modules. [#&#8203;3000](https://github.com/biomejs/biome/issues/3000) Contributed by [@&#8203;chansuke](https://github.com/chansuke) - Fix false positives of the [useExhaustiveDependencies](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/) rule. The component itself is considered stable when it is used recursively inside a hook closure defined inside of it: ```jsx import { useMemo } from "react"; function MyRecursiveComponent() { // MyRecursiveComponent is stable, we don't need to add it to the dependencies list. const children = useMemo(() => <MyRecursiveComponent />, []); return <div>{children}</div>; } ``` Also, `export default function` and `export default class` are considered stable now because they can only appear at the top level of a module. Contributed by [@&#8203;Sec-ant](https://github.com/Sec-ant) - Fix missing `withDefaults` macro in vue files for globals variables. Contributed by [@&#8203;Shyam-Chen](https://github.com/Shyam-Chen) ##### Parser ##### Bug fixes - Fix CSS modules settings mapping. Contributed by [@&#8203;denbezrukov](https://github.com/denbezrukov) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 3pm on Sunday" in timezone America/New_York, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MDkuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQwOS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmN5Il19-->
Update dependency @biomejs/biome to v1.8.2
All checks were successful
Lint Project / check-linting (pull_request) Successful in 17s
Lint Project / check-typescript (pull_request) Successful in 20s
264cad6491
chrisw-b deleted branch renovate/biomejs-biome-1.x 2024-06-23 06:05:40 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
chrisw-b/linting-configs!29
No description provided.