You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I dig a little bit, this line , scopeManager.acquire(node) is null, so it will use globalScope. If I change to scopeManager.globalScope.childScopes[0] it will work.
The text was updated successfully, but these errors were encountered:
getRuleInfo
seems not working if rule write in this waySee https://github.com/sindresorhus/eslint-plugin-unicorn/blob/e7e25b82526e42970043c39a512cbdfb889b7cb7/rules/better-regex.js#L107
I dig a little bit, this line ,
scopeManager.acquire(node)
is null, so it will useglobalScope
. If I change toscopeManager.globalScope.childScopes[0]
it will work.The text was updated successfully, but these errors were encountered: