Skip to content

rivuty/oxfmt-config

@rivuty/oxfmt-config

Shared oxfmt configuration.

Includes opinionated defaults:

  • 120 character print width
  • Single quotes
  • Arrow function parens omitted when possible
  • Import sorting with React imports grouped separately from other external packages

Installation

npm add -D @rivuty/oxfmt-config oxfmt
# or
pnpm add -D @rivuty/oxfmt-config oxfmt

Usage

Create an oxfmt.config.ts at the root of your project:

import { config } from '@rivuty/oxfmt-config';

export default config;

Then run the formatter:

# Check formatting
oxfmt --check

# Fix formatting
oxfmt --write

License

@rivuty/oxfmt-config is open-sourced under the MIT license

About

Shared oxfmt configuration for TypeScript projects

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors