1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-13 00:10:37 +02:00

Tools: Add eslint rule "@typescript-eslint/no-inferrable-types"

This commit is contained in:
Laurent Cozic
2023-02-05 11:32:28 +00:00
parent e629a4d325
commit 0019bb8d6b
18 changed files with 24 additions and 23 deletions

View File

@ -61,7 +61,7 @@ export default async function populateDatabase(db: any, options: Options = null)
const createdTagIds: string[] = [];
const createdFolderDepths: Record<string, number> = {};
const folderDepthToId: Record<number, string[]> = {};
let rootFolderCount: number = 0;
let rootFolderCount = 0;
for (let i = 0; i < options.folderCount; i++) {
const folder: any = {
@ -72,7 +72,7 @@ export default async function populateDatabase(db: any, options: Options = null)
if (options.rootFolderCount && rootFolderCount >= options.rootFolderCount) isRoot = false;
let depth: number = 0;
let depth = 0;
if (!isRoot) {
let possibleFolderIds: string[] = [];