Skip to content

xjamundx/eslint-plugin-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATION WARNING

This functionality is better provided by: https://github.com/benmosher/eslint-plugin-import

I'd suggest using that module instad.


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

About

ESLint rules for JavaScript modules.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published