Skip to content

Commit 78e88ad

Browse files
[autofix.ci] apply automated fixes
1 parent 9918e4c commit 78e88ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/oxlint/test/fixtures/sourceCode_scope_methods/files/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function topLevelFunction(param) {
55
const localConstant = topLevelConstant + param;
66
return function innerFunction() {
77
return localConstant + Math.PI;
8-
}
8+
};
99
}
1010

1111
export const topLevelExport = topLevelFunction(2);

apps/oxlint/test/fixtures/sourceCode_scope_methods/plugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ const rule: Rule = {
3737
const isGlobal = sourceCode.isGlobalReference(node);
3838
context.report({
3939
message: `isGlobalReference(${name}): ${isGlobal}`,
40-
node
40+
node,
4141
});
4242
},
4343
FunctionDeclaration(node) {
4444
const scope = sourceCode.getScope(node);
45-
let text = ""
45+
let text = '';
4646
text += `type: ${scope.type}\n`;
4747
text += `isStrict: ${scope.isStrict}\n`;
4848
text += `vars: [${scope.variables.map(v => v.name).join(', ')}]\n`;
@@ -51,7 +51,7 @@ const rule: Rule = {
5151

5252
context.report({
5353
message: `getScope(${node.id.name}): ${text}`,
54-
node
54+
node,
5555
});
5656
},
5757
};

0 commit comments

Comments
 (0)