Closed brandongregoryscott closed 2 years ago
Update named-exports-only rule to update import references for the updated export, i.e.
named-exports-only
// button.tsx const Button = () => { return <button></button>; }; export default Button;
// page.tsx import Button from "./button"; const Page = () => { return ( <div> <Button /> <Button /> </div> ) };
will be transformed to:
// button.tsx const Button = () => { return <button></button>; }; export { Button };
// page.tsx import { Button } from "./button"; const Page = () => { return ( <div> <Button /> <Button /> </div> ) };
Update
named-exports-only
rule to update import references for the updated export, i.e.will be transformed to: