refactor: Phase out TSLint in nodes-base (no-changelog) (#4798)

* 🔥 Remove TSLint scripts

* 🔥 Remove TSLint config

* 🔥 Remove TSLint exceptions

* 👕 Adjust lint config

* ✏️ Add story numbers
This commit is contained in:
Iván Ovejero
2022-12-02 15:25:21 +01:00
committed by GitHub
parent 632f573021
commit cfd32d2642
272 changed files with 367 additions and 926 deletions

View File

@@ -14,7 +14,6 @@
* // => [['a', 'b', 'c'], ['d']]
*/
// tslint:disable-next-line:no-any
export function chunk(array: any[], size = 1) {
const length = array == null ? 0 : array.length;
if (!length || size < 1) {
@@ -41,11 +40,9 @@ export function chunk(array: any[], size = 1) {
*
*/
// tslint:disable-next-line:no-any
export function flatten(nestedArray: any[][]) {
const result = [];
// tslint:disable-next-line:no-any
(function loop(array: any[]) {
for (let i = 0; i < array.length; i++) {
if (Array.isArray(array[i])) {