import-sort-style-eslint

An import-sort style that is compatible with ESLint's sort-imports rule

ISC 17 个版本
安装
npm install import-sort-style-eslint
yarn add import-sort-style-eslint
pnpm add import-sort-style-eslint
bun add import-sort-style-eslint
README

import-sort-style-eslint

A style for import-sort that conforms to the ESLint rule sort-imports.

// Modules with side effects (not sorted because order may matter)
import "a";
import "c";
import "b";

// Modules with only namespace member sorted by member
import * as aa from "aa";
import * as bb from "bb";

// Modules with multiple members sorted by first member
import aaa, {bbb} from "aaa";
import {ccc, ddd} from "ccc";
import eee, * as fff from "eee";

// Modules with single member sorted by member
import aaaa from "aaaa";
import {bbbb} from "bbbb";

版本列表
6.0.0 2019-02-16
5.0.0 2018-06-24
4.2.0 2017-12-03
4.1.0 2017-12-02
4.0.0 2017-12-02
3.0.0 2017-06-20
2.4.0 2016-10-06
2.3.0 2016-10-05
2.0.14 2016-10-03
2.0.9 2016-10-02
2.0.6 2016-10-02
2.0.4 2016-10-02
2.0.3 2016-10-02
2.0.1 2016-10-02
2.0.0 2016-10-02