Fix linting error caused by redefinition of Promise