Skip to content

Commit 43d8ea6

Browse files
authored
Merge pull request #213 from elias-sundqvist/208
Fix #208
2 parents 6e5178b + d7e35cc commit 43d8ea6

File tree

3 files changed

+79
-93
lines changed

3 files changed

+79
-93
lines changed

.betterer.results

Lines changed: 68 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -149,18 +149,18 @@ exports[`stricter ts`] = {
149149
[19, 35, 22, "Object is possibly \'null\'.", "1250166809"],
150150
[21, 20, 22, "Object is possibly \'null\'.", "1250166809"]
151151
],
152-
"src/main.tsx:2818674161": [
153-
[149, 41, 21, "Object is possibly \'undefined\'.", "1934721455"],
154-
[268, 38, 4, "\'this\' implicitly has type \'any\' because it does not have a type annotation.", "2087959715"],
155-
[270, 70, 4, "\'this\' implicitly has type \'any\' because it does not have a type annotation.", "2087959715"],
156-
[271, 62, 4, "\'this\' implicitly has type \'any\' because it does not have a type annotation.", "2087959715"],
157-
[274, 42, 4, "\'this\' implicitly has type \'any\' because it does not have a type annotation.", "2087959715"],
158-
[284, 55, 4, "\'this\' implicitly has type \'any\' because it does not have a type annotation.", "2087959715"],
159-
[297, 50, 4, "\'this\' implicitly has type \'any\' because it does not have a type annotation.", "2087959715"],
160-
[297, 56, 19, "Argument of type \'[{ type: string; state?: any; active?: boolean | undefined; pinned?: boolean | undefined; group?: WorkspaceLeaf | undefined; }, ...unknown[]]\' is not assignable to parameter of type \'[viewState: ViewState, eState?: any]\'.\\n Target allows only 2 element(s) but source may have more.", "2235535674"],
161-
[301, 42, 4, "\'this\' implicitly has type \'any\' because it does not have a type annotation.", "2087959715"],
162-
[301, 48, 16, "Argument of type \'[ViewState, ...unknown[]]\' is not assignable to parameter of type \'[viewState: ViewState, eState?: any]\'.\\n Target allows only 2 element(s) but source may have more.", "2605853574"],
163-
[337, 22, 4, "Type \'TFile | null\' is not assignable to type \'TFile\'.\\n Type \'null\' is not assignable to type \'TFile\'.", "2087597251"]
152+
"src/main.tsx:3824590103": [
153+
[151, 41, 21, "Object is possibly \'undefined\'.", "1934721455"],
154+
[269, 38, 4, "\'this\' implicitly has type \'any\' because it does not have a type annotation.", "2087959715"],
155+
[271, 70, 4, "\'this\' implicitly has type \'any\' because it does not have a type annotation.", "2087959715"],
156+
[272, 62, 4, "\'this\' implicitly has type \'any\' because it does not have a type annotation.", "2087959715"],
157+
[275, 42, 4, "\'this\' implicitly has type \'any\' because it does not have a type annotation.", "2087959715"],
158+
[285, 55, 4, "\'this\' implicitly has type \'any\' because it does not have a type annotation.", "2087959715"],
159+
[298, 50, 4, "\'this\' implicitly has type \'any\' because it does not have a type annotation.", "2087959715"],
160+
[298, 56, 19, "Argument of type \'[{ type: string; state?: any; active?: boolean | undefined; pinned?: boolean | undefined; group?: WorkspaceLeaf | undefined; }, ...unknown[]]\' is not assignable to parameter of type \'[viewState: ViewState, eState?: any]\'.\\n Target allows only 2 element(s) but source may have more.", "2235535674"],
161+
[302, 42, 4, "\'this\' implicitly has type \'any\' because it does not have a type annotation.", "2087959715"],
162+
[302, 48, 16, "Argument of type \'[ViewState, ...unknown[]]\' is not assignable to parameter of type \'[viewState: ViewState, eState?: any]\'.\\n Target allows only 2 element(s) but source may have more.", "2605853574"],
163+
[346, 50, 4, "Argument of type \'TFile | null\' is not assignable to parameter of type \'TFile\'.\\n Type \'null\' is not assignable to type \'TFile\'.", "2087597251"]
164164
],
165165
"src/resourcesFolder.tsx:3252219439": [
166166
[14, 39, 4, "Type \'string | null\' is not assignable to type \'string | undefined\'.", "2087944093"],
@@ -248,15 +248,15 @@ exports[`eslint recommended rules`] = {
248248
[546, 40, 173, "Unexpected lexical declaration in case block.", "1677356781"],
249249
[605, 8, 9, "Unexpected \'debugger\' statement.", "3201740415"]
250250
],
251-
"src/main.tsx:2818674161": [
252-
[39, 20, 25, "\'props\' is defined but never used.", "2326264458"],
253-
[39, 50, 3, "\'JSX\' is not defined.", "193455940"],
254-
[41, 21, 26, "\'props\' is defined but never used.", "3027674394"],
255-
[41, 52, 3, "\'JSX\' is not defined.", "193455940"],
256-
[43, 22, 27, "\'props\' is defined but never used.", "3219987113"],
257-
[43, 54, 3, "\'JSX\' is not defined.", "193455940"],
258-
[45, 20, 25, "\'props\' is defined but never used.", "2862218600"],
259-
[45, 50, 3, "\'JSX\' is not defined.", "193455940"]
251+
"src/main.tsx:3824590103": [
252+
[41, 20, 25, "\'props\' is defined but never used.", "2326264458"],
253+
[41, 50, 3, "\'JSX\' is not defined.", "193455940"],
254+
[43, 21, 26, "\'props\' is defined but never used.", "3027674394"],
255+
[43, 52, 3, "\'JSX\' is not defined.", "193455940"],
256+
[45, 22, 27, "\'props\' is defined but never used.", "3219987113"],
257+
[45, 54, 3, "\'JSX\' is not defined.", "193455940"],
258+
[47, 20, 25, "\'props\' is defined but never used.", "2862218600"],
259+
[47, 50, 3, "\'JSX\' is not defined.", "193455940"]
260260
],
261261
"src/types.tsx:1997290449": [
262262
[117, 13, 25, "\'iframe\' is defined but never used.", "3579356060"],
@@ -537,68 +537,53 @@ exports[`eslint ts stricter type checking`] = {
537537
[83, 24, 20, "Unsafe member access .scrollLeft on an \`any\` value.", "1612420442"],
538538
[84, 24, 19, "Unsafe member access .scrollTop on an \`any\` value.", "2001127978"]
539539
],
540-
"src/main.tsx:2818674161": [
541-
[76, 8, 18, "Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the \`void\` operator.", "3515082203"],
542-
[103, 20, 41, "Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the \`void\` operator.", "1879446176"],
543-
[107, 20, 41, "Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the \`void\` operator.", "3149801344"],
544-
[146, 94, 15, "Unsafe return of an \`any\` typed value.", "49725155"],
545-
[151, 30, 298, "Unsafe assignment of an \`any\` value.", "613659978"],
546-
[151, 59, 41, "Unsafe argument of type \`any\` assigned to a parameter of type \`{}\`.", "941194689"],
547-
[151, 59, 33, "Unsafe member access .config on an \`any\` value.", "2601364793"],
548-
[153, 38, 43, "Unsafe return of an \`any\` typed value.", "3906983353"],
549-
[153, 38, 32, "Unsafe member access .field on an \`any\` value.", "863086289"],
550-
[153, 38, 32, "Unsafe call of an \`any\` typed value.", "863086289"],
551-
[154, 41, 7, "Unsafe member access .file on an \`any\` value.", "1407613802"],
552-
[188, 8, 74, "Unsafe assignment of an \`any\` value.", "2342158860"],
553-
[193, 27, 29, "Promise returned in function argument where a void return was expected.", "2042982007"],
554-
[225, 12, 38, "Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the \`void\` operator.", "3135566631"],
555-
[231, 29, 12, "Unsafe member access .api on an \`any\` value.", "1432009774"],
556-
[231, 46, 12, "Unsafe member access .api on an \`any\` value.", "1432009774"],
557-
[231, 46, 17, "Unsafe call of an \`any\` typed value.", "2943671347"],
558-
[241, 14, 27, "Unsafe assignment of an \`any\` value.", "2794856681"],
559-
[241, 28, 13, "Unsafe member access .api on an \`any\` value.", "4288708369"],
560-
[242, 14, 43, "Unsafe assignment of an \`any\` value.", "3159985781"],
561-
[242, 29, 17, "Unsafe member access .page on an \`any\` value.", "2130891170"],
562-
[242, 29, 17, "Unsafe call of an \`any\` typed value.", "2130891170"],
563-
[243, 14, 52, "Unsafe assignment of an \`any\` value.", "2543479152"],
564-
[243, 38, 28, "Unsafe member access [propertyName] on an \`any\` value.", "3907068924"],
565-
[244, 19, 8, "Unsafe assignment of an \`any\` value.", "805125816"],
566-
[244, 29, 25, "Unsafe assignment of an \`any\` value.", "4129864140"],
567-
[244, 37, 17, "Unsafe member access ._loaded on an \`any\` value.", "3366901297"],
568-
[244, 56, 11, "Unsafe assignment of an \`any\` value.", "2906817248"],
569-
[244, 69, 12, "Unsafe assignment of an \`any\` value.", "1434885611"],
570-
[244, 83, 21, "Unsafe assignment of an \`any\` value.", "3743879060"],
571-
[246, 16, 26, "Unsafe member access .path on an \`any\` value.", "3365253047"],
572-
[247, 67, 26, "Unsafe argument of type \`any\` assigned to a parameter of type \`string\`.", "3365253047"],
573-
[247, 67, 26, "Unsafe member access .path on an \`any\` value.", "3365253047"],
574-
[249, 64, 21, "Unsafe argument of type \`any\` assigned to a parameter of type \`string\`.", "3743879060"],
575-
[253, 12, 29, "Unsafe return of an \`any\` typed value.", "1336076645"],
576-
[256, 12, 42, "Unsafe return of an \`any\` typed value.", "3976148324"],
577-
[268, 30, 29, "Unsafe assignment of an \`any\` value. \`this\` is typed as \`any\`.\\nYou can try to fix this by turning on the \`noImplicitThis\` compiler option, or adding a \`this\` parameter to the function.", "119685691"],
578-
[268, 38, 9, "Unsafe member access .view on an \`any\` value. \`this\` is typed as \`any\`.\\nYou can try to fix this by turning on the \`noImplicitThis\` compiler option, or adding a \`this\` parameter to the function.", "1162983360"],
579-
[268, 38, 19, "Unsafe call of an \`any\` typed value. \`this\` is typed as \`any\`.\\nYou can try to fix this by turning on the \`noImplicitThis\` compiler option, or adding a \`this\` parameter to the function.", "2066778864"],
580-
[270, 28, 11, "Unsafe member access .file on an \`any\` value.", "93474597"],
581-
[270, 70, 21, "Computed name [this.id || state.file] resolves to an any value.", "3790623103"],
582-
[270, 70, 7, "Unsafe member access .id on an \`any\` value. \`this\` is typed as \`any\`.\\nYou can try to fix this by turning on the \`noImplicitThis\` compiler option, or adding a \`this\` parameter to the function.", "1929661248"],
583-
[270, 81, 10, "Unsafe member access .file on an \`any\` value.", "3925554426"],
584-
[271, 62, 21, "Computed name [this.id || state.file] resolves to an any value.", "3790623103"],
585-
[271, 62, 7, "Unsafe member access .id on an \`any\` value. \`this\` is typed as \`any\`.\\nYou can try to fix this by turning on the \`noImplicitThis\` compiler option, or adding a \`this\` parameter to the function.", "1929661248"],
586-
[271, 73, 10, "Unsafe member access .file on an \`any\` value.", "3925554426"],
587-
[274, 24, 24, "Unsafe return of an \`any\` typed value.", "98186542"],
588-
[283, 28, 17, "Unsafe member access .file on an \`any\` value.", "1819858684"],
589-
[284, 55, 27, "Computed name [this.id || state.state.file] resolves to an any value.", "3532845062"],
590-
[284, 55, 7, "Unsafe member access .id on an \`any\` value. \`this\` is typed as \`any\`.\\nYou can try to fix this by turning on the \`noImplicitThis\` compiler option, or adding a \`this\` parameter to the function.", "1929661248"],
591-
[284, 66, 16, "Unsafe member access .file on an \`any\` value.", "3421129411"],
592-
[287, 78, 16, "Unsafe argument of type \`any\` assigned to a parameter of type \`string\`.", "3421129411"],
593-
[287, 78, 16, "Unsafe member access .file on an \`any\` value.", "3421129411"],
594-
[295, 59, 16, "Unsafe member access .file on an \`any\` value.", "3421129411"],
595-
[295, 59, 16, "Computed name [state.state.file] resolves to an any value.", "3421129411"],
596-
[297, 32, 45, "Unsafe return of an \`any\` typed value.", "2464750589"],
597-
[301, 24, 42, "Unsafe return of an \`any\` typed value.", "1035967905"],
598-
[312, 12, 27, "Unsafe assignment of an \`any\` value.", "4164923371"],
599-
[321, 16, 27, "Unsafe assignment of an \`any\` value.", "4164923371"],
600-
[333, 97, 2, "Async arrow function \'markdownPostProcessor\' has no \'await\' expression.", "5859494"],
601-
[345, 24, 57, "Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the \`void\` operator.", "639710904"]
540+
"src/main.tsx:3824590103": [
541+
[78, 8, 18, "Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the \`void\` operator.", "3515082203"],
542+
[105, 20, 41, "Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the \`void\` operator.", "1879446176"],
543+
[109, 20, 41, "Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the \`void\` operator.", "3149801344"],
544+
[148, 94, 15, "Unsafe return of an \`any\` typed value.", "49725155"],
545+
[153, 30, 298, "Unsafe assignment of an \`any\` value.", "613659978"],
546+
[153, 59, 41, "Unsafe argument of type \`any\` assigned to a parameter of type \`{}\`.", "941194689"],
547+
[153, 59, 33, "Unsafe member access .config on an \`any\` value.", "2601364793"],
548+
[155, 38, 43, "Unsafe return of an \`any\` typed value.", "3906983353"],
549+
[155, 38, 32, "Unsafe member access .field on an \`any\` value.", "863086289"],
550+
[155, 38, 32, "Unsafe call of an \`any\` typed value.", "863086289"],
551+
[156, 41, 7, "Unsafe member access .file on an \`any\` value.", "1407613802"],
552+
[190, 8, 74, "Unsafe assignment of an \`any\` value.", "2342158860"],
553+
[195, 27, 29, "Promise returned in function argument where a void return was expected.", "2042982007"],
554+
[227, 12, 38, "Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the \`void\` operator.", "3135566631"],
555+
[233, 29, 12, "Unsafe member access .api on an \`any\` value.", "1432009774"],
556+
[233, 46, 12, "Unsafe member access .api on an \`any\` value.", "1432009774"],
557+
[233, 46, 17, "Unsafe call of an \`any\` typed value.", "2943671347"],
558+
[247, 16, 26, "Unsafe member access .path on an \`any\` value.", "3365253047"],
559+
[248, 67, 26, "Unsafe argument of type \`any\` assigned to a parameter of type \`string\`.", "3365253047"],
560+
[248, 67, 26, "Unsafe member access .path on an \`any\` value.", "3365253047"],
561+
[250, 64, 21, "Unsafe argument of type \`any\` assigned to a parameter of type \`string\`.", "3743879060"],
562+
[269, 30, 29, "Unsafe assignment of an \`any\` value. \`this\` is typed as \`any\`.\\nYou can try to fix this by turning on the \`noImplicitThis\` compiler option, or adding a \`this\` parameter to the function.", "119685691"],
563+
[269, 38, 9, "Unsafe member access .view on an \`any\` value. \`this\` is typed as \`any\`.\\nYou can try to fix this by turning on the \`noImplicitThis\` compiler option, or adding a \`this\` parameter to the function.", "1162983360"],
564+
[269, 38, 19, "Unsafe call of an \`any\` typed value. \`this\` is typed as \`any\`.\\nYou can try to fix this by turning on the \`noImplicitThis\` compiler option, or adding a \`this\` parameter to the function.", "2066778864"],
565+
[271, 28, 11, "Unsafe member access .file on an \`any\` value.", "93474597"],
566+
[271, 70, 21, "Computed name [this.id || state.file] resolves to an any value.", "3790623103"],
567+
[271, 70, 7, "Unsafe member access .id on an \`any\` value. \`this\` is typed as \`any\`.\\nYou can try to fix this by turning on the \`noImplicitThis\` compiler option, or adding a \`this\` parameter to the function.", "1929661248"],
568+
[271, 81, 10, "Unsafe member access .file on an \`any\` value.", "3925554426"],
569+
[272, 62, 21, "Computed name [this.id || state.file] resolves to an any value.", "3790623103"],
570+
[272, 62, 7, "Unsafe member access .id on an \`any\` value. \`this\` is typed as \`any\`.\\nYou can try to fix this by turning on the \`noImplicitThis\` compiler option, or adding a \`this\` parameter to the function.", "1929661248"],
571+
[272, 73, 10, "Unsafe member access .file on an \`any\` value.", "3925554426"],
572+
[275, 24, 24, "Unsafe return of an \`any\` typed value.", "98186542"],
573+
[284, 28, 17, "Unsafe member access .file on an \`any\` value.", "1819858684"],
574+
[285, 55, 27, "Computed name [this.id || state.state.file] resolves to an any value.", "3532845062"],
575+
[285, 55, 7, "Unsafe member access .id on an \`any\` value. \`this\` is typed as \`any\`.\\nYou can try to fix this by turning on the \`noImplicitThis\` compiler option, or adding a \`this\` parameter to the function.", "1929661248"],
576+
[285, 66, 16, "Unsafe member access .file on an \`any\` value.", "3421129411"],
577+
[288, 78, 16, "Unsafe argument of type \`any\` assigned to a parameter of type \`string\`.", "3421129411"],
578+
[288, 78, 16, "Unsafe member access .file on an \`any\` value.", "3421129411"],
579+
[296, 59, 16, "Unsafe member access .file on an \`any\` value.", "3421129411"],
580+
[296, 59, 16, "Computed name [state.state.file] resolves to an any value.", "3421129411"],
581+
[298, 32, 45, "Unsafe return of an \`any\` typed value.", "2464750589"],
582+
[302, 24, 42, "Unsafe return of an \`any\` typed value.", "1035967905"],
583+
[313, 12, 27, "Unsafe assignment of an \`any\` value.", "4164923371"],
584+
[322, 16, 27, "Unsafe assignment of an \`any\` value.", "4164923371"],
585+
[334, 97, 2, "Async arrow function \'markdownPostProcessor\' has no \'await\' expression.", "5859494"],
586+
[346, 24, 57, "Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the \`void\` operator.", "639710904"]
602587
],
603588
"src/resourcesFolder.tsx:3252219439": [
604589
[14, 58, 27, "Unsafe argument of type \`any\` assigned to a parameter of type \`string\`.", "3353493259"],

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"minify": "^7.0.2",
4848
"move-file-cli": "^3.0.0",
4949
"obsidian": "latest",
50+
"obsidian-dataview": "^0.5.41",
5051
"prettier": "^2.3.2",
5152
"rimraf": "^3.0.2",
5253
"rollup": "^2.32.1",

0 commit comments

Comments
 (0)