Goldcoders Script

const report = cli.executeOnText(code, 'path/to/your/file.js', true);

const code = fs.readFileSync('path/to/your/file.js', 'utf8'); goldcoders script

const cli = new eslint.CLIEngine({ parserOptions: { ecmaVersion: 2020, // You can change this to any supported ECMAScript version }, }); const report = cli