An open API service indexing awesome lists of open source software.

https://github.com/alpheuscfg/oxfmt

A shareable Oxfmt configuration
https://github.com/alpheuscfg/oxfmt

config javascript oxc oxfmt shareable typescript

Last synced: about 1 month ago
JSON representation

A shareable Oxfmt configuration

Awesome Lists containing this project

README

          

# Oxfmt Configuration

A shareable Oxfmt configuration.

## Installation

Install these packages as a dev dependencies in the project:

```sh
# npm
npm i -D oxfmt @apst/oxfmt

# Yarn
yarn add -D oxfmt @apst/oxfmt

# pnpm
pnpm add -D oxfmt @apst/oxfmt

# Bun
bun add -D oxfmt @apst/oxfmt
```

## Usage

Implement the configuration into `oxfmt.config.ts`:

```ts
import { defineConfig } from "@apst/oxfmt";

export default defineConfig();
```

It is possible to override the default configuration by passing an object to the `defineConfig` function:

```ts
import { defineConfig } from "@apst/oxfmt";
import { IGNORE_PATTERNS_DEFAULT } from "@apst/oxfmt/constants/ignore-patterns";

export default defineConfig({
ignorePatterns: [
...IGNORE_PATTERNS_DEFAULT,
// ...
],
});
```

## License

This project is licensed under the terms of the MIT license.