quick-start icon indicating copy to clipboard operation
quick-start copied to clipboard

Option for Biome instead of ESLint/Prettier

Open devuxer opened this issue 1 year ago • 0 comments

Clear and concise description of the problem

Linting and formatting are critical to writing good code, but ESLint and Prettier add a lot of complexity to a project. They require numerous libraries, plugins, and IDE extensions and a lots of config. ESLint recently deprecated the eslintrc file format and replaced it with a new config file format (that is arguably only a marginal improvement). Some/many of the plugins are still not ported over to the new format, and help with the new format is not easy to come by.

Used Scaffolding

create-electron

Suggested solution

Make Biome an option.

Biome is a Rust-based alternative to ESLint/Prettier.

Advantages:

  1. Extremely fast
  2. Significantly reduces the number of libraries needed
  3. Greatly simplifies configuration
  4. Linting and formatting are nearly 100% compatible with ESLint/Prettier
  5. Great docs

Disadvantages:

  1. Not as mature as ESLint/Prettier
  2. Fewer blog posts/resources
  3. Plugins not yet available (due to arrive in v2)

Alternative

No response

Additional context

The scaffolder creates an ESLint config that is not compatible with ESLint 9 (due to the deprecation of eslintrc), so work will soon be needed to bring this project up to date. My suggestion would be to add Biome as a linting/formatting alternative as part of your updating.

Validations

devuxer avatar Dec 04 '24 21:12 devuxer