Skip to content
Commit 24f0a59d authored by Andreas Kienast's avatar Andreas Kienast
Browse files

[TASK] Implement `@typescript-eslint/prefer-string-starts-ends-with` rule

The eslint configuration now takes the rule
`@typescript-eslint/prefer-string-starts-ends-with` [1] into account,
enforcing the usage of `startsWith()` and `endWith()` over index
checking in strings.

[1] https://typescript-eslint.io/rules/prefer-string-starts-ends-with

Resolves: #103374
Releases: main, 12.4
Change-Id: I88640f71cbe960db2a2e2b162410ff5a79e7c55c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83448


Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarAndreas Kienast <a.fernandez@scripting-base.de>
Reviewed-by: default avatarAndreas Kienast <a.fernandez@scripting-base.de>
parent 9f861f51
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment