🚀 Feature: Find or create a lint rule around not making values before they're needed #1188
Open
3 tasks done
Labels
status: accepting prs
Please, send a pull request to resolve this!
type: feature
New enhancement or request
Bug Report Checklist
main
branch of the repository.Overview
I oftentimes find myself leaving reviews on code that creates values before checking whether they're needed. For example, in this rough pseudocode,
banana
doesn't need to be created if!!apple
:I would like to find (or create if it doesn't yet exist) an ESLint rule to enforce not making values until they're needed:
...this isn't a great example for readability, and I'm sure there's nuance around here that I'm not thinking of. Even if this rule does exist it might be too opinionated. Let's try it out!
Additional Info
No response
The text was updated successfully, but these errors were encountered: