# import-sort-style-ralouphie

> An import-sort style

Latest version **7.0.0** (published 2020-02-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install import-sort-style-ralouphie
pnpm add import-sort-style-ralouphie
yarn add import-sort-style-ralouphie
bun add import-sort-style-ralouphie
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 7.0.0 |
| Published | 2020-02-05 |
| First published | 2019-03-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ralph Khattar |
| Maintainers | ralouphie |

## Links

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

## Recent versions

- 7.0.0 (latest) — 2020-02-05
- 6.0.1 — 2019-03-22
- 6.0.0 — 2019-03-22

## README

# import-sort-style-ralouphie

Style for [import-sort](https://github.com/renke/import-sort).

Install:

```
npm install -save-dev import-sort-style-ralouphie
```

Example of sorting:

```js
// Modules from the Node.js "standard" library sorted by name module name.
import { readFile, writeFile } from 'fs';
import * as path from 'path';
// Installed NPM packages, sorted by module name (special packages first).
import { ... } from 'a';
import b from 'b';
// Scoped modules (@-prefixed), sorted by module name.
import foo from '@a/foo';
import { bar, ... } from '@b/bar';
// All relative imports sorted by dot count, then module name.
import x from '../../baz/a';
import z from './baz/b';
import y from './baz/c';
```

You can setup special packages to appear first in the NPM packages section by setting `importSortConfig.specialList` in your `package.json`, for example:

```json
{
  "importSortConfig": {
    "specialList": [
      "react"
    ]
  }
}
```

The above will always place the `react` import just after Node.js modules.

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