ai-chatbot icon indicating copy to clipboard operation
ai-chatbot copied to clipboard

Linting methods

Open artskidesign opened this issue 11 months ago • 3 comments

Is there a reason why we’re combining the use of Biome and ESLint in this project instead of fully shifting to Biome and dropping ESLint? I might be missing something and wanted to check if there’s a specific reason for this split between the two as it currently stands.

artskidesign avatar Jan 11 '25 12:01 artskidesign

I also wonder why this is

JinJieBeWater avatar Mar 02 '25 03:03 JinJieBeWater

Does anyone know the reason for this?

0Chan-smc avatar Apr 04 '25 02:04 0Chan-smc

And I think there are other problems with the way that lint/biome are being used ...

Running pnpm lint on this repo changes many of the source files (it removes the type keyword from imports).

So, on every commit, lint is running in the actions, changing all the code, and then throwing the changes away. No harm, but seems like a bad idea.

package.json includes

    "lint": "next lint && biome lint --write --unsafe",
    "lint:fix": "next lint --fix && biome lint --write --unsafe",

I think it shouldn't have the biome --write --unsafe options on the lint - just on the lint:fix.

Also, if the lint:fix command, as configured, wants to remove all those type keywords, I guess they should be removed - so lint:fix is clean.

GitTom avatar Apr 15 '25 15:04 GitTom

We'll be fully moving to Biome in our next major release (in progress) 👍

haydenbleasel avatar Nov 01 '25 04:11 haydenbleasel