Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clark/eslint-config-node-order-imports

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clark/eslint-config-node-order-imports

Sorts ES module imports for Node.js projects

  • 1.12.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
179
increased by61.26%
Maintainers
3
Weekly downloads
 
Created
Source

@clark/eslint-config-node-order-imports

BuildStatus code style: prettier dependencies devDependencies lerna CLARK Open Source

Sorts ES module imports for Node.js projects

Installation

If you use the @clark/eslint-config-node or @clark/eslint-config-node-typescript, you don't need to do anything, as they already include this config.

If you don't like our config and just want to order your imports while using your own eslint config, just install this package and add it to extends.

yarn add -D eslint @clark/eslint-config-node-order-imports
module.exports = {
  extends: ['@clark/node-order-imports'],
  rules: {
    // your rules here
  }
};

What does it do?

This is a distributable standalone config for eslint-plugin-import-helpers that orders the ES module imports. The order is a s follows:

  1. Node standard modules: fs, http, ...
  2. Named modules, e.g. installed from npm: lodash, dotenv/register
  3. Absolute paths (very uncommon): /foo/bar
  4. Parent modules: ../foo
  5. Sibling modules: ./bar
  6. Index: ./

Keywords

FAQs

Package last updated on 09 Sep 2019

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