Skip to content

linter: explicit-module-boundary-types doesn't lint with a default export on separate line #14831

@Aloso

Description

@Aloso

What version of Oxlint are you using?

1.23.0

What command did you run?

oxlint -c .oxlintrc.json --type-aware

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

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "rules": {
    "@typescript-eslint/explicit-module-boundary-types": "warn"
  }
}

What happened?

Here, oxlint correctly identifies a missing return type:

export function App() {
  return 42;
}

But here it doesn't:

function App() {
  return 42;
}

export default App

ESLint reports a warning in both cases.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions