Skip to content

Commit 77b23e6

Browse files
ok try cjs
1 parent bfe1251 commit 77b23e6

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
import { defineConfig } from "eslint/config";
2-
import globals from "globals";
3-
import path from "node:path";
4-
import { fileURLToPath } from "node:url";
5-
import js from "@eslint/js";
6-
import { FlatCompat } from "@eslint/eslintrc";
1+
const {
2+
defineConfig,
3+
} = require("eslint/config");
4+
5+
const globals = require("globals");
6+
const js = require("@eslint/js");
7+
8+
const {
9+
FlatCompat,
10+
} = require("@eslint/eslintrc");
711

8-
const __filename = fileURLToPath(import.meta.url);
9-
const __dirname = path.dirname(__filename);
1012
const compat = new FlatCompat({
1113
baseDirectory: __dirname,
1214
recommendedConfig: js.configs.recommended,
1315
allConfig: js.configs.all
1416
});
1517

16-
export default defineConfig([{
18+
module.exports = defineConfig([{
1719
extends: compat.extends("eslint:recommended"),
1820

1921
languageOptions: {

0 commit comments

Comments
 (0)