import-sort-style-module

An import-sort style that groups and sorts by module

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

import-sort-style-module

A style for import-sort that is focused on modules.

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

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

// Modules from the Node.js "standard" library sorted by name
import {readFile, writeFile} from "fs";
import * as path from "path";

// Third-party modules sorted by name
import aa from "aa";
import bb from "bb";
import cc from "cc";

// First-party modules sorted by "relative depth" and then by name
import aaa from "../../aaa";
import bbb from "../../bbb";
import aaaa from "../aaaa";
import bbbb from "../bbbb";
import aaaaa from "./aaaaa";
import bbbbb from "./bbbbb";
版本列表
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