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

https://github.com/logux/oxc-configs

Oxlint & oxfmt shareable config for Logux
https://github.com/logux/oxc-configs

Last synced: 2 months ago
JSON representation

Oxlint & oxfmt shareable config for Logux

Awesome Lists containing this project

README

          

# Logux Oxlint & Oxfmt Configs

Shareable code style and best practice for [Logux] projects.

[Logux]: https://logux.org/

---

  Made at Evil Martians, product consulting for developer tools.

---

## Install

```sh
pnpm add --save-dev @logux/oxc-configs oxlint oxlint-tsgolint typescript
```

## Usage

Create `oxlint.config.ts`:

```ts
import loguxOxlintConfig from '@logux/oxc-configs/lint'
import { defineConfig } from 'oxlint'

export default defineConfig({
extends: [loguxOxlintConfig]
})
```

Create `oxfmt.config.ts`:

```ts
import loguxOxfmtConfig from '@logux/oxc-configs/fmt'

export default loguxOxfmtConfig
```

For compatibility in open source projects create `.prettierrc.js`:

```ts
import loguxOxfmtConfig from '@logux/oxc-configs/fmt'

export default loguxOxfmtConfig
```