@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 CHANGED
@@ -507,16 +507,16 @@ const useAsyncWithAwait = createEslintRule({
507
507
  function setupNode(node) {
508
508
  functionNodeScopeStack.push(node);
509
509
  }
510
- function cleanupNode() {
510
+ function clearNode() {
511
511
  functionNodeScopeStack.pop();
512
512
  }
513
513
  return {
514
514
  "FunctionExpression": setupNode,
515
- "FunctionExpression:exit": cleanupNode,
515
+ "FunctionExpression:exit": clearNode,
516
516
  "FunctionDeclaration": setupNode,
517
- "FunctionDeclaration:exit": cleanupNode,
517
+ "FunctionDeclaration:exit": clearNode,
518
518
  "ArrowFunctionExpression": setupNode,
519
- "ArrowFunctionExpression:exit": cleanupNode,
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 cleanupNode() {
508
+ function clearNode() {
509
509
  functionNodeScopeStack.pop();
510
510
  }
511
511
  return {
512
512
  "FunctionExpression": setupNode,
513
- "FunctionExpression:exit": cleanupNode,
513
+ "FunctionExpression:exit": clearNode,
514
514
  "FunctionDeclaration": setupNode,
515
- "FunctionDeclaration:exit": cleanupNode,
515
+ "FunctionDeclaration:exit": clearNode,
516
516
  "ArrowFunctionExpression": setupNode,
517
- "ArrowFunctionExpression:exit": cleanupNode,
517
+ "ArrowFunctionExpression:exit": clearNode,
518
518
  AwaitExpression() {
519
519
  const closestFunctionNode = functionNodeScopeStack[functionNodeScopeStack.length - 1];
520
520
  if (!closestFunctionNode || closestFunctionNode.async) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@so1ve/eslint-plugin",
3
- "version": "0.108.1",
3
+ "version": "0.108.2",
4
4
  "author": "Ray <i@mk1.io> (https://github.com/so1ve/)",
5
5
  "keywords": [
6
6
  "eslint",