@locker/eslint-plugin-unsafe-types
Version:
Detect usage of unsigned unsafe types.
55 lines (36 loc) • 1.33 kB
Markdown
# eslint-plugin-unsafe-types
Detect usage of unsigned unsafe types.
## Installation
You'll first need to install [ESLint](https://eslint.org/):
```sh
npm i eslint --save-dev
```
Next, install `eslint-plugin-unsafe-types`:
```sh
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:
```json
{
"plugins": [
"unsafe-types"
]
}
```
Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"unsafe-types/rule-name": 2
}
}
```
## Rules
<!-- begin auto-generated rules list -->
| Name | Description |
| :------------------------------------------------------------- | :-------------------------------------------------- |
| [unsafe-aura-globalEval](docs/rules/unsafe-aura-globalEval.md) | Disallow the use of unsigned `$A.util.globalEval()` |
| [unsafe-eval](docs/rules/unsafe-eval.md) | Disallow the use of unsigned `eval()` |
| [unsafe-implied-eval](docs/rules/unsafe-implied-eval.md) | Disallow the use of `eval()`-like methods |
<!-- end auto-generated rules list -->