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

@absqueued/eslint-newline-imports

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@absqueued/eslint-newline-imports

ESLint rule to enforce a newline for each property in a multiline import statement

  • 1.0.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-newline-imports

This ESLint rule ensures that each property in an import statement is placed on a new line.

Features

  • Forces a consistent style for multiline imports
  • Enhances readability of codebase
  • Ideal for large projects where maintaining a consistent coding style is critical

Installation

First, you'll need to install ESLint:

$ npm i eslint --save-dev

Next, install @absqueued/eslint-newline-imports:

$ npm install @absqueued/eslint-newline-imports --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install @absqueued/eslint-newline-imports globally.

Usage

Add @absqueued/eslint-newline-imports to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "@absqueued/eslint-newline-imports"
    ]
}

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

{
    "rules": {
        "@absqueued/eslint-newline-imports/newline-import": 2
    }
}

Supported Rules

newline-import: Enforces a new line for each property in an import statement.

Contributing

Contributions, issues and feature requests are welcome. Feel free to check issues page if you want to contribute.

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test

License

MIT © Shekhar K. Sharma

Give me a ⭐️ if this project helped you!

Follow me on Twitter.

Keywords

FAQs

Package last updated on 01 Aug 2023

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