Thanks to visit codestin.com
Credit goes to github.com

Skip to content

πŸ’… noUselessStringConcat unable to detect multiline strings when operatorLinebreak is set to beforeΒ #7230

@Bertie690

Description

@Bertie690

Environment information

CLI:
  Version:                      2.2.0
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  BIOME_THREADS:                unset
  NO_COLOR:                     unset
  TERM:                         xterm-256color
  JS_RUNTIME_VERSION:           v24.5.0
  JS_RUNTIME_NAME:              node
  NODE_PACKAGE_MANAGER:         pnpm/10.14.0

Biome Configuration:
  Status:                       Loaded successfully
  Path:                         biome.jsonc
  Formatter enabled:            true
  Linter enabled:               true
  Assist enabled:               true
  VCS enabled:                  true

Workspace:
  Open Documents:               0

Rule name

noUselessStringConcat

Playground link

https://biomejs.dev/playground/?lintRules=noUselessStringConcat&code=IAAgAC8ALwBgAG8AcABlAHIAYQB0AG8AcgBMAGkAbgBlAGIAcgBlAGEAawBgACAAcwBlAHQAIAB0AG8AIAAiAGEAZgB0AGUAcgAiAAoAYwBvAG4AcwB0ACAAdwBvAHIAawBzACAAPQAgACIAdgBlAHIAeQAiACAAKwAKACAAIAAiAFwAbgBsAG8AbgBnACAAcwB0AHIAaQBuAGcAIgA7AAoACgAvAC8AIABgAG8AcABlAHIAYQB0AG8AcgBMAGkAbgBlAGIAcgBlAGEAawBgACAAcwBlAHQAIAB0AG8AIAAiAGIAZQBmAG8AcgBlACIACgBjAG8AbgBzAHQAIABmAGEAaQBsAHMAIAA9ACAAIgB2AGUAcgB5ACIAIAAKACAAIAArACAAIgBcAG4AbABvAG4AZwAgAHMAdAByAGkAbgBnACIAOwA%3D

Expected result

The position of binary operators should not have a bearing on other linting rules.

Whether the + is at the start or end of a line should not bear on the rule firing or not.

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LinterArea: linterL-JavaScriptLanguage: JavaScript and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions