All Projects → nkt → eslint-plugin-es5

nkt / eslint-plugin-es5

Licence: MIT License
ESLint plugin for ES5 users.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to eslint-plugin-es5

html-eslint
ESLint plugin for linting HTML
Stars: ✭ 72 (+38.46%)
Mutual labels:  eslint-plugin
eslint-plugin-total-functions
An ESLint plugin to enforce the use of total functions (and prevent the use of partial functions) in TypeScript.
Stars: ✭ 72 (+38.46%)
Mutual labels:  eslint-plugin
eslint-plugin-expect-type
ESLint plugin with $ExpectType, $ExpectError, and $ExpectTypeSnapshot type assertions
Stars: ✭ 27 (-48.08%)
Mutual labels:  eslint-plugin
eslint-plugin-editorconfig
An ESLint plugin to enforce EditorConfig rules
Stars: ✭ 22 (-57.69%)
Mutual labels:  eslint-plugin
eslint-plugin-ban
Ban some methods and functions
Stars: ✭ 23 (-55.77%)
Mutual labels:  eslint-plugin
eslint-plugin-strict-vue
Vue eslint plugin with rules to make you code stricter: enforce jsdoc, restrict rootGetters, rootState and more.
Stars: ✭ 28 (-46.15%)
Mutual labels:  eslint-plugin
eslint-plugin-no-secrets
An eslint plugin to find strings that might be secrets/credentials
Stars: ✭ 93 (+78.85%)
Mutual labels:  eslint-plugin
eslint-plugin-sql
SQL linting rules for ESLint.
Stars: ✭ 56 (+7.69%)
Mutual labels:  eslint-plugin
eslint-plugin-layout-shift
ESLint plugin to force responsive media elements to set the width/height attributes
Stars: ✭ 15 (-71.15%)
Mutual labels:  eslint-plugin
eslint-plugin-lodash-template
ESLint plugin for John Resig-style micro template, Lodash's template, Underscore's template and EJS.
Stars: ✭ 15 (-71.15%)
Mutual labels:  eslint-plugin
eslint-plugin-disable
Disable ESLint plugins using file path patterns and inline comments
Stars: ✭ 51 (-1.92%)
Mutual labels:  eslint-plugin
eslint-plugin-react-hook-form
ESLint plugin for react-hook-form
Stars: ✭ 27 (-48.08%)
Mutual labels:  eslint-plugin
eslint-plugin-decorator-position
ESLint plugin for enforcing decorator position
Stars: ✭ 32 (-38.46%)
Mutual labels:  eslint-plugin
eslint-plugin-rulesdir
An ESLint plugin to load project-specific ESLint rules
Stars: ✭ 28 (-46.15%)
Mutual labels:  eslint-plugin
eslint-plugin
😎 基于 @lint-md,提供 eslint-plugin,让 lint-md 玩家在 IDE 中得到愉悦的文档编写体验。
Stars: ✭ 22 (-57.69%)
Mutual labels:  eslint-plugin
eslint-plugin-pug
An ESLint plugin for linting inline scripts in Pug files
Stars: ✭ 17 (-67.31%)
Mutual labels:  eslint-plugin
eslint-plugin
autofix some errors reported by eslint rules.
Stars: ✭ 74 (+42.31%)
Mutual labels:  eslint-plugin
eslint-plugin
Enforcing best practices for Effector
Stars: ✭ 69 (+32.69%)
Mutual labels:  eslint-plugin
eslint-plugin-qunit
ESLint plugin containing rules useful for QUnit tests.
Stars: ✭ 26 (-50%)
Mutual labels:  eslint-plugin
eslint-plugin-nestjs
POC. ESLint rules for nestjs framework
Stars: ✭ 30 (-42.31%)
Mutual labels:  eslint-plugin

eslint-plugin-es5

Build Status Cult Of Martians

ESLint plugin for ES5 users.

Why?

Sometimes someone doesn't want to or can't 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

  • es5/no-es6-methods Forbid ES2015 methods for Array and String
  • es5/no-es6-static-methods Forbid ES2015 static methods for Array, Math, Number, and Object. You can enable specific functions: "es5/no-es6-static-methods": ["error", { exceptMethods: ["Math.imul"] }]
  • es5/no-arrow-functions🔧: Forbid arrow-functions.
  • es5/no-binary-and-octal-literals🔧: Forbid binary and octal literals.
  • es5/no-block-scoping: Forbid let and const declarations. You can enable them using options: "es5/no-block-scoping": ["error", { "let": true }]
  • es5/no-classes: Forbid ES2015 classes.
  • es5/no-computed-properties: Forbid computed properties.
  • es5/no-default-parameters: Forbid default parameters.
  • es5/no-destructuring🔧: Forbid destructuring statements.
  • es5/no-exponentiation-operator: Forbid exponentiation operator a ** b usage.
  • es5/no-for-of: Forbid for-of statements.
  • es5/no-generators: Forbid generators usage.
  • es5/no-modules: Forbid ES2015 modules usage.
  • es5/no-object-super: Forbid super/super.foo() calls.
  • es5/no-rest-parameters: Forbid rest parameters.
  • es5/no-shorthand-properties🔧: Forbid shorthand properties.
  • es5/no-spread🔧: Forbid ...spread expressions.
  • es5/no-template-literals🔧: Forbid template strings usage.
  • es5/no-typeof-symbol: Forbid typeof foo === 'symbol' checks.
  • es5/no-unicode-code-point-escape🔧: Forbid Unicode support in code point escape.
  • es5/no-unicode-regex: Forbid Unicode support in RegExp.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].