Skip to content

🐛 Vue noFloatingPromises not "checked" in vue script tag with lang="ts" #10306

@bipedal-eel

Description

@bipedal-eel

Environment information

Details
CLI:
  Version:                      2.4.14
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  BIOME_LOG_PATH:                    unset
  BIOME_LOG_PREFIX_NAME:             unset
  BIOME_LOG_LEVEL:                   unset
  BIOME_LOG_KIND:                    unset
  BIOME_CONFIG_PATH:                 unset
  BIOME_THREADS:                     unset
  BIOME_WATCHER_KIND:                unset
  BIOME_WATCHER_POLLING_INTERVAL:    unset
  NO_COLOR:                     unset
  TERM:                         tmux-256color
  JS_RUNTIME_VERSION:           v22.13.1
  JS_RUNTIME_NAME:              node
  NODE_PACKAGE_MANAGER:         unset

Biome Configuration:
  Status:                       Loaded successfully
  Path:                         biome.jsonc
  Formatter enabled:            true
  Linter enabled:               true
  Assist enabled:               true
  VCS enabled:                  false
  HTML full support enabled:    true

Workspace:
  Open Documents:               0

What happened?

https://biomejs.dev/playground/?lintRules=noFloatingPromises&tab=syntax&pane=Diagnostics&code=PABzAGMAcgBpAHAAdAAgAGwAYQBuAGcAPQAiAHQAcwAiAD4ACgAgACAAYwBvAG4AcwB0ACAAYQAgAD0AIABhAHMAeQBuAGMAIAAoACkAIAA9AD4AIAB7AAoAIAAgAAkAUAByAG8AbQBpAHMAZQAuAHIAZQBzAG8AbAB2AGUAKAApADsACgAgACAAfQA7AAoAIAAgAAoAIAAgAGMAbwBuAHMAdAAgAGIAIAA9ACAAKAApACAAPQA%2BACAAewAKACAAIAAJAGEAKAApADsACgAgACAAfQA7AAoAPAAvAHMAYwByAGkAcAB0AD4A&language=vue

does not show diagnostics for noFloatingPromises

Expected result

Should show same diagnostics as a normal typescript file:
https://biomejs.dev/playground/?lintRules=noFloatingPromises&tab=syntax&pane=Diagnostics&code=YwBvAG4AcwB0ACAAYQAgAD0AIABhAHMAeQBuAGMAIAAoACkAIAA9AD4AIAB7AAoAIAAgAFAAcgBvAG0AaQBzAGUALgByAGUAcwBvAGwAdgBlACgAKQA7AAoAfQA7AAoACgBjAG8AbgBzAHQAIABiACAAPQAgACgAKQAgAD0APgAgAHsACgAgACAAYQAoACkAOwAKAH0AOwA%3D&language=ts

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LinterArea: linterL-JavaScriptLanguage: JavaScript and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions