eslint:'baseUrl' is never reassigned. Use 'const' instead

Posted May 27, 20201 min read

This error means that the variable declared using the let keyword is detected, the variable is never re-allocated after the initial allocation, and let is replaced with const to reduce cognitive load and improve maintainability. If you want to turn off this rule, write this in the eslint configuration file:


Copy code
Note:tslint can also be closed like this