Skip to content

Commit 90a0297

Browse files
authored
chore: upgrade deps (#82)
* Upgrade ts and typedoc * Fix tsconfig path * Update vscode settings * Fixes * Use assertDefined * Upgrade eslint parser * Update rules * Prefix unused var with _ * License * Format * Upgrade formatter
1 parent c878aa4 commit 90a0297

37 files changed

+419
-282
lines changed

.eslintrc.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ module.exports = {
2727
'@typescript-eslint/explicit-module-boundary-types': 0,
2828
'@typescript-eslint/no-empty-function': 0,
2929
'@typescript-eslint/no-explicit-any': 0,
30-
'@typescript-eslint/no-non-null-assertion': 0,
30+
'@typescript-eslint/no-unused-vars': [
31+
1,
32+
{
33+
argsIgnorePattern: '^_',
34+
varsIgnorePattern: '^_',
35+
caughtErrorsIgnorePattern: '^_',
36+
},
37+
],
3138
'no-constant-condition': 0,
3239
},
3340
settings: {

.prettierrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"printWidth": 100,
3+
"endOfLine": "auto",
34
"tabWidth": 2,
45
"singleQuote": true,
5-
"trailingComma": "es5",
6-
"endOfLine": "auto"
6+
"trailingComma": "es5"
77
}

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2+
"cSpell.words": ["firewalk", "traversable"],
23
"editor.fontLigatures": "'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'zero', 'onum'"
34
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Anar Kafkas
3+
Copyright (c) 2025 Anar Kafkas
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

__tests__/utils/collectionPopulator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { firestore } from 'firebase-admin';
22

33
interface CollectionPopulatorBuilder<
44
AppModelType = firestore.DocumentData,
5-
DbModelType extends firestore.DocumentData = firestore.DocumentData
5+
DbModelType extends firestore.DocumentData = firestore.DocumentData,
66
> {
77
withData(
88
dataOrGetData: AppModelType | (() => AppModelType)
@@ -11,7 +11,7 @@ interface CollectionPopulatorBuilder<
1111

1212
interface CollectionPopulator<
1313
AppModelType = firestore.DocumentData,
14-
DbModelType extends firestore.DocumentData = firestore.DocumentData
14+
DbModelType extends firestore.DocumentData = firestore.DocumentData,
1515
> {
1616
populate(opts: {
1717
count: number;
@@ -20,7 +20,7 @@ interface CollectionPopulator<
2020

2121
export function collectionPopulator<
2222
AppModelType = firestore.DocumentData,
23-
DbModelType extends firestore.DocumentData = firestore.DocumentData
23+
DbModelType extends firestore.DocumentData = firestore.DocumentData,
2424
>(
2525
collectionRef: firestore.CollectionReference<AppModelType, DbModelType>
2626
): CollectionPopulatorBuilder<AppModelType, DbModelType> {

babel.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
// babel.config.js
22
module.exports = {
3-
presets: [['@babel/preset-env', { targets: { node: 'current' } }], '@babel/preset-typescript'],
3+
presets: [
4+
[
5+
'@babel/preset-env',
6+
{
7+
targets: { node: 'current' },
8+
},
9+
],
10+
'@babel/preset-typescript',
11+
],
412
};

examples/fastTraverser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const traverser = createTraverser(projectsColRef, {
99
maxConcurrentBatchCount: 20,
1010
});
1111
const { docCount } = await traverser.traverse(async (_, batchIndex) => {
12-
console.log(`Gonna process batch ${batchIndex} now!`);
13-
// ...
12+
console.log(`Processing batch ${batchIndex} now!`);
13+
// Add batch processing logic here
1414
});
1515
console.log(`Traversed ${docCount} projects super-fast!`);

0 commit comments

Comments
 (0)