Socket
Book a DemoInstallSign in
Socket

@locker/eslint-plugin-unsafe-types

Package Overview
Dependencies
Maintainers
8
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@locker/eslint-plugin-unsafe-types

Detect usage of unsigned unsafe types.

latest
Source
npmnpm
Version
0.26.2
Version published
Weekly downloads
102
684.62%
Maintainers
8
Weekly downloads
 
Created
Source

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

Keywords

eslint

FAQs

Package last updated on 03 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts