Skip to content

Commit

Permalink
standard
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Oct 29, 2020
1 parent 5db3b49 commit 5c664f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions test/basic.js
Original file line number Diff line number Diff line change
@@ -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))
Expand Down
10 changes: 5 additions & 5 deletions test/validate-config.js
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit 5c664f2

Please sign in to comment.