We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f10d8fc commit 60d3ed7Copy full SHA for 60d3ed7
rules/no-native.js
@@ -45,8 +45,16 @@ module.exports = {
45
return {
46
'Program:exit'() {
47
const scope = context.getScope()
48
+ const leftToBeResolved =
49
+ scope.implicit.left ||
50
+ /* istanbul ignore next
51
+ * Fixes https://github.com/xjamundx/eslint-plugin-promise/issues/205.
52
+ * The problem was that @typescript-eslint has a scope manager
53
+ * which has `leftToBeResolved` instead of the default `left`.
54
+ */
55
+ scope.implicit.leftToBeResolved
56
- scope.implicit.left.forEach((ref) => {
57
+ leftToBeResolved.forEach((ref) => {
58
if (ref.identifier.name !== 'Promise') {
59
return
60
}
0 commit comments