Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"warnOnUnsupportedTypeScriptVersion": false
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
Expand All @@ -16,5 +13,13 @@
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/consistent-type-imports": 2
},
"overrides": [
{
"files": ["type-check/**/*.ts"],
"rules": {
"@typescript-eslint/no-unused-vars": "off"
}
}
],
"ignorePatterns": ["src/type/**/*.ts"]
}
698 changes: 349 additions & 349 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.2",
"@types/node": "^24.13.3",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"@typescript-eslint/eslint-plugin": "^8.66.0",
"@typescript-eslint/parser": "^8.66.0",
"babel-loader": "^9.1.2",
"eslint": "^8.43.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^8.8.0",
"glob": "^10.3.1",
"husky": "^8.0.3",
Expand Down
6 changes: 5 additions & 1 deletion src/countBy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import type Key from "./types/Key";
import type ReturnValueType from "./types/ReturnValueType";

function incSel<B extends Key>(parent: { [K in B]: number }, k: B) {
parent[k] ? parent[k]++ : (parent[k] = 1);
if (parent[k]) {
parent[k]++;
} else {
parent[k] = 1;
}
return parent;
}

Expand Down
2 changes: 0 additions & 2 deletions src/indexBy.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { AsyncFunctionException } from "./_internal/error";
import { isAsyncIterable, isIterable, isPromise } from "./_internal/utils";
import reduce from "./reduce";
import type Cast from "./types/Cast";
import type Equals from "./types/Equals";
import type { GetKeyOf } from "./types/GetKeyOf";
import type IterableInfer from "./types/IterableInfer";
import type Key from "./types/Key";
import type ReturnValueType from "./types/ReturnValueType";
Expand Down
4 changes: 2 additions & 2 deletions test/Lazy/concurrent.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ describe("concurrent", function () {
yield delay(1000, 3);
yield (async () => {
throw "err";
})(),
yield delay(1000, 4);
})();
yield delay(1000, 4);
yield delay(1000, 5);
})(),
),
Expand Down
4 changes: 2 additions & 2 deletions test/Lazy/concurrentPool.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ describe("concurrentPool", function () {
yield delay(100, 3);
yield (async () => {
throw "err";
})(),
yield delay(100, 4);
})();
yield delay(100, 4);
yield delay(1000, 5);
})(),
),
Expand Down
1 change: 0 additions & 1 deletion test/indexBy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
indexBy,
map,
pipe,
reduce,
toArray,
toAsync,
} from "../src";
Expand Down
Loading