iss
import-sort-style-module
npm i import-sort-style-module
iss

import-sort-style-module

Sort ES2015 (aka ES6) imports. Both JavaScript and TypeScript are supported.

by Renke Grunwald

6.0.0 (see all)License:ISCTypeScript:Built-In
npm i 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";
VersionTagPublished
6.0.0
latest
4yrs ago
2.4.0-alpha.59e19703
canary
6yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate