eslint-plugin-oxlint
Turn off all rules already supported by oxlint
Last updated 2 months ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-plugin-oxlint 
SYNC missed versions from official npm registry.

eslint-plugin-oxlint

GitHub Actions Workflow Status NPM Version NPM Downloads

Turn off all rules already supported by oxlint. The rules are extracted from here.

Installation

pnpm add -D eslint-plugin-oxlint

Usage

Run oxlint before eslint

Add the following script to your package.json:

{
  "scripts": {
    "lint": "oxlint && eslint"
  }
}

Flat config

This plugin is optimized for flat config usage (eslint >= 9.0). See here for more details.

Example:

// eslint.config.js
import oxlint from 'eslint-plugin-oxlint';
export default [
  ...// other plugins
  ...oxlint.configs['flat/recommended'], // oxlint should be the last one
];

Legacy config

If you are using legacy configuration (eslint < 9.0), you can use the following config:

// .eslintrc.js
module.exports = {
  ... // other config
  extends: [
    ... // other presets
    "plugin:oxlint/recommended",
  ],
}

Detect rules from .oxlintrc.json

If you are using flat configuration (eslint >= 9.0), you can use the following config:

// eslint.config.js
import oxlint from 'eslint-plugin-oxlint';
export default [
  ..., // other plugins
  ...oxlint.buildFromOxlintConfigFile('./.oxlintrc.json'),
];

Or build it by an .oxlintrc.json-like object:

// eslint.config.js
import oxlint from 'eslint-plugin-oxlint';
export default [
  ..., // other plugins
  ...oxlint.buildFromOxlintConfig({
    categories: {
      correctness: 'warn'
    },
    rules: {
      eqeqeq: 'warn'
    }
  }),
];

buildFromOxlintConfigFile is not supported for legacy configuration (eslint < 9.0).

All Configs

  configs: {
    // recommended only contains the `correctness` category
    recommended: { plugins: [Array], rules: [Object] },
    'flat/recommended': { rules: [Object] },

    // all rules available
    all: { plugins: [Array], rules: [Object] },
    'flat/all': { rules: [Object] },

    // turn eslint rules off by plugin
    'flat/eslint': { rules: [Object] },
    'flat/import': { rules: [Object] },
    'flat/jest': { rules: [Object] },
    'flat/jsdoc': { rules: [Object] },
    'flat/jsx-a11y': { rules: [Object] },
    'flat/nextjs': { rules: [Object] },
    'flat/react': { rules: [Object] },
    'flat/react-perf': { rules: [Object] },
    'flat/tree-shaking': { rules: [Object] },
    'flat/typescript': { rules: [Object] },
    'flat/unicorn': { rules: [Object] },

    // turn eslint rules off by oxlint category
    'flat/pedantic': { rules: [Object] },
    'flat/style': { rules: [Object] },
    'flat/correctness': { rules: [Object] },
    'flat/restriction': { rules: [Object] },
    'flat/suspicious': { rules: [Object] }
  }

Current Tags

  • 1.50.0                                ...           latest (2 months ago)

