Thanks to visit codestin.com Credit goes to github.com
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 cb2361e commit 75978c8Copy full SHA for 75978c8
lib/rules/async-currenttarget.js
@@ -11,7 +11,7 @@ module.exports = {
11
create(context) {
12
const scopeDidWait = new WeakSet()
13
const sourceCode = context.sourceCode ?? context.getSourceCode()
14
-
+
15
return {
16
AwaitExpression(node) {
17
scopeDidWait.add(sourceCode.getScope ? sourceCode.getScope(node) : context.getScope())
lib/rules/filenames-match-regex.js
@@ -29,7 +29,7 @@ module.exports = {
29
const defaultRegexp = /^[a-z0-9-]+(.[a-z0-9-]+)?$/
30
const conventionRegexp = context.options[0] ? new RegExp(context.options[0]) : defaultRegexp
31
const ignoreExporting = context.options[1] ? context.options[1] : false
32
33
34
Program(node) {
35
const filename = context.filename ?? context.getFilename()
0 commit comments