Skip to content

Eslint config suggested improvement #3045

@devinrhode2

Description

@devinrhode2

Which project does this relate to?

Router

Describe the bug

'@typescript-eslint/only-throw-error': [
  'error',
  {
    allow: ['Redirect'],
    allowThrowingAny: false,
    allowThrowingUnknown: false,
  },
],

Your Example Website or App

google.com

Steps to Reproduce the Bug or Issue

write throw redirect

Expected behavior

no eslint error when using strict @typescript-eslint config

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions