# 变量

## 目录

1. [no-delete-var](#no-delete-var)
2. [no-restricted-globals](#no-restricted-globals)
3. [no-shadow](#no-shadow)
4. [no-shadow-restricted-names](#no-shadow-restricted-names)
5. [no-undef](#no-undef)
6. [no-undef-init](#no-undef-init)
7. [no-unused-vars](#no-unused-vars)
8. [no-use-before-define](#no-use-before-define)

<a id='no-delete-var'></a>
## no-delete-var

- 规则含义

  禁止delete声明变量

[eslint](https://eslint.org/docs/rules/no-delete-var)

**[⬆ 回到目录](#目录)**

<a id='no-restricted-globals'></a>
## no-restricted-globals

- 规则含义

  禁止使用容易混淆的全局变量

[eslint](https://eslint.org/docs/rules/no-restricted-globals)

**[⬆ 回到目录](#目录)**

<a id='no-shadow'></a>
## no-shadow

- 规则含义

  不允许声明一个已经在外部作用域声明的同名变量

[eslint](https://eslint.org/docs/rules/no-shadow)

**[⬆ 回到目录](#目录)**

<a id='no-shadow-restricted-names'></a>
## no-shadow-restricted-names

- 规则含义

  不允许定义和全局变量同名的变量

[eslint](https://eslint.org/docs/rules/no-shadow-restricted-names)

**[⬆ 回到目录](#目录)**

<a id='no-undef'></a>
## no-undef

- 规则含义

  禁止使用未声明的变量

[eslint](https://eslint.org/docs/rules/no-undef)

**[⬆ 回到目录](#目录)**

<a id='no-undef-init'></a>
## no-undef-init

- 规则含义

  禁止初始化为未定义

[eslint](https://eslint.org/docs/rules/no-undef-init)

**[⬆ 回到目录](#目录)**

<a id='no-unused-vars'></a>
## no-unused-vars

- 规则含义

  禁止出现未使用的变量

[eslint](https://eslint.org/docs/rules/no-unused-vars)

**[⬆ 回到目录](#目录)**

<a id='no-use-before-define'></a>
## no-use-before-define

- 规则含义

  不允许在定义变量之前使用变量

[eslint](https://eslint.org/docs/rules/no-use-before-define)

**[⬆ 回到目录](#目录)**

