I have defined a writable global variable, AS
, in .eslintrc.
AS
is only declared once in the codebase.
ESLint is throwing the following no-redeclare
error for the single declaration of the global variable:
Error - 'AS' is already defined as a built-in global variable. (no-redeclare)
Why is ESLint throwing a no-redeclare
error when the variable is only declared once?
Is there a way to disable this automatically instead of manually disabling the line in the source file?