Skip to content

Commit

Permalink
chore(lint): enable requireDefaultForNonUnion option
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Nov 20, 2023
1 parent e47cf02 commit 5248e38
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ module.exports = defineConfig({
'error',
{ allowNumber: true, allowBoolean: true },
],
'@typescript-eslint/switch-exhaustiveness-check': 'error',
'@typescript-eslint/switch-exhaustiveness-check': [
'error',
{ requireDefaultForNonUnion: true },
],
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/unified-signatures': 'off', // incompatible with our api docs generation

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"@eslint-types/deprecation": "2.0.0-1",
"@eslint-types/jsdoc": "~46.9.0",
"@eslint-types/prettier": "5.0.1-1",
"@eslint-types/typescript-eslint": "~6.11.0",
"@eslint-types/typescript-eslint": "~6.12.0",
"@eslint-types/unicorn": "~49.0.0",
"@types/markdown-it": "~13.0.6",
"@types/node": "~20.9.2",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5248e38

Please sign in to comment.