[PR #6680] lint: add perfectionist/sort-named-imports rule #6667

Closed
opened 2026-02-28 21:31:16 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/6680

State: closed
Merged: Yes


Quite a big PR (apologies).

But the jist of it is.. we are now sorting named imports. The auto-fixer for this works too so people should not need to do this manually. It happens auto-magically via pre-commit hook.

We go from..

import {
   type FC,
   useState,
   useEffect,
   type ComponentProps,
} from 'react';

to

import {
   useEffect,
   useState,
   type ComponentProps,
   type FC,
} from 'react';
**Original Pull Request:** https://github.com/actualbudget/actual/pull/6680 **State:** closed **Merged:** Yes --- Quite a big PR (apologies). But the jist of it is.. we are now sorting named imports. The auto-fixer for this works too so people should not need to do this manually. It happens auto-magically via pre-commit hook. We go from.. ``` import { type FC, useState, useEffect, type ComponentProps, } from 'react'; ``` to ``` import { useEffect, useState, type ComponentProps, type FC, } from 'react'; ```
GiteaMirror added the pull-request label 2026-02-28 21:31:16 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6667