From 3eeb04937b9853beb9698d726b124784b0b5f984 Mon Sep 17 00:00:00 2001 From: Sugat Bajracharya Date: Thu, 8 Aug 2024 16:51:08 +0545 Subject: [PATCH] Fix eslint issues --- shared-libs/cht-datasource/.eslintrc.js | 3 ++- shared-libs/cht-datasource/test/person.spec.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/shared-libs/cht-datasource/.eslintrc.js b/shared-libs/cht-datasource/.eslintrc.js index 061b1e55a75..6fcd829d220 100644 --- a/shared-libs/cht-datasource/.eslintrc.js +++ b/shared-libs/cht-datasource/.eslintrc.js @@ -43,7 +43,8 @@ module.exports = { MethodDefinition: true, }, publicOnly: true, - }] + }], + ['jsdoc/check-tag-names']: ['error', { definedTags: ['typeParam'] }], } } ] diff --git a/shared-libs/cht-datasource/test/person.spec.ts b/shared-libs/cht-datasource/test/person.spec.ts index d9313840216..acca2a0658f 100644 --- a/shared-libs/cht-datasource/test/person.spec.ts +++ b/shared-libs/cht-datasource/test/person.spec.ts @@ -272,7 +272,7 @@ describe('person', () => { expect(isContactTypeQualifier.notCalled).to.be.true; }); - it('should throw an error for invalid personType', async () => { + it('should throw an error for invalid personType', () => { isContactTypeQualifier.returns(false); expect(() => Person.v1.getAll(dataContext)(personTypeQualifier))