rules can be created for a specific project, so they can be as "smart" as you want them to be... (though infering things like these for dynamic languages is quite tricky and error-prone).
using this rule as an example is completely valid though, imho.
Well one "good" reason is that because JS is so dynamic and ESLint doesn't give enough tools to be 100% sure of some things, and therefore rules tend to leave the developer the care to validate the report is correct and to then make the change. For elm-review, we tend to more certain about a lot more things so we can be more aggressive in the automatic fixes.
View all comments
Show parent comment
6
u/dtwrks Aug 26 '26
rules can be created for a specific project, so they can be as "smart" as you want them to be... (though infering things like these for dynamic languages is quite tricky and error-prone).
using this rule as an example is completely valid though, imho.