refactor: Introduce explicit-member-accessibility lint rule (#12325)

This commit is contained in:
Iván Ovejero
2024-12-20 11:44:01 +01:00
committed by GitHub
parent e5587ff11f
commit 95db031aa4
27 changed files with 59 additions and 56 deletions

View File

@@ -21,7 +21,7 @@ export class BuiltInsParser {
/**
* Parses which built-in variables are accessed in the given code
*/
public parseUsedBuiltIns(code: string): Result<BuiltInsParserState, Error> {
parseUsedBuiltIns(code: string): Result<BuiltInsParserState, Error> {
return toResult(() => {
const wrappedCode = `async function VmCodeWrapper() { ${code} }`;
const ast = parse(wrappedCode, { ecmaVersion: 2025, sourceType: 'module' });