Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-2528

Create a custom eslint rule to catch restricted imports from react-router-dom

    • False
    • Hide

      None

      Show
      None
    • False
    • OCMUI Core Sprint 261, OCMUI Core Sprint 262

      Since react-router v6 upgrade, we wrap react-router-dom Link, Navigate, and useNavigate to add a base path 

      Add a custom eslint rule to restrict direct imports for these from react-router-dom, instead they should come from '~/common/routing', i.e:
      import { useNavigate } from '~/common/routing'

              jschuler_kafka_devexp Joachim Schuler
              jschuler_kafka_devexp Joachim Schuler
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: