biome icon indicating copy to clipboard operation
biome copied to clipboard

🐛 JSX inside `.vue` files can not be formatted

Open ccforeverd opened this issue 7 months ago • 8 comments

Environment information

CLI:
  Version:                      1.8.3
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           linux

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v16.20.2"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "npm/8.19.4"

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

Workspace:
  Open Documents:               0

What happened?

  1. node16 and Nuxt2 (Vue2) project
  2. There is some jsx code inside .vue files
  3. Vscode biome plugin show error type assertion are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.biome(parse)

Expected result

Support vue-jsx format

Code of Conduct

  • [X] I agree to follow Biome's Code of Conduct

ccforeverd avatar Jul 18 '24 09:07 ccforeverd