Skip to content

oxlint

Installation

  1. Make sure oxlint is installed as a dependency.

  2. Add oxlint field to plugin config. Valid options are either true or a configuration object.

    js
    // e.g.
    export default defineConfig({
      plugins: [
        checker({
          oxlint: true,
          // or
          oxlint: {
            lintCommand: "oxlint -D correctness",
          },
        }),
      ],
    });

Configuration

Advanced object configuration table of options.oxlint

fieldTypeDefault valueDescription
lintCommandstringoxlintlintCommand will be executed at build mode.
watchPathstring | string[]undefined(Only in dev mode) Configure path to watch files for oxlint. If not specified, will watch the entire project root.
dev.logLevel('error' | 'warning')[]['error', 'warning'](Only in dev mode) Which level of oxlint should be emitted to terminal and overlay in dev mode.

Released under the MIT License.