Skip to content

amatiasq/import-sort-style-module-compact

Repository files navigation

import-sort-style-module-compact

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

// 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";

About

Compact version of sort-imports

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published