Skip to content

Commit

Permalink
refactor: switch to eslint-config-eslint v11
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Jun 16, 2024
1 parent 0504df5 commit 3266043
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"test": "mocha ./tests/lib/**/*.js"
},
"devDependencies": {
"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
8 changes: 4 additions & 4 deletions tests/lib/new-rule-format/new-rule-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"use strict";

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

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

Expand Down

0 comments on commit 3266043

Please sign in to comment.