Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graylog's Oxfmt Config

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.

About

Shared configuration for the `oxfmt` formatter

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages