Skip to content

linter: Property options is not allowed in the config #19930

@equinusocio

Description

@equinusocio

What version of Oxlint are you using?

1.50.0

What command did you run?

No response

What does your .oxlintrc.json (or oxlint.config.ts) config file look like?

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "plugins": ["react"],
  "options": {
    "typeAware": true
  },
  "env": {
    "browser": true,
    "es2022": true
  },
  "globals": {
    "React": "readonly"
  },
  "ignorePatterns": ["dist/", "node_modules/", "**/*.module.css.d.ts", "**/*.d.ts"],
  "rules": {},
  "overrides": [
    {
      "files": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*!(.stories).tsx"],
      "env": {
        "es2026": true
      },
      "plugins": ["react", "jsx-a11y", "typescript", "import", "unicorn"]
    },
    {
      "files": ["**/*.stories.tsx"],
      "rules": {
        "react-hooks/rules-of-hooks": "off",
        "no-console": "off",
        "no-alert": "off",
        "no-shadow": "off",
        "no-autofocus": "off"
      },
      "jsPlugins": ["eslint-plugin-storybook"],
      "plugins": ["react", "typescript", "import", "unicorn"]
    }
  ]
}

What happened?

In a monorepo (turborepo) when adding the options key to the root config is not recognized and breaks the config.

Image

Metadata

Metadata

Assignees

Labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions