eslint-plugin-es6-recommended

0.1.2 • Public • Published

eslint-plugin-es6-recommended

ESLint plugin to promote ES6 best practices.

Installation

npm install --save-dev eslint-plugin-es6-recommended

Usage

Add the following to your .eslintrc file:

"plugins": [
  "es6-recommended"
]

Rules

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

  • no-arguments - use rest parameters instead of arguments
  • prefer-for-of - use for-of instead of for, for-in, and Array.prototype.forEach

TODO:

  • prefer-class
  • prefer-default-params

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i eslint-plugin-es6-recommended

    Weekly Downloads

    458

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • mgtitimoli