How to use the babel-eslint.parseForESLint function in babel-eslint

To help you get started, we’ve selected a few babel-eslint examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ember-cli / eslint-plugin-ember / tests / helpers / faux-context.js View on Github external
constructor(code, filename = '', report = () => {}) {
    const { ast } = babelEslint.parseForESLint(code);

    this.ast = ast;
    this.filename = filename;
    this.report = report;
  }