We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 660b20d commit 0c4e721Copy full SHA for 0c4e721
lib/rules/async-server-action.js
@@ -39,7 +39,7 @@ module.exports = {
39
':function'(node) {
40
currentFunction = node;
41
},
42
- ':function[async=false]>BlockStatement>ExpressionStatement:first-child[expression.value="use server"]'() {
+ ':function[async=false]>BlockStatement>:first-child[expression.value="use server"]'() {
43
report(context, messages.asyncServerAction, 'asyncServerAction', {
44
node: currentFunction,
45
fix(fixer) {
0 commit comments