From 864f611983f5bc24af1194d3ba6d3c87760ae37d Mon Sep 17 00:00:00 2001 From: Ira Hopkinson Date: Thu, 29 Aug 2024 14:04:59 +1200 Subject: [PATCH] provide for type checking - use `noImplicitReturns` instead of `consistent-return` --- .eslintrc.js | 2 ++ src/main.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 279bb37..c1de14e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -16,6 +16,8 @@ module.exports = { // #region ERB rules + // Use `noImplicitReturns` instead. See https://typescript-eslint.io/rules/consistent-return/. + 'consistent-return': 'off', 'import/extensions': 'off', // A temporary hack related to IDE not resolving correct package.json 'import/no-extraneous-dependencies': 'off', diff --git a/src/main.ts b/src/main.ts index 08b5a55..1df9db1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,3 +1,4 @@ +// @ts-ignore: TS2307 - Cannot find module '@papi/backend' or its corresponding type declarations import { logger } from '@papi/backend'; export async function activate() {