Skip to content

Commit ab4ec1d

Browse files
committed
test: add case with separate group
1 parent e9d728b commit ab4ec1d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/rules/order.spec.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4932,6 +4932,28 @@ import { privateA } from "#private/a";
49324932
},
49334933
],
49344934
}),
4935+
// test followTsOrganizeImports: true and splitted node:* group
4936+
tValid({
4937+
code: `import fs from 'node:fs';
4938+
import path from "path";
4939+
4940+
import { internA } from "#a";
4941+
import { privateA } from "#private/a";
4942+
import { scopeA } from "@a/a";
4943+
import a from 'a';
4944+
import 'format.css';
4945+
import { glob } from 'glob';
4946+
import index from './';
4947+
import { localA } from "./a";
4948+
import sibling from './foo';
4949+
`,
4950+
...parserConfig,
4951+
options: [
4952+
{
4953+
followTsOrganizeImports: true,
4954+
},
4955+
],
4956+
}),
49354957
],
49364958
invalid: [
49374959
// Option alphabetize: {order: 'asc'}

0 commit comments

Comments
 (0)