Skip to content

Graylog2/oxfmt-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors