Skip to content

linter: Difference in eslint/no-shadow rule behavior vs original ts-eslint rule #19461

@connorshea

Description

@connorshea

What version of Oxlint are you using?

1.48.0

What command did you run?

oxlint

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

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "plugins": [
    "typescript"
  ],
  "categories": {
    "correctness": "off"
  },
  "rules": {
    "eslint/no-shadow": "error"
  }
}

What happened?

I have this code:

import { memo } from 'react';

const FooBarComponent = memo(function FooBarComponent() {
  return <div>Foo</div>;
});

In typescript-eslint's no-shadow rule, there is no warning/error here. In Oxlint, there is.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions