Socket
Socket
Sign inDemoInstall

eslint-plugin-modules

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

eslint-plugin-modules

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

    1.1.1latest
    GitHub
    npm

Version published
Maintainers
1
Weekly downloads
303
increased by5.94%

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

Last updated on 13 Oct 2015

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the 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