118 Versions

  • 1.50.0                                ...           2 months ago
  • 1.49.0                                ...           2 months ago
  • 1.48.0                                ...           2 months ago
  • 1.46.0                                ...           2 months ago
  • 1.43.0                                ...           2 months ago
  • 1.42.0                                ...           3 months ago
  • 1.41.0                                ...           3 months ago
  • 1.40.0                                ...           3 months ago
  • 1.39.0                                ...           3 months ago
  • 1.38.0                                ...           3 months ago
  • 1.37.0                                ...           3 months ago
  • 1.36.0                                ...           3 months ago
  • 1.35.0                                ...           4 months ago
  • 1.34.0                                ...           4 months ago
  • 1.33.0                                ...           4 months ago
  • 1.32.0                                ...           4 months ago
  • 1.31.0                                ...           4 months ago
  • 1.30.0                                ...           5 months ago
  • 1.29.0                                ...           5 months ago
  • 1.28.0                                ...           5 months ago
  • 1.26.0                                ...           5 months ago
  • 1.25.0                                ...           5 months ago
  • 1.24.0                                ...           6 months ago
  • 1.23.0                                ...           6 months ago
  • 1.22.0                                ...           6 months ago
  • 1.21.0                                ...           6 months ago
  • 1.20.0                                ...           6 months ago
  • 1.19.0                                ...           6 months ago
  • 1.18.0                                ...           7 months ago
  • 1.17.0                                ...           7 months ago
  • 1.16.0                                ...           7 months ago
  • 1.15.0                                ...           7 months ago
  • 1.14.0                                ...           7 months ago
  • 1.13.0                                ...           8 months ago
  • 1.12.0                                ...           8 months ago
  • 1.11.2                                ...           8 months ago
  • 1.11.1                                ...           8 months ago
  • 1.11.0                                ...           8 months ago
  • 1.10.0                                ...           8 months ago
  • 1.9.0                                ...           8 months ago
  • 1.8.0                                ...           9 months ago
  • 1.7.0                                ...           9 months ago
  • 1.6.0                                ...           9 months ago
  • 1.5.0                                ...           9 months ago
  • 1.4.0                                ...           9 months ago
  • 1.3.0                                ...           10 months ago
  • 1.2.0                                ...           10 months ago
  • 1.1.0                                ...           10 months ago
  • 1.0.0                                ...           10 months ago
  • 0.18.1                                ...           10 months ago
  • 0.18.0                                ...           10 months ago
  • 0.17.0                                ...           10 months ago
  • 0.16.12                                ...           a year ago
  • 0.16.11                                ...           a year ago
  • 0.16.10                                ...           a year ago
  • 0.16.9                                ...           a year ago
  • 0.16.8                                ...           a year ago
  • 0.16.7                                ...           a year ago
  • 0.16.6                                ...           a year ago
  • 0.16.5                                ...           a year ago
  • 0.16.4                                ...           a year ago
  • 0.16.3                                ...           a year ago
  • 0.16.2                                ...           a year ago
  • 0.16.1                                ...           a year ago
  • 0.16.0                                ...           a year ago
  • 0.15.15                                ...           a year ago
  • 0.15.14                                ...           a year ago
  • 0.15.13                                ...           a year ago
  • 0.15.12                                ...           a year ago
  • 0.15.11                                ...           a year ago
  • 0.15.10                                ...           a year ago
  • 0.15.9                                ...           a year ago
  • 0.15.8                                ...           a year ago
  • 0.15.7                                ...           a year ago
  • 0.15.6                                ...           a year ago
  • 0.15.5                                ...           a year ago
  • 0.15.4                                ...           a year ago
  • 0.15.2                                ...           a year ago
  • 0.15.1                                ...           a year ago
  • 0.15.0                                ...           a year ago
  • 0.14.1                                ...           a year ago
  • 0.14.0                                ...           a year ago
  • 0.13.2                                ...           a year ago
  • 0.13.1                                ...           a year ago
  • 0.13.0                                ...           a year ago
  • 0.12.0                                ...           a year ago
  • 0.11.1                                ...           a year ago
  • 0.11.0                                ...           a year ago
  • 0.10.1                                ...           a year ago
  • 0.10.0                                ...           a year ago
  • 0.9.10                                ...           2 years ago
  • 0.9.9                                ...           2 years ago
  • 0.9.8                                ...           2 years ago
  • 0.9.7                                ...           2 years ago
  • 0.9.6                                ...           2 years ago
  • 0.9.5                                ...           2 years ago
  • 0.9.3                                ...           2 years ago
  • 0.9.2                                ...           2 years ago
  • 0.9.1                                ...           2 years ago
  • 0.9.0                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.7.2                                ...           2 years ago
  • 0.7.1                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.9                                ...           2 years ago
  • 0.2.8                                ...           2 years ago
  • 0.2.7                                ...           2 years ago
  • 0.2.4                                ...           2 years ago
  • 0.2.3                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.1-beta.4                                ...           2 years ago
  • 0.0.1-beta.3                                ...           2 years ago
Maintainers (2)
Downloads
Today 0
This Week 9
This Month 42
Last Day 1
Last Week 33
Last Month 83
Dependencies (1)
Dev Dependencies (21)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |