From a9a5758b6701e9a899bbe7d39308512f17fe8264 Mon Sep 17 00:00:00 2001 From: Lexus Drumgold Date: Sat, 18 Feb 2023 18:13:02 -0500 Subject: [PATCH] chore: [eslint] update base config Signed-off-by: Lexus Drumgold --- .eslintrc.base.cjs | 10 ++++++++-- src/utils/__snapshots__/load-tsconfig.snap | 4 ++-- tsconfig.json | 4 ++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.eslintrc.base.cjs b/.eslintrc.base.cjs index 0d98cb93..11bae737 100644 --- a/.eslintrc.base.cjs +++ b/.eslintrc.base.cjs @@ -828,7 +828,7 @@ const config = { } }, { - files: ['*.d.ts'], + files: ['*.d.mts', '*.d.ts'], rules: { '@typescript-eslint/ban-types': 0, '@typescript-eslint/triple-slash-reference': 0, @@ -992,6 +992,12 @@ const config = { 'yml/spaced-comment': 2 } }, + { + files: ['**/__mocks__/**'], + rules: { + '@typescript-eslint/require-await': 0 + } + }, { files: ['**/__tests__/*.spec.ts', '**/__tests__/*.spec-d.ts'], globals: { @@ -1054,7 +1060,7 @@ const config = { } }, { - files: ['**/typings/**/*.d.ts', '*-env.d.ts'], + files: ['**/typings/**/*.d.mts', '**/typings/**/*.d.ts', '*-env.d.ts'], rules: { 'jsdoc/require-file-overview': 0, 'unicorn/filename-case': 0 diff --git a/src/utils/__snapshots__/load-tsconfig.snap b/src/utils/__snapshots__/load-tsconfig.snap index 55263243..ed0d04e6 100644 --- a/src/utils/__snapshots__/load-tsconfig.snap +++ b/src/utils/__snapshots__/load-tsconfig.snap @@ -11,10 +11,10 @@ exports[`unit:utils/loadTsconfig > should return TSConfig object if tsconfig fil "checkJs": false, "declaration": true, "declarationMap": true, - "emitDecoratorMetadata": true, + "emitDecoratorMetadata": false, "esModuleInterop": true, "exactOptionalPropertyTypes": true, - "experimentalDecorators": true, + "experimentalDecorators": false, "forceConsistentCasingInFileNames": true, "lib": [ "es2020", diff --git a/tsconfig.json b/tsconfig.json index 7fcd6eb6..1973bda6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,10 +8,10 @@ "checkJs": false, "declaration": true, "declarationMap": true, - "emitDecoratorMetadata": true, + "emitDecoratorMetadata": false, "esModuleInterop": true, "exactOptionalPropertyTypes": true, - "experimentalDecorators": true, + "experimentalDecorators": false, "forceConsistentCasingInFileNames": true, "lib": ["dom", "dom.iterable", "es2020"], "module": "esnext",