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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃摑 noUselessFragments autofix causes syntax error with strings #1514

Closed
1 task done
e965 opened this issue Jan 10, 2024 · 1 comment 路 Fixed by #1553
Closed
1 task done

馃摑 noUselessFragments autofix causes syntax error with strings #1514

e965 opened this issue Jan 10, 2024 · 1 comment 路 Fixed by #1553
Assignees
Labels
A-Linter Area: linter S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@e965
Copy link

e965 commented Jan 10, 2024

Environment information

CLI:
  Version:                      1.5.1
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           windows

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.10.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "yarn/4.0.2"

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

Workspace:
  Open Documents:               0

Configuration

{
  "formatter": {
    "enabled": true,
    "indentStyle": "space",
    "indentWidth": 2,
    "lineWidth": 100
  },
  "javascript": {
    "formatter": {
      "enabled": true,
      "quoteStyle": "single",
      "arrowParentheses": "asNeeded"
    }
  }
}

Demonstration

(just a demonstration, recreating the situation is not accurate)

// state before autofix
const SomeComponent = () => {
  return (
    <React.Fragment>
      Your Data Dispute Request was sent to your current Employer
    </React.Fragment>
  );
}

// state after autofix
const SomeComponent = () => {
  return (
    "
      Your Data Dispute Request was sent to your current Employer
    "
  );
}

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@togami2864
Copy link
Contributor

I'll take a look at this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter 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.

3 participants