import-sort-style-module-compact
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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";
import "./a";
import "./c";
import "./b";
 
// Third-party modules sorted by name
import {readFile, writeFile} from "fs";
import * as path from "path";
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";

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.01,627latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.01,627
1.0.10
1.0.00

Package Sidebar

Install

npm i import-sort-style-module-compact

Weekly Downloads

1,627

Version

2.0.0

License

ISC

Last publish

Collaborators

  • amatiasq