charlike
Version:
Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options
17 lines (12 loc) • 397 B
JavaScript
var eslint = require('eslint')
var test = require('tape')
test('load config in eslint to validate all rule syntax is correct', function (t) {
var CLIEngine = eslint.CLIEngine
var cli = new CLIEngine({
useEslintrc: false,
configFile: 'eslintrc.json'
})
var code = 'var foo = 1\nvar bar = function () {}\nbar(foo)\n'
t.equal(cli.executeOnText(code).errorCount, 0)
t.end()
})