Skip to content

Commit

Permalink
Use @eslint/migrate-config-generated ESLint config
Browse files Browse the repository at this point in the history
This change has no real impact and is only for aesthetic consistency
across our ESLint projects.
  • Loading branch information
lberrymage committed Feb 12, 2025
1 parent 4dd2085 commit 4e1bcd6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions eslint.config.js → eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@
//
// SPDX-License-Identifier: AGPL-3.0-only

import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: import.meta.dirname,
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});
Expand Down Expand Up @@ -56,4 +60,4 @@ export default [{
})), {
files: ["**/*.html"],
rules: {},
}];
}];

0 comments on commit 4e1bcd6

Please sign in to comment.