@so1ve/eslint-plugin 0.108.1 → 0.108.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -507,16 +507,16 @@ const useAsyncWithAwait = createEslintRule({
|
|
|
507
507
|
function setupNode(node) {
|
|
508
508
|
functionNodeScopeStack.push(node);
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function clearNode() {
|
|
511
511
|
functionNodeScopeStack.pop();
|
|
512
512
|
}
|
|
513
513
|
return {
|
|
514
514
|
"FunctionExpression": setupNode,
|
|
515
|
-
"FunctionExpression:exit":
|
|
515
|
+
"FunctionExpression:exit": clearNode,
|
|
516
516
|
"FunctionDeclaration": setupNode,
|
|
517
|
-
"FunctionDeclaration:exit":
|
|
517
|
+
"FunctionDeclaration:exit": clearNode,
|
|
518
518
|
"ArrowFunctionExpression": setupNode,
|
|
519
|
-
"ArrowFunctionExpression:exit":
|
|
519
|
+
"ArrowFunctionExpression:exit": clearNode,
|
|
520
520
|
AwaitExpression() {
|
|
521
521
|
const closestFunctionNode = functionNodeScopeStack[functionNodeScopeStack.length - 1];
|
|
522
522
|
if (!closestFunctionNode || closestFunctionNode.async) {
|
package/dist/index.mjs
CHANGED
|
@@ -505,16 +505,16 @@ const useAsyncWithAwait = createEslintRule({
|
|
|
505
505
|
function setupNode(node) {
|
|
506
506
|
functionNodeScopeStack.push(node);
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function clearNode() {
|
|
509
509
|
functionNodeScopeStack.pop();
|
|
510
510
|
}
|
|
511
511
|
return {
|
|
512
512
|
"FunctionExpression": setupNode,
|
|
513
|
-
"FunctionExpression:exit":
|
|
513
|
+
"FunctionExpression:exit": clearNode,
|
|
514
514
|
"FunctionDeclaration": setupNode,
|
|
515
|
-
"FunctionDeclaration:exit":
|
|
515
|
+
"FunctionDeclaration:exit": clearNode,
|
|
516
516
|
"ArrowFunctionExpression": setupNode,
|
|
517
|
-
"ArrowFunctionExpression:exit":
|
|
517
|
+
"ArrowFunctionExpression:exit": clearNode,
|
|
518
518
|
AwaitExpression() {
|
|
519
519
|
const closestFunctionNode = functionNodeScopeStack[functionNodeScopeStack.length - 1];
|
|
520
520
|
if (!closestFunctionNode || closestFunctionNode.async) {
|