@rivuty/oxfmt-config
v1.0.0
Published
Shared oxfmt configuration for TypeScript projects
Maintainers
Readme
@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 oxfmtUsage
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 --writeLicense
@rivuty/oxfmt-config is open-sourced under the MIT license
