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

📝 Long destructuring not line breaking #2172

Closed
1 task done
akumansley opened this issue Mar 23, 2024 · 0 comments · Fixed by #2185
Closed
1 task done

📝 Long destructuring not line breaking #2172

akumansley opened this issue Mar 23, 2024 · 0 comments · Fixed by #2185
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

@akumansley
Copy link

Environment information

CLI:
  Version:                      1.6.2
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           unset
  JS_RUNTIME_NAME:              unset
  NODE_PACKAGE_MANAGER:         unset

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

Formatter:
  Format with errors:           false
  Indent style:                 Space
  Indent size:                  0
  Indent width:                 4
  Line ending:                  Lf
  Line width:                   110
  Attribute position:           Auto
  Ignore:                       ["*/__snapshots__/*", "*.js", "*.d.ts"]
  Include:                      []

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

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

Workspace:
  Open Documents:               0

Configuration

{
    "linter": {
        "enabled": false
    },
    "formatter": {
        "enabled": true,
        "attributePosition": "auto",
        "formatWithErrors": false,
        "indentStyle": "space",
        "indentWidth": 4,
        "lineWidth": 110,
        "ignore": ["*/__snapshots__/*", "*.js", "*.d.ts"]
    },
    "javascript": {
        "formatter": {
            "enabled": true,
            "quoteStyle": "single",
            "bracketSpacing": false,
            "trailingComma": "all",
            "lineWidth": 100
        }
    },
    "json": {
        "formatter": {
            "enabled": false
        }
    }
}

Playground link

https://biomejs.dev/playground/?indentStyle=space&indentWidth=4&bracketSpacing=false&enabledLinting=false&importSortingEnabled=false&code=YwBvAG4AcwB0ACAAewAKACAAIAAgACAAIAAgACAAIAAgACAAZgBhAGkAcgBsAHkATABvAG4AZwBPAGIAagBlAGMAdABLAGUAeQBMAG8AbgBnAEUAbgBvAHUAZwBoAFQAbwBCAHIAZQBhAGsAQwBoAGEAcgBhAGMAdABlAHIATABpAG0AaQB0ADoAIABfAGYAYQBpAHIAbAB5AEwAbwBuAGcAVgBhAGwAdQBlAE4AYQBtAGUATABvAG4AZwBFAG4AbwB1AGcAaABUAG8AQgByAGUAYQBrAEMAaABhAHIAYQBjAHQAZQByAEwAaQBtAGkAdAAsAAoAIAAgACAAIAB9ACAAIAA9ACAAcwBvAG0AZQBPAGIAagA7AAoA

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@Sec-ant Sec-ant added A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug labels Mar 24, 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

Successfully merging a pull request may close this issue.

2 participants