Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

This package has been deprecated

Author message:

Use eslint-plugin-import

eslint-plugin-modules

1.1.1 • Public • Published

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

Install

npm i eslint-plugin-modules

DownloadsWeekly Downloads

72

Version

1.1.1

License

MIT

Last publish

Collaborators

  • avatar
  • avatar