File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- var config = require ( '../' )
2
- var test = require ( 'tape' )
1
+ const config = require ( '../' )
2
+ const test = require ( 'tape' )
3
3
4
4
test ( 'test basic properties of config' , function ( t ) {
5
5
t . ok ( isObject ( config . parserOptions ) )
Original file line number Diff line number Diff line change 1
- var eslint = require ( 'eslint' )
2
- var test = require ( 'tape' )
1
+ const eslint = require ( 'eslint' )
2
+ const test = require ( 'tape' )
3
3
4
4
test ( 'load config in eslint to validate all rule syntax is correct' , function ( t ) {
5
- var CLIEngine = eslint . CLIEngine
5
+ const CLIEngine = eslint . CLIEngine
6
6
7
- var cli = new CLIEngine ( {
7
+ const cli = new CLIEngine ( {
8
8
useEslintrc : false ,
9
9
configFile : 'eslintrc.json'
10
10
} )
11
11
12
- var code = 'var foo = 1\nvar bar = function () {}\nbar(foo)\n'
12
+ const code = 'var foo = 1\nvar bar = function () {}\nbar(foo)\n'
13
13
14
14
t . equal ( cli . executeOnText ( code ) . errorCount , 0 )
15
15
t . end ( )
You can’t perform that action at this time.
0 commit comments