# import-sort-style-module-relative-aliases

> An import-sort style that groups and sorts by module with additional relative aliases whitelist

Latest version **0.0.5** (published 2017-11-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install import-sort-style-module-relative-aliases
pnpm add import-sort-style-module-relative-aliases
yarn add import-sort-style-module-relative-aliases
bun add import-sort-style-module-relative-aliases
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2017-11-07 |
| First published | 2017-03-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Fernando Maia |
| Maintainers | fsmaia |

## Links

- npm: https://www.npmjs.com/package/import-sort-style-module-relative-aliases
- Repository: https://github.com/renke/import-sort
- Homepage: https://github.com/renke/import-sort#readme
- Issues: https://github.com/renke/import-sort/issues
- npm.io page: https://npm.io/package/import-sort-style-module-relative-aliases

## Recent versions

- 0.0.5 (latest) — 2017-11-07
- 0.0.4 — 2017-07-31
- 0.0.3 — 2017-07-31
- 0.0.2 — 2017-03-20
- 0.0.1 — 2017-03-17

## README

# import-sort-style-module

A style for [import-sort](https://github.com/renke/import-sort) that is focused
on modules. It intents to receive additional configuration to support relative aliases whitelist (for example, to use with Webpack). So far it isn't possible to receive configuration (**help wanted**), and for now it just has a common set of React aliases, as following:
- "actions/"
- "components/"
- "constants/"
- "containers/"
- "decorators/"
- "hocs/"
- "layouts/"
- "middlewares/"
- "reducers/"
- "selectors/"
- "services/"
- "style/"
- "stores/"
- "utils/"

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

---
_Source: https://npm.io/package/import-sort-style-module-relative-aliases · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
