Skip to content

Commit

Permalink
lint tests too
Browse files Browse the repository at this point in the history
  • Loading branch information
hoeck committed Dec 19, 2023
1 parent ffdfd7c commit 2410639
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand All @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion test/record.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('record', () => {
it('accepts empty records', () => {
const runType = st.record({})

const value: {} = runType({})
const value = runType({})

expect(value).toEqual({})
})
Expand Down

0 comments on commit 2410639

Please sign in to comment.