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.
Install the package:
pnpm add -D @misskey-dev/oxlint-fmt-configCreate 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/**/*',
],
},
}),
});MIT