GitOpsLovers / nx-biome

NX plugin to integrate the Biome toolchain.
MIT License
25 stars 1 forks source link

lintFilePatterns only works with ts extension #7

Open cortopy opened 2 months ago

cortopy commented 2 months ago

I've just installed nx-biome, and I'm encountering issues with the extensions that can be passed to file patterns.

The following seems to be the default and works:

"lintFilePatterns": [
          "apps/website/**/*.ts"
],

but this doesn't

"lintFilePatterns": [
          "apps/website/**/*.spec.ts"
],

or this

"lintFilePatterns": [
          "apps/website/**/*.astro"
],

In all failing cases logs say:

× No such file or directory (os error 2)
! This diagnostic was derived from an internal Biome error. Potential bug, please report it if necessary.

The files are there and this error shouldn't happen. Running biome format --write apps/website/**/*.astro in root works fine.

Also, I don't know if related, but even if only ts extension is passed, the plugin seems to ignore the write argument, as no files are changed.