Skip to content

Commit a6bb438

Browse files
committed
Switch to neostandard
1 parent 3dc69f6 commit a6bb438

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

eslint.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
]

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"_mocha": "_mocha \"test/*.js\" --timeout 35000",
1717
"clean": "rm -rf .nyc_output coverage test-ws",
1818
"coverage": "nyc report -r lcov && opener coverage/lcov-report/index.html",
19-
"lint": "standard",
19+
"lint": "eslint",
2020
"test": "nyc --require @babel/register npm run -s _mocha",
2121
"watch": "npm run -s _mocha -- --require @babel/register --watch --growl"
2222
},
@@ -40,14 +40,16 @@
4040
"@babel/register": "^7.5.5",
4141
"auto-changelog": "^2.2.0",
4242
"babel-preset-power-assert": "^3.0.0",
43+
"eslint": "^9.11.1",
44+
"eslint-plugin-mocha": "^10.5.0",
4345
"gh-release": "^7.0.2",
4446
"mocha": "^10.2.0",
47+
"neostandard": "^0.11.6",
4548
"nyc": "17.0.0",
4649
"opener": "^1.5.1",
4750
"p-event": "^6.0.0",
4851
"power-assert": "^1.6.1",
4952
"shelljs": "^0.8.3",
50-
"standard": "^17.1.0",
5153
"through": "^2.3.8"
5254
},
5355
"repository": {

0 commit comments

Comments
 (0)