Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 1.35 KB

File metadata and controls

62 lines (46 loc) · 1.35 KB

@misskey-dev/oxlint-fmt-config

This package provides configuration for oxlint used in Misskey development.

oxfmt configuration is not included yet, as it is now using stylistic eslint rules for formatting. However, the directory structure of this package is designed to accommodate adding oxfmt configurations in the future.

Usage

Install the package:

pnpm add -D @misskey-dev/oxlint-fmt-config

Create oxlint.config.ts in the root of your project with the following content:

import { defineMisskeyDevOxlintConfig } from '@misskey-dev/oxlint-fmt-config';

export default defineMisskeyDevOxlintConfig({
	// Disable specific rulesets
	features: {
		stylistic: false,
	},

	// Override the default config
	overrides: {
		ignorePatterns: [
			'built/**/*',
		],
	},
});

Or if you are using Vite+, create vite.config.ts in the root of your project with the following content:

import { defineConfig } from 'vite-plus';
import { defineMisskeyDevOxlintConfig } from '@misskey-dev/oxlint-fmt-config';

export default defineConfig({
	// other config...

	lint: defineMisskeyDevOxlintConfig({
		// Disable specific rulesets
		features: {
			stylistic: false,
		},

		// Override the default config
		overrides: {
			ignorePatterns: [
				'built/**/*',
			],
		},
	}),
});

License

MIT