From 5a91ffb1675e57cb9a2ac76d47e064ec78b41552 Mon Sep 17 00:00:00 2001 From: JounQin Date: Sun, 10 Dec 2023 22:58:08 +0800 Subject: [PATCH 1/4] fix(eslint): incorrect project setting for ts in md/mdx --- packages/eslint-config/overrides.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/eslint-config/overrides.js b/packages/eslint-config/overrides.js index 7353a01b..3c54ff20 100644 --- a/packages/eslint-config/overrides.js +++ b/packages/eslint-config/overrides.js @@ -224,8 +224,14 @@ exports.ts = [ }, }, { - files: ['*.cts', '*.mts', '*.ts', '*.tsx'], - excludedFiles: ['*.d.cts', '*.d.mts', '*.d.ts'], + files: '**/*.{md,mdx}/**/*.{cts,mts,ts,tsx}', + parserOptions: { + project: null, + }, + }, + { + files: '*.{cts,mts,ts,tsx}', + excludedFiles: ['**/*.{md,mdx}/**/*.{cts,mts,ts,tsx}', '*.d.{cts,mts,ts}'], extends: ['plugin:@typescript-eslint/recommended-requiring-type-checking'], rules: { '@typescript-eslint/no-floating-promises': [ From e11727439a220d933864a9f076756c4f6aa6a6a6 Mon Sep 17 00:00:00 2001 From: JounQin Date: Sun, 10 Dec 2023 22:59:55 +0800 Subject: [PATCH 2/4] Create sweet-squids-reply.md --- .changeset/sweet-squids-reply.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changeset/sweet-squids-reply.md diff --git a/.changeset/sweet-squids-reply.md b/.changeset/sweet-squids-reply.md new file mode 100644 index 00000000..73c47d48 --- /dev/null +++ b/.changeset/sweet-squids-reply.md @@ -0,0 +1,8 @@ +--- +"@1stg/app-config": patch +"@1stg/common-config": patch +"@1stg/eslint-config": patch +"@1stg/lib-config": patch +--- + +fix(eslint): incorrect project setting for ts in md/mdx From 0d810c9e07817851a618c03ef5c1d28bda5c3f35 Mon Sep 17 00:00:00 2001 From: JounQin Date: Sun, 10 Dec 2023 23:02:41 +0800 Subject: [PATCH 3/4] fix(tsconfig): incompatible module option for Node16 and NodeNext --- packages/tsconfig/node16.json | 1 + packages/tsconfig/nodenext.json | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/tsconfig/node16.json b/packages/tsconfig/node16.json index fe14309d..0bfc1dad 100644 --- a/packages/tsconfig/node16.json +++ b/packages/tsconfig/node16.json @@ -2,6 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "extends": "./lib.json", "compilerOptions": { + "module": "Node16", "moduleResolution": "Node16", "target": "ES2021" } diff --git a/packages/tsconfig/nodenext.json b/packages/tsconfig/nodenext.json index 434deb82..57054d52 100644 --- a/packages/tsconfig/nodenext.json +++ b/packages/tsconfig/nodenext.json @@ -2,6 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "extends": "./lib.json", "compilerOptions": { + "module": "NodeNext", "moduleResolution": "NodeNext", "target": "ESNext" } From de88236591020856b89fc8eb21e038568611ea3d Mon Sep 17 00:00:00 2001 From: JounQin Date: Sun, 10 Dec 2023 23:26:32 +0800 Subject: [PATCH 4/4] Create fair-kiwis-type.md --- .changeset/fair-kiwis-type.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changeset/fair-kiwis-type.md diff --git a/.changeset/fair-kiwis-type.md b/.changeset/fair-kiwis-type.md new file mode 100644 index 00000000..dc383593 --- /dev/null +++ b/.changeset/fair-kiwis-type.md @@ -0,0 +1,8 @@ +--- +"@1stg/app-config": patch +"@1stg/common-config": patch +"@1stg/lib-config": patch +"@1stg/tsconfig": patch +--- + +fix(tsconfig): incompatible module option for Node16 and NodeNext