Skip to content

Commit b28eddb

Browse files
Merge next into master (#137)
* Update dependencies (fixed) (#131) * Update dependencies * Updated dependencies * chore(workflows): update node matrix to 18, 20 --------- Co-authored-by: James Sumners <[email protected]> # Conflicts: # .github/workflows/ci.yml # package.json * Modernize code and drop old Node versions * tweak branches coverage --------- Co-authored-by: Jamie King <[email protected]>
1 parent 03de7ad commit b28eddb

File tree

8 files changed

+121
-131
lines changed

8 files changed

+121
-131
lines changed

.borp.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
files:
2+
- test/index.js
3+
4+
coverage:
5+
check-coverage: true
6+
statements: 76
7+
branches: 81
8+
functions: 69
9+
lines: 76

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
os: [ubuntu-latest]
23-
node-version: [18, 20, 22]
23+
node-version: [20, 22, 24]
2424
debug: [2, 3, 4]
2525
steps:
26-
- name: Checkout
26+
- name: Checkout
2727
uses: actions/checkout@v3
2828

2929
- name: Use Node.js ${{ matrix.node-version }}

.nycrc.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.taprc

Lines changed: 0 additions & 4 deletions
This file was deleted.

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict'
2+
3+
module.exports = require('neostandard')({})

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"description": "High performance debug logging",
55
"main": "index.js",
66
"scripts": {
7-
"test": "npm run deps && standard && npm run test:unit",
7+
"test": "npm run deps && npm run lint && npm run test:unit",
88
"deps": "knip --production --dependencies",
9-
"standard": "standard",
10-
"standard:fix": "standard --fix",
11-
"test:unit": "cross-env NODE_ENV=test nyc tap",
12-
"test:watch": "cross-env NODE_ENV=test tap repl w",
9+
"lint": "eslint",
10+
"lint:fix": "eslint --fix",
11+
"test:unit": "cross-env NODE_ENV=test borp",
12+
"test:watch": "cross-env NODE_ENV=test node --watch --test",
1313
"test:with-debug": "npm i --no-save --no-audit --no-fund debug@$DEBUG_VERSION && npm run test:unit -- --after scripts/npmi",
1414
"test-2.3": "cross-env DEBUG_VERSION=2.3 npm run test:with-debug",
1515
"test-2.4": "cross-env DEBUG_VERSION=2.4 npm run test:with-debug",
@@ -42,15 +42,15 @@
4242
"debug": ">=2"
4343
},
4444
"devDependencies": {
45+
"borp": "^0.21.0",
4546
"cross-env": "^7.0.3",
47+
"eslint": "^9.38.0",
4648
"fastbench": "^1.0.1",
4749
"knip": "^5.1.2",
48-
"nyc": "^15.1.0",
50+
"neostandard": "^0.12.2",
4951
"pump": "^3.0.0",
5052
"split2": "^4.2.0",
51-
"standard": "^17.1.0",
5253
"steed": "^1.1.3",
53-
"tap": "^18.7.1",
5454
"through2": "^4.0.2"
5555
}
5656
}

test/fixtures/trailing-comment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint eol-last: off */
1+
/* eslint @stylistic/eol-last: off */
22

33
module.exports = 1
4-
// trailing comment
4+
// trailing comment

0 commit comments

Comments
 (0)