File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change
1
+ 'use strict'
2
+
3
+ const neostandard = require ( 'neostandard' )
4
+ const mochaPlugin = require ( 'eslint-plugin-mocha' )
5
+
6
+ const ignores = [
7
+ 'coverage/**/*' ,
8
+ ...neostandard . resolveIgnoresFromGitignore ( )
9
+ ]
10
+
11
+ module . exports = [
12
+ { ignores } ,
13
+ ...neostandard ( ) ,
14
+ {
15
+ ...mochaPlugin . configs . flat . recommended ,
16
+ ignores : [ '**/*' , '!test/**/*' ] ,
17
+ } ,
18
+ ]
Original file line number Diff line number Diff line change 16
16
"_mocha" : " _mocha \" test/*.js\" --timeout 35000" ,
17
17
"clean" : " rm -rf .nyc_output coverage test-ws" ,
18
18
"coverage" : " nyc report -r lcov && opener coverage/lcov-report/index.html" ,
19
- "lint" : " standard " ,
19
+ "lint" : " eslint " ,
20
20
"test" : " nyc --require @babel/register npm run -s _mocha" ,
21
21
"watch" : " npm run -s _mocha -- --require @babel/register --watch --growl"
22
22
},
40
40
"@babel/register" : " ^7.5.5" ,
41
41
"auto-changelog" : " ^2.2.0" ,
42
42
"babel-preset-power-assert" : " ^3.0.0" ,
43
+ "eslint" : " ^9.11.1" ,
44
+ "eslint-plugin-mocha" : " ^10.5.0" ,
43
45
"gh-release" : " ^7.0.2" ,
44
46
"mocha" : " ^10.2.0" ,
47
+ "neostandard" : " ^0.11.6" ,
45
48
"nyc" : " 17.0.0" ,
46
49
"opener" : " ^1.5.1" ,
47
50
"p-event" : " ^6.0.0" ,
48
51
"power-assert" : " ^1.6.1" ,
49
52
"shelljs" : " ^0.8.3" ,
50
- "standard" : " ^17.1.0" ,
51
53
"through" : " ^2.3.8"
52
54
},
53
55
"repository" : {
You can’t perform that action at this time.
0 commit comments