eslint-plugin-remix-react-routes icon indicating copy to clipboard operation
eslint-plugin-remix-react-routes copied to clipboard

Support autofix where possible

Open jenseng opened this issue 2 years ago • 0 comments

Not everything is auto-fixable, but it would be nice to support it for at least the following rules:

  • use-link-for-routes - switch to remix equivalents
    • <a> -> <Link>
    • <form> -> <Form reloadDocument>
  • no-relative-paths - make the paths absolute
  • no-urls - switch to native elements, normalizing/removing attributes as necessary
    • <Link> / <NavLink> -> <a>
    • <Form> (and <fetcher.Form>) -> <form>

jenseng avatar Dec 07 '22 16:12 jenseng