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 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 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': [ 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" }