From 75978c8513059deff2f9f15d3e77e537c6e14dd1 Mon Sep 17 00:00:00 2001 From: Grace Park Date: Mon, 6 Jan 2025 16:29:26 +0000 Subject: [PATCH] run prettier --- lib/rules/async-currenttarget.js | 2 +- lib/rules/filenames-match-regex.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rules/async-currenttarget.js b/lib/rules/async-currenttarget.js index 9828e17d..a9c46999 100644 --- a/lib/rules/async-currenttarget.js +++ b/lib/rules/async-currenttarget.js @@ -11,7 +11,7 @@ module.exports = { create(context) { const scopeDidWait = new WeakSet() const sourceCode = context.sourceCode ?? context.getSourceCode() - + return { AwaitExpression(node) { scopeDidWait.add(sourceCode.getScope ? sourceCode.getScope(node) : context.getScope()) diff --git a/lib/rules/filenames-match-regex.js b/lib/rules/filenames-match-regex.js index 8e3ea341..beec42d2 100644 --- a/lib/rules/filenames-match-regex.js +++ b/lib/rules/filenames-match-regex.js @@ -29,7 +29,7 @@ module.exports = { const defaultRegexp = /^[a-z0-9-]+(.[a-z0-9-]+)?$/ const conventionRegexp = context.options[0] ? new RegExp(context.options[0]) : defaultRegexp const ignoreExporting = context.options[1] ? context.options[1] : false - + return { Program(node) { const filename = context.filename ?? context.getFilename()