New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-modules-newline

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-modules-newline

Enforce placing import or export variables on a newline

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 13 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc