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
npm add -D @rivuty/oxfmt-config oxfmt
# or
pnpm add -D @rivuty/oxfmt-config oxfmtCreate 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@rivuty/oxfmt-config is open-sourced under the MIT license