From 2a7da38c7f3a2d7998c7dadc66d3473aa6382394 Mon Sep 17 00:00:00 2001 From: Jon Ursenbach Date: Sat, 7 Oct 2023 11:06:02 -0700 Subject: [PATCH] chore: enabling our esm eslint config --- .eslintrc | 3 ++- test/index.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.eslintrc b/.eslintrc index a7946db..b2be3bf 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,7 +1,8 @@ { "extends": [ "@readme/eslint-config", - "@readme/eslint-config/typescript" + "@readme/eslint-config/typescript", + "@readme/eslint-config/esm" ], "root": true, "rules": { diff --git a/test/index.test.ts b/test/index.test.ts index 3806de4..5fd9950 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -1,10 +1,10 @@ import { describe, test, it, expect } from 'vitest'; -import removeUndefinedObjects from '../src'; +import removeUndefinedObjects from '../src/index.js'; describe('typings', () => { it('should not blow away typings from supplied objects', () => { - const obj: { key: string } = removeUndefinedObjects({ + const obj = removeUndefinedObjects({ key: 'buster', });