Skip to content

Commit de2580a

Browse files
committed
feat(*): replace cjs to mjs files
1 parent 529fd43 commit de2580a

24 files changed

Lines changed: 5444 additions & 3120 deletions

.eslintrc.cjs

Lines changed: 0 additions & 14 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import path from "node:path";
2+
import { fileURLToPath } from "node:url";
3+
import js from "@eslint/js";
4+
import { FlatCompat } from "@eslint/eslintrc";
5+
6+
const __filename = fileURLToPath(import.meta.url);
7+
const __dirname = path.dirname(__filename);
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
recommendedConfig: js.configs.recommended,
11+
allConfig: js.configs.all
12+
});
13+
14+
export default [...compat.extends("@shiftcode/recommended"), {
15+
languageOptions: {
16+
ecmaVersion: 2023,
17+
sourceType: "module",
18+
19+
parserOptions: {
20+
"ecmaVersion": 2023,
21+
"sourceType": "module",
22+
project: ["./tsconfig.json", "./tsconfig.jest.json"],
23+
},
24+
},
25+
}];

0 commit comments

Comments
 (0)