@wolfstar/oxfmt-config
v0.2.3
Published
Shareable oxfmt base configuration for Star Network packages
Maintainers
Readme
@wolfstar/oxfmt-config
Shareable oxfmt base configuration for Star Network projects.
Description
The oxfmt formatting options used across @wolfstar/* projects: tabs with a width of 4, a print width of 150, single quotes, no trailing commas, semicolons and LF line endings.
It intentionally ships no ignorePatterns: those are project-specific and belong in your own config.
Installation
pnpm add -D oxfmt @wolfstar/oxfmt-configUsage
oxfmt has no extends mechanism for .oxfmtrc.json yet (oxc-project/oxc#16394), so consume this package from an oxfmt.config.ts instead. The package default-exports a config object created with defineConfig from oxfmt, ready to spread into your own:
import { defineConfig } from 'oxfmt';
import baseConfig from '@wolfstar/oxfmt-config';
export default defineConfig({
...baseConfig,
ignorePatterns: ['**/dist/**']
});oxfmt picks up .oxfmtrc.json before oxfmt.config.ts, and only one config file may exist per directory — remove any existing .oxfmtrc.json when switching to the TypeScript config, otherwise it silently keeps winning.
Buy us some doughnuts
Star Network is open source and always will be, even if we don't get donations. That being said, we know there are amazing people who may still want to donate just to show their appreciation. Thank you very much in advance!
License
Apache-2.0
