UNPKG

@putout/eslint

Version:

Wrapper that simplifies ESLint API and makes it compatible with 🐊Putout

16 lines (13 loc) 436 B
const MESSAGES = [ `Parsing error: Cannot use keyword 'await' outside an async function`, `Parsing error: The keyword 'yield' is reserved`, `Parsing error: Unexpected reserved word 'await'`, `Parsing error: Unexpected reserved word 'yield'`, ]; export const isIgnored = (message) => { for (const current of MESSAGES) { if (message.includes(current)) return true; } return false; };