Eslint Plugin Import Helpers Versions Save

ESLint plugin to help enforce a configurable order for import statements

v1.3.1

1 year ago

v1.3.0

1 year ago

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.,

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:

/* 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:

/* 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';

v1.2.1

2 years ago

v1.2.0

2 years ago

v1.1.0

3 years ago

v1.1.0 is a quick update to support ESLint 7. There shouldn't be any breaking changes.

v1.0.2

4 years ago

Adds support for ESLint v6 in the peer dependency.

v1.0.1

4 years ago

v1.0.0

4 years ago

v1.0 has been released! I've cleaned up the plugin a bit, added (some) typescript definitions to the plugin, and tweaked some configuration.

The guide for migrating from v0.14 to v1 can be found in the import-rules docs: order-imports. It should be a quick migration.

NPM: https://www.npmjs.com/package/eslint-plugin-import-helpers/v/1.0.0