Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

looser eslint rules#63511

Merged
sqs merged 1 commit into
mainfrom
sqs/eslint-looser
Jun 27, 2024
Merged

looser eslint rules#63511
sqs merged 1 commit into
mainfrom
sqs/eslint-looser

Conversation

@sqs

@sqs sqs commented Jun 27, 2024

Copy link
Copy Markdown
Member

Turn off 2 low-value eslint rules that add a lot of noise:

  • @typescript-eslint/no-explicit-any because if you mean to use any then you probably mean to. We still have eslint warnings for any member access, which is indeed riskier.
  • @typescript-eslint/no-non-null-assertion because if you type ! then you mean it.

Both of these have hundreds of warnings in our current codebase, so this significantly reduces the eslint noise and makes it so that the higher-value eslint rules are more noticeable.

Test plan

n/a

@sqs sqs requested a review from a team June 27, 2024 07:57
@cla-bot cla-bot Bot added the cla-signed label Jun 27, 2024
@sqs sqs enabled auto-merge (squash) June 27, 2024 08:06
Turn off 2 low-value eslint rules that add a lot of noise:

- `@typescript-eslint/no-explicit-any` because if you mean to use `any` then you probably mean to. We still have eslint warnings for `any` member access, which is indeed riskier.
- `@typescript-eslint/no-non-null-assertion` because if you type `!` then you mean it.

Both of these have hundreds of warnings in our current codebase, so this significantly reduces the eslint noise and makes it so that the higher-value eslint rules are more noticeable.
@sqs sqs force-pushed the sqs/eslint-looser branch from 68c813c to 8e6c08f Compare June 27, 2024 08:31
@sqs sqs merged commit 7e7de5f into main Jun 27, 2024
@sqs sqs deleted the sqs/eslint-looser branch June 27, 2024 08:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants