This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

eslint-plugin-asmjs

0.0.1 • Public • Published

eslint-plugin-asmjs

asm.js validation for ESLint

asm.js has performance benefits over vanilla JS in many browsers. However, invalid asm.js code may be interpreted as normal JS, causing a hard-to-identify deoptimization. This helps identify those cases in hand-written asm.js code that may be intertwined with your normal JS.

It uses the

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-asmjs:

$ npm install eslint-plugin-asmjs --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-asmjs globally.

Usage

Add asmjs to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "asmjs"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "asmjs/asmjs": 2
    }
}

Supported Rules

Known Limitations

  • The official validator has no error recovery, so this only returns one error at a time.
  • Mixing this rule with certain other eslint rules, such as no-bitwise may cause conflicts.

Package Sidebar

Install

npm i eslint-plugin-asmjs

Weekly Downloads

1

Version

0.0.1

License

BSD-2-Clause

Last publish

Collaborators

  • bgw