Skip to content

Commit

Permalink
Fixes for eslint 1
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Aug 3, 2015
1 parent 1e232d9 commit c0d1151
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 55 deletions.
18 changes: 9 additions & 9 deletions tests/array-bracket-even-spacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
// Requirements
// ------------------------------------------------------------------------------

var eslint = require('eslint')
var ESLintTester = require('eslint-tester')
var RuleTester = require('eslint').RuleTester
var rule = require('../rules/array-bracket-even-spacing')
var ecma = { destructuring: true, modules: true }

// ------------------------------------------------------------------------------
// Tests
// ------------------------------------------------------------------------------

var eslintTester = new ESLintTester(eslint.linter)
eslintTester.addRuleTest('rules/array-bracket-even-spacing', {
var ruleTester = new RuleTester()
ruleTester.run('array-bracket-even-spacing', rule, {
valid: [

// either
Expand Down Expand Up @@ -174,7 +174,7 @@ eslintTester.addRuleTest('rules/array-bracket-even-spacing', {
message: 'Expected consistent spacing',
type: 'ArrayPattern',
line: 1,
column: 4
column: 5
}
]

Expand All @@ -188,7 +188,7 @@ eslintTester.addRuleTest('rules/array-bracket-even-spacing', {
message: 'Expected consistent spacing',
type: 'ArrayPattern',
line: 1,
column: 4
column: 5
}
]

Expand All @@ -202,7 +202,7 @@ eslintTester.addRuleTest('rules/array-bracket-even-spacing', {
message: 'Expected consistent spacing',
type: 'ArrayPattern',
line: 1,
column: 4
column: 5
}
]
},
Expand All @@ -215,7 +215,7 @@ eslintTester.addRuleTest('rules/array-bracket-even-spacing', {
message: 'Expected consistent spacing',
type: 'ArrayExpression',
line: 1,
column: 8
column: 9
}
]
},
Expand All @@ -228,7 +228,7 @@ eslintTester.addRuleTest('rules/array-bracket-even-spacing', {
message: 'Expected consistent spacing',
type: 'ArrayExpression',
line: 1,
column: 8
column: 9
}
]
},
Expand Down
8 changes: 4 additions & 4 deletions tests/computed-property-even-spacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
// Requirements
// ------------------------------------------------------------------------------

var eslint = require('eslint')
var ESLintTester = require('eslint-tester')
var RuleTester = require('eslint').RuleTester
var rule = require('../rules/computed-property-even-spacing')

// ------------------------------------------------------------------------------
// Tests
// ------------------------------------------------------------------------------

var eslintTester = new ESLintTester(eslint.linter)
eslintTester.addRuleTest('rules/computed-property-even-spacing', {
var ruleTester = new RuleTester()
ruleTester.run('computed-property-even-spacing', rule, {
valid: [

// even
Expand Down
Loading

0 comments on commit c0d1151

Please sign in to comment.