diff --git a/package.json b/package.json index a0d0c82..2425ffe 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "build": "tsup", "test": "jest test", "test:types": "tsd", - "lint": "eslint src", + "lint": "eslint src test", "prepare": "yarn run build", "build-readme": "ts-node --compiler-options '{\"module\": \"CommonJS\"}' ./scripts/build-readme-references.ts && markdown-toc -i --maxdepth 4 README.md" }, @@ -49,7 +49,10 @@ "prettier" ], "rules": { - "no-shadow": "error", + "no-shadow": "off", + "@typescript-eslint/no-shadow": [ + "error" + ], "eqeqeq": "error", "no-use-before-define": "off", "@typescript-eslint/no-use-before-define": [ diff --git a/test/record.test.ts b/test/record.test.ts index acfbd94..112c279 100644 --- a/test/record.test.ts +++ b/test/record.test.ts @@ -28,7 +28,7 @@ describe('record', () => { it('accepts empty records', () => { const runType = st.record({}) - const value: {} = runType({}) + const value = runType({}) expect(value).toEqual({}) })