blob: b72e625c52a156e0f9c0ab6a3ae7f3a09e1594e2 [file] [log] [blame]
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()
})