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

@putout/plugin-declare-imports-first

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/plugin-declare-imports-first

🐊Putout plugin adds ability to declare imports first

  • 2.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.5K
decreased by-16.84%
Maintainers
0
Weekly downloads
 
Created
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. For CommonJS use nodejs/declare-after-require.

Check out in 🐊Putout Editor. Merged with @putout/plugin-esm.

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

Package last updated on 22 Dec 2024

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