Skip to content

linter: stack overflow error in react/exhaustive-deps #11609

@Stanzilla

Description

@Stanzilla

What version of Oxlint are you using?

1.0.0

What command did you run?

oxlint . -c .oxlintrc.json

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

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "plugins": [
    "react",
    "react-perf",
    "typescript",
    "oxc",
    "promise",
    "jest",
    "jsx-a11y"
  ],
  "env": {
    "browser": true,
    "node": true,
    "es2020": true,
    "jest": true
  },
  "settings": {},
  "rules": {
    "eqeqeq": [
      "error",
      "always",
      {
        "null": "ignore"
      }
    ],
    "import/no-cycle": "warn",
    "@typescript-eslint/no-unused-vars": [
      "warn",
      {
        "args": "none",
        "ignoreRestSiblings": true,
        "argsIgnorePattern": "^_",
        "varsIgnorePattern": "^_",
        "caughtErrors": "none"
      }
    ],
    "no-extra-boolean-cast": "off"
  },
  "overrides": [
    {
      "files": [
        "**/{test,spec}.{js,ts,tsx}",
        "**/*.{test,spec}.{js,ts,tsx}",
        "**/__tests__/**/*.{js,ts,tsx}"
      ],
      "rules": {
        "@typescript-eslint/no-explicit-any": "off",
        "jest/no-standalone-expect": "off",
        "jest/no-conditional-expect": "off",
        "jest/no-disabled-tests": "off",
        "jest/no-export": "off"
      }
    }
  ]
}

What happened?

It runs a few lints and then crashes with

thread '<unknown>' has overflowed its stack
fatal runtime error: stack overflow
✨  Done in 0.70s.

How would I go about providing logs/debug info to get this fixed? I tried --debug and --verbose but apparently there is no such thing yet.

I don't have a Rust toolchain set up to build a debug build sadly.

Metadata

Metadata

Assignees

Labels

A-linterArea - LinterC-bugCategory - Bug

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions