Skip to content

Commit 4e1bcd6

Browse files
committed
Use @eslint/migrate-config-generated ESLint config
This change has no real impact and is only for aesthetic consistency across our ESLint projects.
1 parent 4dd2085 commit 4e1bcd6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

eslint.config.js renamed to eslint.config.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
//
33
// SPDX-License-Identifier: AGPL-3.0-only
44

5+
import path from "node:path";
6+
import { fileURLToPath } from "node:url";
57
import js from "@eslint/js";
68
import { FlatCompat } from "@eslint/eslintrc";
79

10+
const __filename = fileURLToPath(import.meta.url);
11+
const __dirname = path.dirname(__filename);
812
const compat = new FlatCompat({
9-
baseDirectory: import.meta.dirname,
13+
baseDirectory: __dirname,
1014
recommendedConfig: js.configs.recommended,
1115
allConfig: js.configs.all
1216
});
@@ -56,4 +60,4 @@ export default [{
5660
})), {
5761
files: ["**/*.html"],
5862
rules: {},
59-
}];
63+
}];

0 commit comments

Comments
 (0)