@getjerry/oxlint-config
v0.27.3
Published
Keywords
Readme
@getjerry/oxlint-config
Usage
Install
pnpm i -D oxlint @getjerry/oxlint-configCreate a config file
In oxlint.config.ts:
import { getjerry } from '@getjerry/oxlint-config';
export default getjerry({
ignorePatterns: ['dist/**', 'coverage/**'],
});Add scripts in package.json
{
"scripts": {
"lint": "oxlint",
"lint:fix": "oxlint --fix"
}
}Work together with oxfmt:
{
"scripts": {
"lint": "oxlint && oxfmt --check",
"lint:fix": "oxlint --fix && oxfmt"
}
}Customizations
Override default config
import { getjerry } from '@getjerry/oxlint-config';
export default getjerry({
rules: {
'no-console': 'off',
},
});Add overrides
import { getjerry } from '@getjerry/oxlint-config';
export default getjerry({
overrides: [
{
files: ['**/*.spec.ts'],
rules: {
'typescript/no-explicit-any': 'off',
},
},
],
});Notes
The config migrates native oxlint equivalents from @getjerry/eslint-config, Airbnb, TypeScript ESLint, React, React Hooks, import, and node rules without depending on those ESLint packages.
Use getjerry() instead of extends for the shared config. Oxlint does not inherit top-level fields such as env, globals, settings, and ignorePatterns, while this package needs to preserve and merge them.
