Skip to content

Repo: Enable prefer-string-starts-with internally #7338

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

Closed
JoshuaKGoldberg opened this issue Jul 27, 2023 · 1 comment · Fixed by #9244
Closed

Repo: Enable prefer-string-starts-with internally #7338

JoshuaKGoldberg opened this issue Jul 27, 2023 · 1 comment · Fixed by #9244
Assignees
Labels
locked due to age Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing. repo maintenance things to do with maintenance of the repo, and not with code/docs team assigned A member of the typescript-eslint team should work on this.

Comments

@JoshuaKGoldberg
Copy link
Member

Suggestion

Our .eslintrc.js generally has a line that looks something like:

// TODO(#7138): Investigate enabling these soon ✨
'@typescript-eslint/consistent-indexed-object-style': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',

Filing this tracking issue to investigate enabling them. For each, we'll want to:

  1. Try enabling it in a commit/branch/PR
  2. Fix up any legitimate complaints it points out
  3. If it points too many things incorrectly, either:
    • File bug/feature issues on the rule to help it improve
    • Keep it disabled altogether
@JoshuaKGoldberg JoshuaKGoldberg added repo maintenance things to do with maintenance of the repo, and not with code/docs accepting prs Go ahead, send a pull request that resolves this issue labels Jul 27, 2023
@JoshuaKGoldberg JoshuaKGoldberg changed the title Repo: Investigate enabled our rules that are disabled in our .eslintrc.js Repo: Investigate enabling our rules that are disabled in our .eslintrc.js Aug 7, 2023
@JoshuaKGoldberg JoshuaKGoldberg changed the title Repo: Investigate enabling our rules that are disabled in our .eslintrc.js Repo: Enable prefer-string-starts-with internally Jun 4, 2024
@JoshuaKGoldberg
Copy link
Member Author

At this point, it's just two rules left:

// TODO(#7130): Investigate changing these in or removing these from presets
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/prefer-string-starts-ends-with': 'off',

no-confusing-void-expression is blocked & tracked by #8538. Retargeting this issue for prefer-string-starts-with.

@JoshuaKGoldberg JoshuaKGoldberg self-assigned this Jun 4, 2024
@JoshuaKGoldberg JoshuaKGoldberg added team assigned A member of the typescript-eslint team should work on this. and removed accepting prs Go ahead, send a pull request that resolves this issue labels Jun 4, 2024
@github-actions github-actions bot added the locked due to age Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing. label Jun 12, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked due to age Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing. repo maintenance things to do with maintenance of the repo, and not with code/docs team assigned A member of the typescript-eslint team should work on this.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant