Skip to content
Snippets Groups Projects
Commit a88c8431 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/+/83437


Tested-by: default avatarAndreas Kienast <a.fernandez@scripting-base.de>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarGarvin Hicking <gh@faktor-e.de>
Reviewed-by: default avatarGarvin Hicking <gh@faktor-e.de>
Reviewed-by: default avatarAndreas Kienast <a.fernandez@scripting-base.de>
parent 79329c73
Branches
Tags
No related merge requests found
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