eslint-plugin-modules-newline
Enforce placing import or export variables on a newline
Last updated 5 years ago by gmsorrow .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-plugin-modules-newline 
SYNC missed versions from official npm registry.

eslint-plugin-modules-newline

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

Installation

You'll first need to install ESLint:

$ 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:

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

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

{
    "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

Current Tags

  • 0.0.6                                ...           latest (5 years ago)

6 Versions

  • 0.0.6                                ...           5 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 5
Last Month 6
Dependencies (1)
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |