@@ -2338,11 +2338,11 @@ context('TypeScript', function () {
2338
2338
// Option alphabetize: {order: 'asc'}
2339
2339
test ( {
2340
2340
code : `
2341
- import c from 'Bar';
2342
2341
import type { C } from 'Bar';
2342
+ import c from 'Bar';
2343
2343
import b from 'bar';
2344
- import a from 'foo';
2345
2344
import type { A } from 'foo';
2345
+ import a from 'foo';
2346
2346
2347
2347
import index from './';
2348
2348
` ,
@@ -2486,12 +2486,12 @@ context('TypeScript', function () {
2486
2486
} ) ,
2487
2487
test ( {
2488
2488
code : `
2489
- import { serialize, parse, mapFieldErrors } from '@vtaits/form-schema';
2490
2489
import type { GetFieldSchema } from '@vtaits/form-schema';
2491
- import { useMemo, useCallback } from 'react ';
2490
+ import { serialize, parse, mapFieldErrors } from '@vtaits/form-schema ';
2492
2491
import type { ReactElement, ReactNode } from 'react';
2493
- import { Form } from 'react-final-form ';
2492
+ import { useMemo, useCallback } from 'react';
2494
2493
import type { FormProps as FinalFormProps } from 'react-final-form';
2494
+ import { Form } from 'react-final-form';
2495
2495
` ,
2496
2496
...parserConfig ,
2497
2497
options : [
@@ -2532,11 +2532,11 @@ context('TypeScript', function () {
2532
2532
import index from './';
2533
2533
` ,
2534
2534
output : `
2535
- import c from 'Bar';
2536
2535
import type { C } from 'Bar';
2536
+ import c from 'Bar';
2537
2537
import b from 'bar';
2538
- import a from 'foo';
2539
2538
import type { A } from 'foo';
2539
+ import a from 'foo';
2540
2540
2541
2541
import index from './';
2542
2542
` ,
@@ -2549,6 +2549,8 @@ context('TypeScript', function () {
2549
2549
] ,
2550
2550
errors : [
2551
2551
{ message : '`Bar` import should occur before import of `bar`' } ,
2552
+ { message : '`Bar` type import should occur before import of `bar`' } ,
2553
+ { message : '`foo` type import should occur before import of `foo`' } ,
2552
2554
] ,
2553
2555
} ) ,
2554
2556
// Option alphabetize: {order: 'desc'}
@@ -2613,7 +2615,7 @@ context('TypeScript', function () {
2613
2615
] ,
2614
2616
errors : [
2615
2617
{ message : '`Bar` import should occur before import of `bar`' } ,
2616
- { message : '`Bar` import should occur before import of `foo`' } ,
2618
+ { message : '`Bar` type import should occur before type import of `foo`' } ,
2617
2619
] ,
2618
2620
} ) ,
2619
2621
// Option alphabetize: {order: 'desc'} with type group
@@ -2647,7 +2649,7 @@ context('TypeScript', function () {
2647
2649
] ,
2648
2650
errors : [
2649
2651
{ message : '`bar` import should occur before import of `Bar`' } ,
2650
- { message : '`foo` import should occur before import of `Bar`' } ,
2652
+ { message : '`foo` type import should occur before type import of `Bar`' } ,
2651
2653
] ,
2652
2654
} ) ,
2653
2655
// warns for out of order unassigned imports (warnOnUnassignedImports enabled)
@@ -2730,8 +2732,8 @@ context('TypeScript', function () {
2730
2732
} ,
2731
2733
] ,
2732
2734
errors : [
2733
- { message : '`fs` import should occur before import of `path`' } ,
2734
- { message : '`fs` import should occur before import of `path`' } ,
2735
+ { message : '`fs` type import should occur before type import of `path`' } ,
2736
+ { message : '`fs` type import should occur before type import of `path`' } ,
2735
2737
] ,
2736
2738
} ) ,
2737
2739
] ,
0 commit comments