Skip to content

Commit

Permalink
feat!: Upgrade dependencies; set Node.js to 20 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed May 16, 2024
1 parent 8a6fe73 commit 018e28b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [22.x, 21.x, 20.x, 19.x, 18.x, 17.x, 16.x, 14.x, 12.x, "12.22.0"]
node: [22.x, 21.x, 20.x]
include:
- os: windows-latest
node: "lts/*"
Expand Down
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Vitor Balocco",
"repository": "eslint/eslint-transforms",
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">=20"
},
"bin": {
"eslint-transforms": "./bin/eslint-transforms.js"
Expand All @@ -25,19 +25,18 @@
"test": "mocha ./tests/lib/**/*.js"
},
"devDependencies": {
"chai": "^3.5.0",
"eslint": "^8.45.0",
"eslint-config-eslint": "^9.0.0",
"eslint-release": "^1.0.0",
"globals": "^13.20.0",
"mocha": "^2.5.3"
},
"dependencies": {
"jscodeshift": "^0.3.20"
"mocha": "^10.4.0"
},
"keywords": [
"javascript",
"eslint",
"jscodeshift"
]
],
"dependencies": {
"jscodeshift": "^0.15.2"
}
}
7 changes: 3 additions & 4 deletions tests/lib/new-rule-format/new-rule-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const jscodeshift = require("jscodeshift");
const fs = require("fs");
const os = require("os");
const path = require("path");
const expect = require("chai").expect;
const assert = require("assert");

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

Expand Down Expand Up @@ -54,9 +54,8 @@ function testTransformWithFixture(transform, transformFixturePrefix) {
{}
);

expect(
normalizeLineEndngs((output || "").trim())
).to.equal(
assert.strictEqual(
normalizeLineEndngs((output || "").trim()),
normalizeLineEndngs(expectedOutput.trim())
);
});
Expand Down

0 comments on commit 018e28b

Please sign in to comment.