Commit 7162d03
feat(linter): add unicorn/prefer-default-parameters rule (#16620)
This PR adds unicorn/prefer-default-parameters rule, issue #684
[rule doc](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md)
[rule source](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/rules/prefer-default-parameters.js)
---------
Co-authored-by: Cameron Clark <[email protected]>1 parent 14b65d3 commit 7162d03
File tree
4 files changed
+1180
-0
lines changed- crates/oxc_linter/src
- generated
- rules/unicorn
- snapshots
4 files changed
+1180
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3544 | 3544 | | |
3545 | 3545 | | |
3546 | 3546 | | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
3547 | 3555 | | |
3548 | 3556 | | |
3549 | 3557 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| 475 | + | |
475 | 476 | | |
476 | 477 | | |
477 | 478 | | |
| |||
1221 | 1222 | | |
1222 | 1223 | | |
1223 | 1224 | | |
| 1225 | + | |
1224 | 1226 | | |
1225 | 1227 | | |
1226 | 1228 | | |
| |||
0 commit comments