@josephmcg/oxlint-config
v0.0.6
Published
Oxlint config for projects
Readme
@josephmcg/oxlint-config ·

pnpm i -D @josephmcg/oxlint-configImport your preferred config based on your framework of choice:
// oxlint.config.ts
import { defineConfig } from 'oxlint'
import {
josephmcgOxlintConfigBase,
josephmcgOxlintConfigNext,
josephmcgOxlintConfigReact,
} from '@josephmcg/oxlint-config'
export default defineConfig({
extends: [josephmcgOxlintConfig*], // * = base, next, react
// additional config
})Comments Plugin
I've created a plugin that enforces an important eslint rule, require-description.
The js plugin linked above only registers for // eslint-disable..., so I needed to rewrite it to work for // oxlint-disable....
// oxlint.config.ts
export default defineConfig({
jsPlugins: ['@josephmcg/oxlint-config/plugin-comments'],
rules: {
'@josephmcg/plugin-comments/require-description': 'error',
},
})Restricted Imports
I've configured sensible restricted imports for the base config to allow for proper zod tree-shaking.
For the Next.js config, I've configured restricted imports for the navigation helpers to use the i18n wrapper.
You can access those specific rules at baseRestrictedImportPaths, or nextRestrictedImportPaths if you'd like to configure your own restricted imports, while still extending the base config of this package.
