From 4090498f92edb1d53b3b29671119e1e68237628d Mon Sep 17 00:00:00 2001 From: Alexander Rose <alexander.rose@weirdbyte.de> Date: Sun, 12 Sep 2021 23:03:35 -0700 Subject: [PATCH] lint: add func-call-spacing rule --- .eslintrc.json | 6 ++++-- src/mol-data/generic/_spec/linked-list.spec.ts | 2 +- src/mol-util/zip/util.ts | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 23a38ed5a..dde918ed0 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -49,7 +49,8 @@ "destructuring": "all", "ignoreReadBeforeAssign": false }], - "space-before-function-paren": "off" + "space-before-function-paren": "off", + "func-call-spacing": "off" }, "overrides": [ { @@ -105,7 +106,8 @@ "anonymous": "always", "named": "never", "asyncArrow": "always" - }] + }], + "@typescript-eslint/func-call-spacing": ["error"] } } ] diff --git a/src/mol-data/generic/_spec/linked-list.spec.ts b/src/mol-data/generic/_spec/linked-list.spec.ts index 825c2563a..2925be517 100644 --- a/src/mol-data/generic/_spec/linked-list.spec.ts +++ b/src/mol-data/generic/_spec/linked-list.spec.ts @@ -33,7 +33,7 @@ describe('linked list', () => { expect(list.count).toBe(5); }); - it ('remove', () => { + it('remove', () => { const list = create([1, 2, 3, 4]); const fst = list.removeFirst(); expect(fst).toBe(1); diff --git a/src/mol-util/zip/util.ts b/src/mol-util/zip/util.ts index b60361d13..0cb19cc58 100644 --- a/src/mol-util/zip/util.ts +++ b/src/mol-util/zip/util.ts @@ -66,13 +66,13 @@ export const U = (function (){ */ makeCodes(U.fltree, 9); codes2map(U.fltree, 9, U.flmap); - revCodes (U.fltree, 9); + revCodes(U.fltree, 9); pushV(U.fdtree, 32, 5); // for(i=0;i<32; i++) U.fdtree.push(0,5); makeCodes(U.fdtree, 5); codes2map(U.fdtree, 5, U.fdmap); - revCodes (U.fdtree, 5); + revCodes(U.fdtree, 5); pushV(U.itree, 19, 0); pushV(U.ltree, 286, 0); pushV(U.dtree, 30, 0); pushV(U.ttree, 320, 0); /* -- GitLab