dense-analysis / ale

Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
BSD 2-Clause "Simplified" License
13.51k stars 1.43k forks source link

ALE linting .tsx as .ts files when using Biome #4752

Closed jbadavis closed 3 months ago

jbadavis commented 5 months ago

Information

VIM version

VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Feb 11 2024 17:19:45) macOS version - arm64

Operating System: Mac OS 13.2.1

What went wrong

I've added and configured Biome for my React/Typescript project and I suspect ALE/Biome is linting my .tsx files as typescript files rather than typescriptreact files.

Reproducing the bug

  1. Clone https://github.com/jbadavis/jbadavis.dev.
  2. Checkout feat/biome.
  3. Open main.tsx and see the linting errors.

:ALEInfo

Expand Current Filetype: typescriptreact Available Linters: ['biome', 'cspell', 'deno', 'eslint', 'standard', 'tslint', 'tsserver', 'typecheck', 'xo'] Enabled Linters: ['biome'] Ignored Linters: [] Suggested Fixers: 'remove_trailing_lines' - Remove all blank lines at the end of a file. 'trim_whitespace' - Remove all trailing whitespace characters at the end of every line.