Skip to content

linter: overrides disables JS plugins #14504

@DreierF

Description

@DreierF

What version of Oxlint are you using?

1.22.0

What command did you run?

pnpm exec oxlint

What does your .oxlintrc.json config file look like?

{
	"$schema": "./node_modules/oxlint/configuration_schema.json",
	"jsPlugins": ["./plugin.js"],
	"categories": {
		"correctness": "off"
	},
	"rules": {
		"best-plugin-ever/no-debugger": "error"
	},
	"overrides": [
		{
			"files": ["**/*.ts", "**/*.tsx"],
			"rules": {
				"no-class-assign": "error"
			}
		}
	]
}

What happened?

Using this config file with the example JS plugin from the blogpost it won't report any debugger statements. When I remove the overrides field it works as expected. The same works for the native no-debugger rule as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions