Skip to content
ESLint plugin for ES5 users.
Branch: master
Clone or download
Latest commit fe406f5 Jun 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Revert "refactor: improve speed of es6 method rules" Jun 4, 2019
tests feat: make no-shorthand-properties fixable May 22, 2018
.editorconfig feat: initial commit Jan 3, 2017
.eslintrc.json test: lint project Jan 3, 2017
.gitignore chore: remove and ignore yarn.lock May 15, 2018
LICENSE docs: add package metadata Jan 3, 2017
README.md Merge pull request #22 from BearAlliance/docs Aug 12, 2018
circle.yml
package-lock.json 1.4.1 Jun 4, 2019
package.json

README.md

eslint-plugin-es5

CircleCI Cult Of Martians

ESLint plugin for ES5 users.

Why?

Sometimes someone doesn't want or can't to use Babel. Even if you support modern browsers or node.js, JS engines have bugs like broken block-scoping. Maybe you only want to forbid usage of for-of in your project.

If this concerns you, this plugin should help you.

Installation

npm install --save-dev eslint-plugin-es5

Usage

Add the plugin to your .eslintrc:

{
  "plugins": [
    "es5"
  ]
}

And then any of the rules listed below like this:

{
  "rules": {
    "es5/no-arrow-functions": "error"
  }
}

Also you can extend one of presets:

{
  "extends": [
    "eslint:recommended",
    "plugin:es5/no-es2015"
  ]
}

Available presets:

  • plugin:es5/no-es2015: Forbid ES2015 usage.
  • plugin:es5/no-es2016: Forbid ES2016 usage.

List of supported rules

License

MIT

You can’t perform that action at this time.