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 3faee71 commit 35452c9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! eslint-config-standard-react. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
module.exports = Object.assign({}, require('./eslintrc.json'), {
extends: [ require.resolve('eslint-config-standard-jsx') ]
extends: [require.resolve('eslint-config-standard-jsx')]
})
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 35452c9

Please sign in to comment.