Skip to content

Commit

Permalink
refactor: switch to eslint-config-eslint v11 (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic authored Jun 17, 2024
1 parent 23d0bfe commit bab0444
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions bin/eslint-transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

"use strict";

const execSync = require("child_process").execSync;
const path = require("path");
const execSync = require("node:child_process").execSync;
const path = require("node:path");

const argv = process.argv.slice(2);
const args = argv.slice(1);
Expand Down
2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
"use strict";

const eslintConfigESLintCJS = require("eslint-config-eslint/cjs");
const eslintConfigESLintFormatting = require("eslint-config-eslint/formatting");
const globals = require("globals");

module.exports = [
{
ignores: ["tests/fixtures/"]
},
...eslintConfigESLintCJS,
eslintConfigESLintFormatting,
{
files: ["tests/**/*"],
languageOptions: {
Expand Down
2 changes: 1 addition & 1 deletion lib/v9-rule-migration/v9-rule-migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const path = require("path");
const path = require("node:path");

//------------------------------------------------------------------------------
// Helpers
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
},
"devDependencies": {
"@hypermod/utils": "^0.4.2",
"eslint": "^9.2.0",
"eslint-config-eslint": "^10.0.0",
"eslint": "^9.5.0",
"eslint-config-eslint": "^11.0.0",
"eslint-release": "^1.0.0",
"globals": "^15.2.0",
"mocha": "^10.4.0",
Expand Down
6 changes: 3 additions & 3 deletions tests/lib/new-rule-format/new-rule-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"use strict";

const jscodeshift = require("jscodeshift");
const fs = require("fs");
const path = require("path");
const assert = require("assert");
const fs = require("node:fs");
const path = require("node:path");
const assert = require("node:assert");

const newRuleFormatTransform = require("../../../lib/new-rule-format/new-rule-format");
const { normalizeLineEndings } = require("../../utils");
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/v9-rule-migration/v9-rule-migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

"use strict";

const path = require("path");
const path = require("node:path");
const { applyTransform } = require("@hypermod/utils");
const assert = require("assert");
const assert = require("node:assert");
const sinon = require("sinon");
const { normalizeLineEndings } = require("../../utils");
const v9MigrationTransform = require("../../../lib/v9-rule-migration/v9-rule-migration");
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

const os = require("os");
const os = require("node:os");

/**
* Returns a new string with all the EOL markers from the string passed in
Expand Down

0 comments on commit bab0444

Please sign in to comment.