@standard-config/oxlint
v1.1.2
Published
Curated Oxlint config with sensible defaults
Downloads
3,239
Maintainers
Readme
@standard-config/oxlint
Curated Oxlint config with sensible defaults. Carefully designed as a strict, environment-agnostic baseline for writing better TypeScript.
- If you’re migrating from xo to Oxlint, you’ll feel right at home.
- For additional rules not yet implemented in Oxlint, see @standard-config/eslint.
Install
npm install --save-dev @standard-config/oxlintpnpm add --save-dev @standard-config/oxlintFor type-aware linting, make sure both oxlint and oxlint-tsgolint are installed.
Usage
Create your oxlint.config.ts:
import { defineConfig } from '@standard-config/oxlint';
export default defineConfig();Overrides
You can override the defaults by passing your own config options.
import { defineConfig } from '@standard-config/oxlint';
export default defineConfig({
rules: {
'typescript/consistent-type-definitions': ['error', 'interface'],
},
});React
Standard Config includes a set of React-related rules that are off by default. You can enable them by setting react: true in the root of your config.
import { defineConfig } from '@standard-config/oxlint';
export default defineConfig({
react: true,
});Related
License
MIT © Dom Porada
