logoalt Hacker News

heldridayesterday at 5:09 PM1 replyview on HN

It's quite simple to write a rule, e.g. for the example I shared https://typescript-eslint.io/rules/array-type. But I've never seen any reputable project arguing against T[] for simple types. In my opinion, that says a lot about the reviewer, not the contributor. If a linter rule doesn't exist, you should argue against the idiomatic convention.


Replies

epguiyesterday at 9:16 PM

I’m not arguing any particular rule… But what linter are you assuming I’m running? You can’t always write your own rules.