You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

eslint-plugin-modules

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-modules

ESLint rules for JavaScript modules (amd, es6, cjs, etc)


Version published
Weekly downloads
57
decreased by-31.33%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

eslint-plugin-modules

ESLint rules for JavaScript modules.

Installation

npm install --save-dev eslint-plugin-modules

Usage

Add the following to your .eslintrc file:

"plugins": [
  "modules"
]

Rules

All of these rules have to do with JavaScript modules in one way or another.

  • no-define - avoid AMD style define()
  • no-cjs - prefer es6 modules to CJS style require()
  • no-exports-typo - avoid typos in your module.exports
  • no-mix-default-named - disallow using both named and default es6 exports

Keywords

FAQs

Package last updated on 13 Oct 2015

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc