Closed hornta closed 5 years ago
Thank you for this proposal!
However, we cannot implement this without some change of ESLint core. And I think that no-redeclare
rule should do this because:
no-unused-vars
rule reports unused variables that /*globals*/
comments defined.I opened an issue: https://github.com/eslint/eslint/issues/11370
Please track that issue.
We do have a lot of / globals window / or / globals require / in ourcode despite those being recognized as globals from eslints env and globals config. I suggest having a rule that reports on already existing globals in comments.