File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 7
7
"url" : " https://github.com/standard/eslint-config-semistandard/issues"
8
8
},
9
9
"devDependencies" : {
10
- "eslint" : " ^7.28 .0" ,
11
- "eslint-config-standard" : " ^16 .0.3 " ,
12
- "eslint-plugin-import" : " ^2.23.4 " ,
10
+ "eslint" : " ^8.13 .0" ,
11
+ "eslint-config-standard" : " ^17 .0.0 " ,
12
+ "eslint-plugin-import" : " ^2.26.0 " ,
13
13
"eslint-plugin-node" : " ^11.1.0" ,
14
- "eslint-plugin-promise" : " ^5.1 .0" ,
14
+ "eslint-plugin-promise" : " ^6.0 .0" ,
15
15
"tap-spec" : " ^5.0.0" ,
16
- "tape" : " ^5.0.0 "
16
+ "tape" : " ^5.5.3 "
17
17
},
18
18
"homepage" : " https://github.com/standard/eslint-config-semistandard" ,
19
19
"keywords" : [
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- const { CLIEngine } = require ( 'eslint' ) ;
3
+ const { ESLint } = require ( 'eslint' ) ;
4
4
const test = require ( 'tape' ) ;
5
5
6
- const configFile = require . resolve ( '../eslintrc.json' ) ;
7
- const linter = new CLIEngine ( { configFile } ) ;
6
+ const overrideConfigFile = require . resolve ( '../eslintrc.json' ) ;
7
+ const linter = new ESLint ( { overrideConfigFile } ) ;
8
8
9
- test ( 'api: lintText' , t => {
9
+ test ( 'api: lintText' , async t => {
10
10
t . plan ( 1 ) ;
11
- const result = linter . executeOnText ( "console.log('hi there')\n\n" ) ;
12
- t . equals ( result . results [ 0 ] . messages [ 0 ] . message , 'Missing semicolon.' ) ;
11
+ const [ result ] = await linter . lintText ( "console.log('hi there')\n\n" ) ;
12
+ t . equal ( result . messages [ 0 ] . message , 'Missing semicolon.' ) ;
13
13
} ) ;
You can’t perform that action at this time.
0 commit comments