Pulsar integration with Biome, the JS/TS/JSON/CSS formatter and linter
This package provides the following services:
This package consumes the following services:
pulsar-ide-biome
A package for linting and code formtting via Biome — a replacement for both ESLint and Prettier that formats and lints JavaScript, TypeScript, JSON, and CSS.
Getting started
You should install and setup Biome in your project.
This package will expect a biome.json
or biome.jsonc
file at your project root. Neither linting nor formatting will function if they are not enabled in your configuration file.
Package prerequisites
Each of these is optional; you can decline to install the associated package if you don’t care about the feature.
- For automatically formatting your JavaScript and TypeScript files on save: there are no prerequisites.
- For linting your source code: linter and linter-ui-default.
- For on-demand formatting of a selected region of your code: a package that consumes the
code-format.range
service.
Why is this an “IDE” package?
Because Biome implements a language server for its editor integration.
Why isn’t my code formatting package in charge of formatting on save?
Because atom-ide-code-format
is a heavy dependency for what will be a commonly requested feature.
There are other reasons, too. The automatic reformat on save happens more gracefully when we control it, and it lets the user enable or disable the associated setting without requiring a restart of Pulsar.