Skip to content
Snippets Groups Projects
Commit 4090498f authored by Alexander Rose's avatar Alexander Rose
Browse files

lint: add func-call-spacing rule

parent 24677d69
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,8 @@ ...@@ -49,7 +49,8 @@
"destructuring": "all", "destructuring": "all",
"ignoreReadBeforeAssign": false "ignoreReadBeforeAssign": false
}], }],
"space-before-function-paren": "off" "space-before-function-paren": "off",
"func-call-spacing": "off"
}, },
"overrides": [ "overrides": [
{ {
...@@ -105,7 +106,8 @@ ...@@ -105,7 +106,8 @@
"anonymous": "always", "anonymous": "always",
"named": "never", "named": "never",
"asyncArrow": "always" "asyncArrow": "always"
}] }],
"@typescript-eslint/func-call-spacing": ["error"]
} }
} }
] ]
......
...@@ -33,7 +33,7 @@ describe('linked list', () => { ...@@ -33,7 +33,7 @@ describe('linked list', () => {
expect(list.count).toBe(5); expect(list.count).toBe(5);
}); });
it ('remove', () => { it('remove', () => {
const list = create([1, 2, 3, 4]); const list = create([1, 2, 3, 4]);
const fst = list.removeFirst(); const fst = list.removeFirst();
expect(fst).toBe(1); expect(fst).toBe(1);
......
...@@ -66,13 +66,13 @@ export const U = (function (){ ...@@ -66,13 +66,13 @@ export const U = (function (){
*/ */
makeCodes(U.fltree, 9); makeCodes(U.fltree, 9);
codes2map(U.fltree, 9, U.flmap); codes2map(U.fltree, 9, U.flmap);
revCodes (U.fltree, 9); revCodes(U.fltree, 9);
pushV(U.fdtree, 32, 5); pushV(U.fdtree, 32, 5);
// for(i=0;i<32; i++) U.fdtree.push(0,5); // for(i=0;i<32; i++) U.fdtree.push(0,5);
makeCodes(U.fdtree, 5); makeCodes(U.fdtree, 5);
codes2map(U.fdtree, 5, U.fdmap); 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); pushV(U.itree, 19, 0); pushV(U.ltree, 286, 0); pushV(U.dtree, 30, 0); pushV(U.ttree, 320, 0);
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment