Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export async function handler(context: Context) {
const { schemaPath } = await context.getProjectConfig()
const exitCode = runner.run(process.stdout, process.stdin, process.stderr, [
'',
'',
schemaPath,
])
if (exitCode !== 0) {
throw new Error('Linting errors were found')
}
}