[TASK] Implement `@typescript-eslint/no-array-delete` rule
The eslint configuration now takes the rule `@typescript-eslint/no-array-delete` [1] into account, prohibiting element removal from an array via `delete`. The problem with `delete` is that the element to be removed is in fact replaced with an `empty` slot, effectible keeping the array's size. Using `splice()` [2] is the preferred way to remove elements from an array. [1] https://typescript-eslint.io/rules/no-array-delete/ [2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice Resolves: #103375 Releases: main, 12.4 Change-Id: Ic742a43d44cbd8c5cc323f629cc82ad606a9858f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83438 Tested-by:core-ci <typo3@b13.com> Tested-by:
Benjamin Franzke <ben@bnf.dev> Reviewed-by:
Benjamin Franzke <ben@bnf.dev> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Andreas Kienast <a.fernandez@scripting-base.de> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Andreas Kienast <a.fernandez@scripting-base.de>
Showing
- Build/.eslintrc.js 1 addition, 0 deletionsBuild/.eslintrc.js
- Build/Sources/TypeScript/backend/form-engine/container/files-control-container.ts 1 addition, 1 deletion.../backend/form-engine/container/files-control-container.ts
- Build/Sources/TypeScript/backend/form-engine/container/inline-control-container.ts 1 addition, 1 deletion...backend/form-engine/container/inline-control-container.ts
- Build/Sources/TypeScript/backend/form-engine/container/site-language-container.ts 1 addition, 1 deletion.../backend/form-engine/container/site-language-container.ts
- Build/Sources/TypeScript/backend/form-engine/inline-relation/ajax-dispatcher.ts 1 addition, 1 deletion...pt/backend/form-engine/inline-relation/ajax-dispatcher.ts
- Build/Sources/TypeScript/install/ajax/ajax-queue.ts 1 addition, 1 deletionBuild/Sources/TypeScript/install/ajax/ajax-queue.ts
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine/container/files-control-container.js 1 addition, 1 deletion...vaScript/form-engine/container/files-control-container.js
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine/container/inline-control-container.js 1 addition, 1 deletion...aScript/form-engine/container/inline-control-container.js
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine/container/site-language-container.js 1 addition, 1 deletion...vaScript/form-engine/container/site-language-container.js
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine/inline-relation/ajax-dispatcher.js 1 addition, 1 deletion...JavaScript/form-engine/inline-relation/ajax-dispatcher.js
- typo3/sysext/install/Resources/Public/JavaScript/ajax/ajax-queue.js 1 addition, 1 deletion...xt/install/Resources/Public/JavaScript/ajax/ajax-queue.js
Please register or sign in to comment