diff --git a/test/basic.js b/test/basic.js index 97e8b2b5..6811375d 100644 --- a/test/basic.js +++ b/test/basic.js @@ -1,5 +1,5 @@ -var config = require('../') -var test = require('tape') +const config = require('../') +const test = require('tape') test('test basic properties of config', function (t) { t.ok(isObject(config.parserOptions)) diff --git a/test/validate-config.js b/test/validate-config.js index b72e625c..39c7ce98 100644 --- a/test/validate-config.js +++ b/test/validate-config.js @@ -1,15 +1,15 @@ -var eslint = require('eslint') -var test = require('tape') +const eslint = require('eslint') +const test = require('tape') test('load config in eslint to validate all rule syntax is correct', function (t) { - var CLIEngine = eslint.CLIEngine + const CLIEngine = eslint.CLIEngine - var cli = new CLIEngine({ + const cli = new CLIEngine({ useEslintrc: false, configFile: 'eslintrc.json' }) - var code = 'var foo = 1\nvar bar = function () {}\nbar(foo)\n' + const code = 'var foo = 1\nvar bar = function () {}\nbar(foo)\n' t.equal(cli.executeOnText(code).errorCount, 0) t.end()