biomejs / biome

A toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP.
https://biomejs.dev
Apache License 2.0
14.22k stars 440 forks source link

`useImportType` Formatting Exception #1550

Open ayangweb opened 8 months ago

ayangweb commented 8 months ago

Environment information

CLI:
  Version:                      1.5.1
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

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

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

Workspace:
  Open Documents:               0

Configuration

{
    "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
    "linter": {
        "enabled": true,
        "rules": {
            "recommended": true,
            "nursery": {
                "useImportType": "error"
            }
        }
    }
}

Playground link

https://github.com/Synaptrix/ChatGPT-Desktop/assets/75017711/853f123c-8039-439f-b0a2-aa473d0ec4de

Code of Conduct

ayangweb commented 8 months ago

Restarting vscode works, but after a while it still throws an exception!

unvalley commented 7 months ago

@ayangweb I attempted to reproduce the error using the configuration you attached, but was unable to confirm it. What command are you using to save the file?

ayangweb commented 7 months ago

@ayangweb I attempted to reproduce the error using the configuration you attached, but was unable to confirm it. What command are you using to save the file?

+ S shortcut to save!

Conaclos commented 7 months ago

This is certainly related to #1570