no-shadow
禁止从外部作用域中声明的阴影变量进行变量声明.
🧱
This is an "extension" rule that replaces a core ESLint rule to work with TypeScript. See Rules > Extension Rules.
This rule extends the base no-shadow
rule from ESLint core. 它增加了对 TypeScript 的 this
参数和全局增强的支持,并增加了 TypeScript 功能的选项。
¥It adds support for TypeScript's this
parameters and global augmentation, and adds options for TypeScript features.