Skip to content

Commit

Permalink
Switch to neostandard
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Oct 4, 2024
1 parent 3dc69f6 commit a6bb438
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
18 changes: 18 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict'

const neostandard = require('neostandard')
const mochaPlugin = require('eslint-plugin-mocha')

const ignores = [
'coverage/**/*',
...neostandard.resolveIgnoresFromGitignore()
]

module.exports = [
{ ignores },
...neostandard(),
{
...mochaPlugin.configs.flat.recommended,
ignores: ['**/*', '!test/**/*'],
},
]
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"_mocha": "_mocha \"test/*.js\" --timeout 35000",
"clean": "rm -rf .nyc_output coverage test-ws",
"coverage": "nyc report -r lcov && opener coverage/lcov-report/index.html",
"lint": "standard",
"lint": "eslint",
"test": "nyc --require @babel/register npm run -s _mocha",
"watch": "npm run -s _mocha -- --require @babel/register --watch --growl"
},
Expand All @@ -40,14 +40,16 @@
"@babel/register": "^7.5.5",
"auto-changelog": "^2.2.0",
"babel-preset-power-assert": "^3.0.0",
"eslint": "^9.11.1",
"eslint-plugin-mocha": "^10.5.0",
"gh-release": "^7.0.2",
"mocha": "^10.2.0",
"neostandard": "^0.11.6",
"nyc": "17.0.0",
"opener": "^1.5.1",
"p-event": "^6.0.0",
"power-assert": "^1.6.1",
"shelljs": "^0.8.3",
"standard": "^17.1.0",
"through": "^2.3.8"
},
"repository": {
Expand Down

0 comments on commit a6bb438

Please sign in to comment.