npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

@locker/eslint-plugin-unsafe-types

0.26.2

@mjasso

npmHomeRepoSnykSocket
Downloads:2
$ npm install @locker/eslint-plugin-unsafe-types
DailyWeeklyMonthlyYearly

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

NameDescription
unsafe-aura-globalEvalDisallow the use of unsigned $A.util.globalEval()
unsafe-evalDisallow the use of unsigned eval()
unsafe-implied-evalDisallow the use of eval()-like methods