Code Monkey home page Code Monkey logo

eslint-plugin-native-ie's Introduction

eslint-plugin-native-ie

npm version

This is a plugin for eslint that checks the grammar of es6, which does not work with Internet explorer.

Example

package.json

{
...
  "devDependencies": {
    "eslint": "^8.1.0",
    "eslint-plugin-native-ie": "^0.1.0"
  },
...
}

.eslitrc.json (for ie11)

{
  "extends": ["plugin:native-ie/ie11"]
}

.eslitrc.json (for ie10)

{
  "extends": ["plugin:native-ie/ie10"]
}

Rules

Rule IE11 IE10 Disallowed grammer example
no-default-function-parameters
function fn(param="default") {}
no-rest-parameters
function fn(...rest) {}
no-spread-syntax-for-iterable-objects
var a = [...[]];
no-object-literal-extensions
var o = { [foo]: false, bar, hoge() {}, }
no-for-of-loops
for (var _ of {}) {}
no-octal-and-binary-literals
var o = 0o0755; var b = 0b0010;
no-template-literals
var s = `hello ${name}`:
no-regexp-y-and-u-flags
var y = /test/y; var u = /test/u;
no-destructing
var [a, b, c] = [1, 2, 3];
no-unicode-code-point-escapes
var u = "\u{1f4a9}";
no-new-target
function() { new.target === C }
no-const -
const c = null;
no-let -
let l = null;
no-const-in-for-in-loop -
for (const _ in {}) {}
no-let-in-for-in-loop -
for (let _ in {}) {}
no-arrow-functions
var fn = () => {};
no-class
class C {}
no-super
class C { constructor() {super.foo()} }
no-generators
function *g() {}

License

MIT

Author

yskszk63

eslint-plugin-native-ie's People

Contributors

dependabot[bot] avatar yskszk63 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.