# eslint-plugin-modules-newline

> Enforce placing import or export variables on a newline

Latest version **0.0.6** (published 2021-01-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-modules-newline
pnpm add eslint-plugin-modules-newline
yarn add eslint-plugin-modules-newline
bun add eslint-plugin-modules-newline
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2021-01-13 |
| First published | 2020-03-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Unpacked size | 19.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 24 |
| Author | Anton Antonov |
| Maintainers | gmsorrow |
| Keywords | eslint, eslintplugin, eslint-plugin, import, export, newline |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-modules-newline
- Repository: https://github.com/gmsorrow/eslint-plugin-modules-newline
- Homepage: https://github.com/gmsorrow/eslint-plugin-modules-newline#readme
- Issues: https://github.com/gmsorrow/eslint-plugin-modules-newline/issues
- npm.io page: https://npm.io/package/eslint-plugin-modules-newline

## Dependencies (1)

- [requireindex](https://npm.io/package/requireindex.md) ~1.1.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2021-01-13
- 0.0.5 — 2021-01-11
- 0.0.4 — 2020-06-06
- 0.0.3 — 2020-05-31
- 0.0.2 — 2020-03-30
- 0.0.1 — 2020-03-01

## README

# eslint-plugin-modules-newline

Eslint plugin to enforce placing import and export variables on separate lines

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ npm i eslint --save-dev
```
or 
```
$ yarn add eslint --dev
```

Next, install `eslint-plugin-modules-newline`:

```
$ npm install eslint-plugin-modules-newline --save-dev
```
or
```
$ yarn add eslint-plugin-modules-newline --dev
```

**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-modules-newline` globally.

## Usage

Add `eslint-plugin-modules-newline` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
    "plugins": [
        "modules-newline"
    ]
}
```


Then configure the rules you want to use under the rules section.

```json
{
    "rules": {
        "modules-newline/import-declaration-newline": "warn",
        "modules-newline/export-declaration-newline": "warn"
    }
}
```

## Supported Rules

* Enforce placing import variables on separate lines (import-declaration-newline)
* Enforce placing export variables on separate lines (export-declaration-newline)

## For maintainers
AST explorer - https://astexplorer.net/#/gist/b6093767261d6a5bce76043dcea24bec/5fe761308f41936beaa30cbe7aef3a6f0283e11d

---
_Source: https://npm.io/package/eslint-plugin-modules-newline · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
