3 ms·
>just install eslint with insane defaults where do I find these insane defaults?
by tdba 3y ago
>just install eslint with insane defaults
where do I find these insane defaults?
- pcthrowaway 3y agolol, that was a typo, should have said "the sane defaults" On the other hand, it's a testament to the comment being written (or at least edited) by a human, and not an LLM right?
- von_lohengramm 3y agoThere used to be a lot of nice default packages, but I'm not aware of any actively maintained ones (other than "company X's config"). So instead... First, find the docs for ESLint and each of the integration packages that you've installed for each major dependency. Then just set each rule to the strictest setting. Then as you're developing, you'll start running into overzealous rules, prompting you to either disable the rule or write some override/exception. TSConfig, on the other hand, isn't extensible so you can just throw a couple configs from github.com/tsconfig/bases in your `"extends": [...]`. The base config `@tsconfig/strictest` might be of interest to you.