Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I find it frustrating that the eslint recommended presets don't document why they are recommended.

That’s a good point. While this doesn’t address the root problem, I can share some context here as a former maintainer: browsing the core rules [1], you should see that recommended rules flag cases that are highly likely to be bugs or unnecessary constructs. Recommended rules should have false positives only in exceptional cases and be objective or near-universal consensus opinions.

Plugins, of course, are free to choose their own threshold for their recommended configs.

> Why isn't it in the "recommended" preset of lints?

It will be added to recommended in v9! [2] The rule was written during one of the v8 minor versions, and adding to the recommended config is always a breaking change.

[1]: https://eslint.org/docs/latest/rules/

[2]: https://github.com/eslint/eslint/issues/17596



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: