Skip to content

CLI v1.8.1

Compare
Choose a tag to compare
@github-actions github-actions released this 10 Jun 13:44
· 774 commits to main since this release
39db99b

CLI

Bug fixes

  • Fix #3069, prevent overwriting paths when using --staged or --changed options. Contributed by @unvalley
  • Fix a case where the file link inside a diagnostic wasn't correctly displayed inside a terminal run by VSCode. Contributed by @uncenter

Configuration

Bug fixes

  • Fix #3067, by assigning the correct default value to indentWidth. Contributed by @ematipico

Formatter

Bug fixes

  • Fix the bug where whitespace after the & character in CSS nesting was incorrectly trimmed, ensuring proper targeting of child classes #3061. Contributed by @denbezrukov
  • Fix #3068 where the CSS formatter was inadvertently converting variable declarations and function calls to lowercase. Contributed by @denbezrukov
  • Fix the formatting of CSS grid layout properties. Contributed by @denbezrukov

Linter

Bug fixes

  • The noEmptyBlock css lint rule now treats empty blocks containing comments as valid ones. Contributed by @Sec-ant

  • useLiteralKeys no longer reports quoted member names (#3085).

    Previously useLiteralKeys reported quoted member names that can be unquoted.
    For example, the rule suggested the following fix:

    - const x = { "prop": 0 };
    + const x = { prop: 0 };

    This conflicted with the option quoteProperties of our formatter.

    The rule now ignores quoted member names.

    Contributed by @Conaclos

  • noEmptyInterface now ignores empty interfaces in ambient modules (#3110). Contributed by @Conaclos

  • noUnusedVariables and noUnusedFunctionParameters no longer report the parameters of a constructor type (#3135).

    Previously, arg was reported as unused in a constructor type like:

    export type Classlike = new (arg: unknown) => string;

    Contributed by @Conaclos

  • noStringCaseMismatch now ignores escape sequences (#3134).

    The following code is no longer reported by the rule:

    s.toUpperCase() === "\u001b";

    Contributed by @Conaclos

Parser

New features

  • Implemented CSS Unknown At-Rule parsing, allowing the parser to gracefully handle unsupported or unrecognized CSS at-rules. Contributed by @denbezrukov

Bug fixes

  • Fix #3055 CSS: Layout using named grid lines is now correctly parsed. Contributed by @denbezrukov
  • Fix #3091. Allows the parser to handle nested style rules and at-rules properly, enhancing the parser's compatibility with the CSS Nesting Module. Contributed by @denbezrukov

Other changes

New Contributors

Full Changelog: cli/v1.8.0...cli/v1.8.1