This package is a shared oxfmt config for Graylog projects. Its rules mirror @graylog/prettier-config.
Unlike Prettier, oxfmt does not support extending configurations from a package directly. Instead, create an oxfmt.config.ts in your project root that imports and re-exports this config — oxfmt picks it up automatically:
import { defineConfig } from 'oxfmt';
import config from '@graylog/oxfmt-config' with { type: 'json' };
export default defineConfig(config);defineConfig from oxfmt provides type inference for the config object. You can spread the shared config and override fields locally if needed:
import { defineConfig } from 'oxfmt';
import config from '@graylog/oxfmt-config' with { type: 'json' };
export default defineConfig({ ...config, printWidth: 100 });See the oxfmt configuration reference for the full list of supported options.