Socket
Socket
Sign inDemoInstall

@putout/plugin-declare-imports-first

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @putout/plugin-declare-imports-first

🐊Putout plugin adds ability to declare imports first


Version published
Weekly downloads
4.4K
increased by5.11%
Maintainers
1
Install size
5.16 kB
Created
Weekly downloads
 

Readme

Source

@putout/plugin-declare-imports-first NPM version

The static import declaration is used to import read-only live bindings which are exported by another module.

(c) MDN

🐊Putout plugin adds ability to declare imports first.

Check out in 🐊Putout Editor.

Install

npm i @putout/plugin-declare-imports-first

Rule

{
    "rules": {
        "declare-imports-first": "on"
    }
}

❌ Example of incorrect code

const [arg] = process.argv;
import esbuild from 'esbuild';

✅ Example of correct code

import esbuild from 'esbuild';
const [arg] = process.argv;

License

MIT

Keywords

FAQs

Last updated on 16 Aug 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc