File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
apps/oxlint/test/fixtures/sourceCode_scope_methods Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
1111export const topLevelExport = topLevelFunction ( 2 ) ;
Original file line number Diff line number Diff 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 } ;
You can’t perform that action at this time.
0 commit comments