Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Apr 15, 2023
1 parent 8120f0e commit 199eb29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/no-useless-undefined.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!-- end auto-generated rule header -->
<!-- Do not manually modify this header. Run: `npm run fix:eslint-docs` -->

`undefined` is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference.
`undefined` is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference.

The only case where passing `undefined` is required is due to bad TypeScript types in functions, in which case you can use `checkArguments: false` option.

Expand Down

0 comments on commit 199eb29

Please sign in to comment.