Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add recommended rules from typescript eslint #241

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jaworek
Copy link
Member

@jaworek jaworek commented Jan 18, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant