Skip to content

Commit 3f96912

Browse files
committed
feat: Native ESM Support.
BREAKING CHANGE: CommonJS not Support
1 parent 0333f06 commit 3f96912

File tree

5 files changed

+8495
-13467
lines changed

5 files changed

+8495
-13467
lines changed

.eslintrc.js renamed to .eslintrc.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ module.exports = {
33
parser: '@typescript-eslint/parser',
44
plugins: ['@typescript-eslint', 'node', 'prettier'],
55
parserOptions: {
6-
tsconfigRootDir: __dirname,
6+
sourceType: 'module',
7+
ecmaVersion: 2022,
78
project: ['./tsconfig.json'],
89
},
910
extends: [

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
preset: 'ts-jest',
33
testEnvironment: 'node',
44
testMatch: ['**/test/**/*.spec.ts'],

0 commit comments

Comments
 (0)