How to use the eslint-module-utils/parse.bind function in eslint-module-utils

To help you get started, we’ve selected a few eslint-module-utils 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 benmosher / eslint-plugin-import / tests / src / core / parse.js View on Github external
it('throws on context == null', function () {
    expect(parse.bind(null, path, content, null)).to.throw(Error)
  })
github benmosher / eslint-plugin-import / tests / src / core / parse.js View on Github external
it('throws on unable to resolve parserPath', function () {
    expect(parse.bind(null, path, content, { settings: {}, parserPath: null })).to.throw(Error)
  })