Tibfib/eslint-plugin-import-helpers
### [`v1.3.0`](https://togithub.com/Tibfib/eslint-plugin-import-helpers/releases/tag/v1.3.0)
[Compare Source](https://togithub.com/Tibfib/eslint-plugin-import-helpers/compare/v1.2.1...v1.3.0)
Add support for classifying type imports as an entirely separate group, if desired.
From the docs:
### The `type` group
TypeScript has what are called type imports, e.g.,
```ts
import type { ImportantType } from './thing';
```
If you would like to treat these type imports as a completely separate group (instead of sorted according to the file it was imported from), add a `type` group to your `groups` list.
With the `type` group:
```ts
/* eslint import-helpers/order-imports: ["error", {"groups": ['sibling', 'module', 'type']}] */
import foo from './foo';
import fs from 'fs';
import path from 'path';
import type { ImportantType } from './sibling';
```
Without the `type` group:
```ts
/* eslint import-helpers/order-imports: ["error", {"groups": ['sibling', 'module']}] */
import foo from './foo';
import type { ImportantType } from './sibling';
import fs from 'fs';
import path from 'path';
```
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
1.2.1
->1.3.0
Release Notes
Tibfib/eslint-plugin-import-helpers
### [`v1.3.0`](https://togithub.com/Tibfib/eslint-plugin-import-helpers/releases/tag/v1.3.0) [Compare Source](https://togithub.com/Tibfib/eslint-plugin-import-helpers/compare/v1.2.1...v1.3.0) Add support for classifying type imports as an entirely separate group, if desired. From the docs: ### The `type` group TypeScript has what are called type imports, e.g., ```ts import type { ImportantType } from './thing'; ``` If you would like to treat these type imports as a completely separate group (instead of sorted according to the file it was imported from), add a `type` group to your `groups` list. With the `type` group: ```ts /* eslint import-helpers/order-imports: ["error", {"groups": ['sibling', 'module', 'type']}] */ import foo from './foo'; import fs from 'fs'; import path from 'path'; import type { ImportantType } from './sibling'; ``` Without the `type` group: ```ts /* eslint import-helpers/order-imports: ["error", {"groups": ['sibling', 'module']}] */ import foo from './foo'; import type { ImportantType } from './sibling'; import fs from 'fs'; import path from 'path'; ```Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.