Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rajdee/eslint-plugin-declare-undef-vars

Eslint plugin that creates a list of undefined variables
https://github.com/rajdee/eslint-plugin-declare-undef-vars

Last synced: 24 days ago
JSON representation

Eslint plugin that creates a list of undefined variables

Awesome Lists containing this project

README

        

# eslint-plugin-declare-undef-vars

Get list of the undefined variables

## Installation

You'll first need to install [ESLint](https://eslint.org/):

```sh
npm i eslint --save-dev
```

Next, install `eslint-plugin-declare-undef-vars`:

```sh
npm install eslint-plugin-declare-undef-vars --save-dev
```

## Usage

Add `declare-undef-vars` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
"plugins": [
"declare-undef-vars"
]
}
```

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

```json
{
"rules": {
"declare-undef-vars/rule-name": 2
}
}
```

## Rules

TODO: Run eslint-doc-generator to generate the rules list.