diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d139760..7b21671 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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/*" diff --git a/package.json b/package.json index ab2100b..e1f9a2f 100644 --- a/package.json +++ b/package.json @@ -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" @@ -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" + } } diff --git a/tests/lib/new-rule-format/new-rule-format.js b/tests/lib/new-rule-format/new-rule-format.js index 61589fc..dd6af7d 100644 --- a/tests/lib/new-rule-format/new-rule-format.js +++ b/tests/lib/new-rule-format/new-rule-format.js @@ -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"); @@ -54,9 +54,8 @@ function testTransformWithFixture(transform, transformFixturePrefix) { {} ); - expect( - normalizeLineEndngs((output || "").trim()) - ).to.equal( + assert.strictEqual( + normalizeLineEndngs((output || "").trim()), normalizeLineEndngs(expectedOutput.trim()) ); });