Skip to content

Commit 018e28b

Browse files
authored
feat!: Upgrade dependencies; set Node.js to 20 (#26)
1 parent 8a6fe73 commit 018e28b

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
matrix:
2727
os: [ubuntu-latest]
28-
node: [22.x, 21.x, 20.x, 19.x, 18.x, 17.x, 16.x, 14.x, 12.x, "12.22.0"]
28+
node: [22.x, 21.x, 20.x]
2929
include:
3030
- os: windows-latest
3131
node: "lts/*"

package.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "Vitor Balocco",
77
"repository": "eslint/eslint-transforms",
88
"engines": {
9-
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
9+
"node": ">=20"
1010
},
1111
"bin": {
1212
"eslint-transforms": "./bin/eslint-transforms.js"
@@ -25,19 +25,18 @@
2525
"test": "mocha ./tests/lib/**/*.js"
2626
},
2727
"devDependencies": {
28-
"chai": "^3.5.0",
2928
"eslint": "^8.45.0",
3029
"eslint-config-eslint": "^9.0.0",
3130
"eslint-release": "^1.0.0",
3231
"globals": "^13.20.0",
33-
"mocha": "^2.5.3"
34-
},
35-
"dependencies": {
36-
"jscodeshift": "^0.3.20"
32+
"mocha": "^10.4.0"
3733
},
3834
"keywords": [
3935
"javascript",
4036
"eslint",
4137
"jscodeshift"
42-
]
38+
],
39+
"dependencies": {
40+
"jscodeshift": "^0.15.2"
41+
}
4342
}

tests/lib/new-rule-format/new-rule-format.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const jscodeshift = require("jscodeshift");
1111
const fs = require("fs");
1212
const os = require("os");
1313
const path = require("path");
14-
const expect = require("chai").expect;
14+
const assert = require("assert");
1515

1616
const newRuleFormatTransform = require("../../../lib/new-rule-format/new-rule-format");
1717

@@ -54,9 +54,8 @@ function testTransformWithFixture(transform, transformFixturePrefix) {
5454
{}
5555
);
5656

57-
expect(
58-
normalizeLineEndngs((output || "").trim())
59-
).to.equal(
57+
assert.strictEqual(
58+
normalizeLineEndngs((output || "").trim()),
6059
normalizeLineEndngs(expectedOutput.trim())
6160
);
6261
});

0 commit comments

Comments
 (0)