Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/savetheclocktower/pulsar-ide-biome
Pulsar integration with Biome, the JS/TS formatter and linter
https://github.com/savetheclocktower/pulsar-ide-biome
Last synced: about 2 months ago
JSON representation
Pulsar integration with Biome, the JS/TS formatter and linter
- Host: GitHub
- URL: https://github.com/savetheclocktower/pulsar-ide-biome
- Owner: savetheclocktower
- License: mit
- Created: 2024-06-28T07:26:34.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-28T08:30:44.000Z (6 months ago)
- Last Synced: 2024-06-28T09:53:24.584Z (6 months ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# pulsar-ide-biome
A package for linting and code formtting via [Biome](https://biomejs.dev/) — a replacement for both ESLint and Prettier that formats and lints JavaScript, TypeScript, JSON, and CSS.
## Getting started
You should [install and setup Biome](https://biomejs.dev/guides/getting-started/) 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](https://biomejs.dev/reference/configuration/).
## 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](https://web.pulsar-edit.dev/packages/linter) and [linter-ui-default](https://web.pulsar-edit.dev/packages/linter-ui-default).
* For on-demand formatting of a selected region of your code: [a package that consumes the `code-format.range` service](https://web.pulsar-edit.dev/packages?serviceType=consumed&service=code-format.range).### Why is this an “IDE” package?
Because Biome [implements a language server](https://biomejs.dev/guides/integrate-in-editor/) 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.