@locker/eslint-plugin-unsafe-types

0.21.5 • Public • Published

eslint-plugin-unsafe-types

Detect usage of unsigned unsafe types.

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-unsafe-types:

npm install eslint-plugin-unsafe-types --save-dev

Usage

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

{
    "plugins": [
        "unsafe-types"
    ]
}

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

{
    "rules": {
        "unsafe-types/rule-name": 2
    }
}

Rules

Name Description
unsafe-aura-globalEval Disallow the use of unsigned $A.util.globalEval()
unsafe-eval Disallow the use of unsigned eval()
unsafe-implied-eval Disallow the use of eval()-like methods

Package Sidebar

Install

npm i @locker/eslint-plugin-unsafe-types

Weekly Downloads

2

Version

0.21.5

License

SEE LICENSE IN LICENSE.txt

Unpacked Size

66.4 kB

Total Files

13

Last publish

Collaborators

  • achabot
  • garychangsf
  • mjasso
  • caridy
  • jdalton
  • t.lau
  • dejang
  • rwaldron