eslint-config-callstack icon indicating copy to clipboard operation
eslint-config-callstack copied to clipboard

chore: add recommended rules from typescript eslint

Open jaworek opened this issue 4 years ago • 0 comments

Add recommended rules from Typescript Eslint.

Summary

Adds new rules to improve quality of code of the projects that use this config. https://typescript-eslint.io/docs/linting/

There are also additional rules that use Typescript typechecking to verify code in a way that is not possible only with Eslint, but at the moment I'm not sure how to configure it in an external config. At the moment only way to configure it seems to be for the user to setup an override in their configuration and add it manually themselves. https://typescript-eslint.io/docs/linting/type-linting

On the other hand using TS for Eslint rule checking has a performance penalty that not everyone might want to pay, even though it is encouraged as type-aware linting has "additional powers" that are not possible without it. https://typescript-eslint.io/docs/linting/type-linting#how-is-performance

Test plan

Verify that linting works fine and new rules are enforced.

jaworek avatar Jan 18 '22 12:01 jaworek