[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:Andreas Kienast <a.fernandez@scripting-base.de> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Benjamin Franzke <ben@bnf.dev> Tested-by:
Garvin Hicking <gh@faktor-e.de> Reviewed-by:
Garvin Hicking <gh@faktor-e.de> Reviewed-by:
Andreas Kienast <a.fernandez@scripting-base.de>
Showing
- Build/.eslintrc.js 1 addition, 0 deletionsBuild/.eslintrc.js
- Build/Sources/TypeScript/backend/code-editor/autocomplete/ts-code-completion.ts 1 addition, 1 deletion...pt/backend/code-editor/autocomplete/ts-code-completion.ts
- Build/Sources/TypeScript/backend/code-editor/autocomplete/ts-parser.ts 3 additions, 3 deletions.../TypeScript/backend/code-editor/autocomplete/ts-parser.ts
- Build/Sources/TypeScript/backend/form-engine-validation.ts 1 addition, 1 deletionBuild/Sources/TypeScript/backend/form-engine-validation.ts
- Build/Sources/TypeScript/rte_ckeditor/rte-link-browser.ts 1 addition, 1 deletionBuild/Sources/TypeScript/rte_ckeditor/rte-link-browser.ts
- typo3/sysext/backend/Resources/Public/JavaScript/code-editor/autocomplete/ts-code-completion.js 1 addition, 1 deletion...JavaScript/code-editor/autocomplete/ts-code-completion.js
- typo3/sysext/backend/Resources/Public/JavaScript/code-editor/autocomplete/ts-parser.js 1 addition, 1 deletion...s/Public/JavaScript/code-editor/autocomplete/ts-parser.js
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine-validation.js 1 addition, 1 deletion...end/Resources/Public/JavaScript/form-engine-validation.js
- typo3/sysext/rte_ckeditor/Resources/Public/JavaScript/rte-link-browser.js 1 addition, 1 deletion..._ckeditor/Resources/Public/JavaScript/rte-link-browser.js
Please register or sign in to comment