lint: add perfectionist/sort-named-imports rule (#6680)

* Apply import sorting with perfectionist/sort-named-imports rule

- Add perfectionist/sort-named-imports oxlint rule
- Sort named imports: value imports before type imports
- Update component-library and desktop-client files to match new rule

* Add release notes for linting updates on named imports
This commit is contained in:
Matiss Janis Aboltins
2026-01-17 00:41:45 +01:00
committed by GitHub
parent bf814a6873
commit b6452f930b
409 changed files with 849 additions and 837 deletions

View File

@@ -1,4 +1,4 @@
import { type ComponentProps, type ReactNode, type CSSProperties } from 'react';
import { type ComponentProps, type CSSProperties, type ReactNode } from 'react';
import { Block } from './Block';
import { View } from './View';

View File

@@ -2,8 +2,8 @@ import React, {
forwardRef,
useMemo,
type ComponentPropsWithoutRef,
type ReactNode,
type CSSProperties,
type ReactNode,
} from 'react';
import { Button as ReactAriaButton } from 'react-aria-components';

View File

@@ -1,4 +1,4 @@
import { type ComponentProps, forwardRef } from 'react';
import { forwardRef, type ComponentProps } from 'react';
import { theme } from './theme';
import { View } from './View';

View File

@@ -1,15 +1,15 @@
import { type ChangeEvent, type ReactNode } from 'react';
import {
ColorPicker as AriaColorPicker,
type ColorPickerProps as AriaColorPickerProps,
ColorSwatch as AriaColorSwatch,
ColorSwatchPicker as AriaColorSwatchPicker,
ColorField,
ColorSwatchPickerItem,
Dialog,
DialogTrigger,
ColorSwatch as AriaColorSwatch,
type ColorSwatchProps,
ColorSwatchPicker as AriaColorSwatchPicker,
ColorSwatchPickerItem,
ColorField,
parseColor,
type ColorPickerProps as AriaColorPickerProps,
type ColorSwatchProps,
} from 'react-aria-components';
import { css } from '@emotion/css';

View File

@@ -1,4 +1,4 @@
import { type ReactNode, type CSSProperties } from 'react';
import { type CSSProperties, type ReactNode } from 'react';
import { View } from './View';

View File

@@ -2,11 +2,11 @@ import {
Children,
cloneElement,
isValidElement,
useEffect,
useRef,
type ReactElement,
type Ref,
type RefObject,
useEffect,
useRef,
} from 'react';
type InitialFocusProps<T extends HTMLElement> = {

View File

@@ -1,8 +1,8 @@
import React, {
type ChangeEvent,
type ComponentPropsWithRef,
type KeyboardEvent,
type FocusEvent,
type KeyboardEvent,
} from 'react';
import { Input as ReactAriaInput } from 'react-aria-components';

View File

@@ -1,4 +1,4 @@
import { forwardRef, type ReactNode, type CSSProperties } from 'react';
import { forwardRef, type CSSProperties, type ReactNode } from 'react';
import { styles } from './styles';
import { Text } from './Text';

View File

@@ -1,13 +1,13 @@
import {
type ReactNode,
useEffect,
useRef,
useState,
type ComponentProps,
type ComponentType,
type SVGProps,
type CSSProperties,
type KeyboardEvent,
useEffect,
useRef,
type ReactNode,
type SVGProps,
} from 'react';
import { Button } from './Button';

View File

@@ -1,4 +1,4 @@
import { type ComponentProps, useCallback, useEffect, useRef } from 'react';
import { useCallback, useEffect, useRef, type ComponentProps } from 'react';
import { Popover as ReactAriaPopover } from 'react-aria-components';
import { css } from '@emotion/css';

View File

@@ -1,8 +1,8 @@
import React, {
type HTMLProps,
type Ref,
type ReactNode,
forwardRef,
type HTMLProps,
type ReactNode,
type Ref,
} from 'react';
import { css, cx } from '@emotion/css';

View File

@@ -1,4 +1,4 @@
import React, { type SVGProps, useState } from 'react';
import React, { useState, type SVGProps } from 'react';
export const SvgLoading = (props: SVGProps<SVGSVGElement>) => {
const { color = 'currentColor' } = props;