Skip to content
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

bracketSameLine not respected if comment before last parameter #4719

Open
1 task done
na-kialo opened this issue Dec 10, 2024 · 0 comments
Open
1 task done

bracketSameLine not respected if comment before last parameter #4719

na-kialo opened this issue Dec 10, 2024 · 0 comments
Labels
A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@na-kialo
Copy link

Environment information

CLI:
  Version:                      1.9.4
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v21.2.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "yarn/4.5.3"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Formatter:
  Format with errors:           false
  Indent style:                 Space
  Indent width:                 4
  Line ending:                  Lf
  Line width:                   120
  Attribute position:           Auto
  Bracket spacing:              BracketSpacing(true)
  Ignore:                       []
  Include:                      []

JavaScript Formatter:
  Enabled:                      false
  JSX quote style:              Double
  Quote properties:             AsNeeded
  Trailing commas:              All
  Semicolons:                   Always
  Arrow parentheses:            Always
  Bracket spacing:              unset
  Bracket same line:            true
  Quote style:                  Double
  Indent style:                 unset
  Indent width:                 unset
  Line ending:                  unset
  Line width:                   unset
  Attribute position:           unset

JSON Formatter:
  Enabled:                      true
  Indent style:                 unset
  Indent width:                 unset
  Line ending:                  unset
  Line width:                   unset
  Trailing Commas:              unset

CSS Formatter:
  Enabled:                      true
  Indent style:                 unset
  Indent width:                 unset
  Line ending:                  unset
  Line width:                   unset
  Quote style:                  Double

GraphQL Formatter:
  Enabled:                      false
  Indent style:                 unset
  Indent width:                 unset
  Line ending:                  unset
  Line width:                   unset
  Bracket spacing:              unset
  Quote style:                  unset

Workspace:
  Open Documents:               0

Configuration

{
    "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
    "formatter": {
        "enabled": true,
        "formatWithErrors": false,
        "indentStyle": "space",
        "indentWidth": 4,
        "lineEnding": "lf",
        "lineWidth": 120
    },
    "javascript": {
        "formatter": {
            "bracketSameLine": true
        }
    }
}

Playground link

https://biomejs.dev/playground/?indentStyle=space&indentWidth=4&bracketSameLine=true&code=ZgB1AG4AYwB0AGkAbwBuACAAdABlAHMAdAAoACkAIAB7AAoAIAAgAHIAZQB0AHUAcgBuACAAPABTAG8AbQBlAHQAaABpAG4AZwAKACAAIAAgACAAIAAgACAAIAAgACAAIABzAG8AbQBlAHQAaABpAG4AZwA9ACIAMQAiAAoAIAAgACAAIAAgACAAIAAgACAAIAAgAHMAbwBtAGUAdABoAGkAbgBnADIAPQAiADEAIgAKACAAIAAgACAAIAAgACAAIAAgACAAIABzAG8AbQBlAHQAaABpAG4AZwAzAD0AIgAxACIACgAgACAAIAAgACAAIAAgACAAIAAgACAAcwBvAG0AZQB0AGgAaQBuAGcANAA9ACIAMQAiAAoAIAAgACAAIAAgACAAIAAgACAAIAAgAHMAbwBtAGUAdABoAGkAbgBnADUAPQAiADEAIgAKACAAIAAgACAAIAAgACAAIAAgACAAIABzAG8AbQBlAHQAaABpAG4AZwA2AD0AIgAxACIACgAgACAAIAAgACAAIAAgACAAIAAgACAALwAvACAAQwBvAG0AbQBlAG4AdAAKACAAIAAgACAAIAAgACAAIAAgACAAIABlAGwAcwBlAD0AIgAyACIAPgAKACAAIAAgACAAQwBvAG4AdABlAG4AdAAKACAAIAA8AC8AUwBvAG0AZQB0AGgAaQBuAGcAPgAKAH0ACgAKAGYAdQBuAGMAdABpAG8AbgAgAHQAZQBzAHQAMgAoACkAIAB7AAoAIAAgAHIAZQB0AHUAcgBuACAAPABTAG8AbQBlAHQAaABpAG4AZwAKACAAIAAgACAAIAAgACAAIAAgACAAIABzAG8AbQBlAHQAaABpAG4AZwA9ACIAMQAiAAoAIAAgACAAIAAgACAAIAAgACAAIAAgAHMAbwBtAGUAdABoAGkAbgBnADIAPQAiADEAIgAKACAAIAAgACAAIAAgACAAIAAgACAAIABzAG8AbQBlAHQAaABpAG4AZwAzAD0AIgAxACIACgAgACAAIAAgACAAIAAgACAAIAAgACAAcwBvAG0AZQB0AGgAaQBuAGcANAA9ACIAMQAiAAoAIAAgACAAIAAgACAAIAAgACAAIAAgAHMAbwBtAGUAdABoAGkAbgBnADUAPQAiADEAIgAKACAAIAAgACAAIAAgACAAIAAgACAAIABzAG8AbQBlAHQAaABpAG4AZwA2AD0AIgAxACIACgAgACAAIAAgACAAIAAgACAAIAAgACAAZQBsAHMAZQA9ACIAMgAiAD4ACgAgACAAIAAgAEMAbwBuAHQAZQBuAHQACgAgACAAPAAvAFMAbwBtAGUAdABoAGkAbgBnAD4ACgB9AA%3D%3D

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@na-kialo na-kialo added the S-Needs triage Status: this issue needs to be triaged label Dec 10, 2024
@ematipico ematipico added A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug and removed S-Needs triage Status: this issue needs to be triaged labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

No branches or pull requests

2 participants