Skip to content

Eslint config suggested improvement #3045

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions