diff --git a/.eslintrc.json b/.eslintrc.json
index 9827f94..3f5a528 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -23,12 +23,20 @@
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
"semi": "error",
"indent": ["error", 2],
+ "eol-last": ["error", "always"],
"tsdoc/syntax": "warn",
"react/function-component-definition": ["warn", {
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}],
- "react/display-name": ["error", { "ignoreTranspilerName": false }]
+ "react/display-name": ["error", { "ignoreTranspilerName": false }],
+ "@typescript-eslint/explicit-module-boundary-types": ["warn", {
+ "allowArgumentsExplicitlyTypedAsAny": true,
+ "allowDirectConstAssertionInArrowFunctions": true,
+ "allowedNames": [],
+ "allowHigherOrderFunctions": true,
+ "allowTypedFunctionExpressions": true
+ }]
},
"extends": [
"eslint:recommended",
diff --git a/src/app/App.tsx b/src/app/App.tsx
index 0d7b8ca..86892e6 100644
--- a/src/app/App.tsx
+++ b/src/app/App.tsx
@@ -11,4 +11,4 @@
export const App = (): JSX.Element => (
-);
\ No newline at end of file
+);
diff --git a/src/krist/KristConnectionService.ts b/src/krist/KristConnectionService.ts
index 4684f85..3f66adc 100644
--- a/src/krist/KristConnectionService.ts
+++ b/src/krist/KristConnectionService.ts
@@ -166,4 +166,4 @@
export const kristService = (): KristConnectionService => {
return kristServiceInstance // Use existing instance
|| (kristServiceInstance = new KristConnectionService());
-};
\ No newline at end of file
+};
diff --git a/src/krist/KristWsApi.ts b/src/krist/KristWsApi.ts
index 9ff545c..c14b0a0 100644
--- a/src/krist/KristWsApi.ts
+++ b/src/krist/KristWsApi.ts
@@ -19,4 +19,4 @@
async logout(): Promise {
return this.conn.sendMessage("logout") as Promise;
}
-}
\ No newline at end of file
+}
diff --git a/src/krist/types/KristApiTypes.ts b/src/krist/types/KristApiTypes.ts
index 94f3616..dbdcf57 100644
--- a/src/krist/types/KristApiTypes.ts
+++ b/src/krist/types/KristApiTypes.ts
@@ -2,4 +2,4 @@
ok?: boolean,
url?: string,
expires?: number
-};
\ No newline at end of file
+};
diff --git a/src/krist/types/KristTypes.ts b/src/krist/types/KristTypes.ts
index f397610..257e16d 100644
--- a/src/krist/types/KristTypes.ts
+++ b/src/krist/types/KristTypes.ts
@@ -14,4 +14,4 @@
address: string;
balance: number;
firstseen: DateString;
-}
\ No newline at end of file
+}
diff --git a/src/krist/types/ws/KristWsEvents.ts b/src/krist/types/ws/KristWsEvents.ts
index a5463ac..7750a76 100644
--- a/src/krist/types/ws/KristWsEvents.ts
+++ b/src/krist/types/ws/KristWsEvents.ts
@@ -5,4 +5,4 @@
event: "block";
new_work: number;
block: KristBlock;
-}
\ No newline at end of file
+}
diff --git a/src/krist/types/ws/KristWsMessages.ts b/src/krist/types/ws/KristWsMessages.ts
index 5e2c536..5b45c08 100644
--- a/src/krist/types/ws/KristWsMessages.ts
+++ b/src/krist/types/ws/KristWsMessages.ts
@@ -43,4 +43,4 @@
export interface KristWsMessageLogoutResponse extends KristWsResponseMessage {
type: "logout";
-}
\ No newline at end of file
+}
diff --git a/src/krist/types/ws/KristWsTypes.ts b/src/krist/types/ws/KristWsTypes.ts
index 97f2770..c450d9f 100644
--- a/src/krist/types/ws/KristWsTypes.ts
+++ b/src/krist/types/ws/KristWsTypes.ts
@@ -16,4 +16,4 @@
id: number;
}
-export type KristWsAnyMessage = KristWsMessage | KristWsResponseMessage | KristWsOkMessage;
\ No newline at end of file
+export type KristWsAnyMessage = KristWsMessage | KristWsResponseMessage | KristWsOkMessage;
diff --git a/src/layouts/credits/index.tsx b/src/layouts/credits/index.tsx
index 7e85399..eb62234 100644
--- a/src/layouts/credits/index.tsx
+++ b/src/layouts/credits/index.tsx
@@ -90,4 +90,4 @@
: {supporter.name}
));
}
-}
\ No newline at end of file
+}
diff --git a/src/layouts/main/components/nav/Brand.tsx b/src/layouts/main/components/nav/Brand.tsx
index 018f385..f5ea124 100644
--- a/src/layouts/main/components/nav/Brand.tsx
+++ b/src/layouts/main/components/nav/Brand.tsx
@@ -42,4 +42,4 @@
);
-};
\ No newline at end of file
+};
diff --git a/src/layouts/main/components/nav/ConnectionIndicator.tsx b/src/layouts/main/components/nav/ConnectionIndicator.tsx
index 687c8a9..15ef25c 100644
--- a/src/layouts/main/components/nav/ConnectionIndicator.tsx
+++ b/src/layouts/main/components/nav/ConnectionIndicator.tsx
@@ -6,4 +6,4 @@
Connected
-);
\ No newline at end of file
+);
diff --git a/src/layouts/main/components/nav/Search.tsx b/src/layouts/main/components/nav/Search.tsx
index 99149bd..6bf7a8f 100644
--- a/src/layouts/main/components/nav/Search.tsx
+++ b/src/layouts/main/components/nav/Search.tsx
@@ -9,4 +9,4 @@
-);
\ No newline at end of file
+);
diff --git a/src/layouts/main/components/nav/SettingsCog.tsx b/src/layouts/main/components/nav/SettingsCog.tsx
index 1240eb1..4447838 100644
--- a/src/layouts/main/components/nav/SettingsCog.tsx
+++ b/src/layouts/main/components/nav/SettingsCog.tsx
@@ -4,4 +4,4 @@
export const SettingsCog = (): JSX.Element => (
-);
\ No newline at end of file
+);
diff --git a/src/layouts/main/components/sidebar/Footer.tsx b/src/layouts/main/components/sidebar/Footer.tsx
index f1973bd..3388039 100644
--- a/src/layouts/main/components/sidebar/Footer.tsx
+++ b/src/layouts/main/components/sidebar/Footer.tsx
@@ -36,4 +36,4 @@
);
-};
\ No newline at end of file
+};
diff --git a/src/layouts/main/components/sidebar/SidebarItem.tsx b/src/layouts/main/components/sidebar/SidebarItem.tsx
index 67d2d91..cd03bcb 100644
--- a/src/layouts/main/components/sidebar/SidebarItem.tsx
+++ b/src/layouts/main/components/sidebar/SidebarItem.tsx
@@ -31,4 +31,4 @@
;
}
-}
\ No newline at end of file
+}
diff --git a/src/layouts/main/components/sidebar/TotalBalance.tsx b/src/layouts/main/components/sidebar/TotalBalance.tsx
index fb672e6..83e4b42 100644
--- a/src/layouts/main/components/sidebar/TotalBalance.tsx
+++ b/src/layouts/main/components/sidebar/TotalBalance.tsx
@@ -22,4 +22,4 @@
;
}
-}
\ No newline at end of file
+}
diff --git a/src/layouts/main/components/sidebar/index.tsx b/src/layouts/main/components/sidebar/index.tsx
index cb76d81..c776f6a 100644
--- a/src/layouts/main/components/sidebar/index.tsx
+++ b/src/layouts/main/components/sidebar/index.tsx
@@ -28,4 +28,4 @@
-);
\ No newline at end of file
+);
diff --git a/src/layouts/main/index.tsx b/src/layouts/main/index.tsx
index f25e819..89aa458 100644
--- a/src/layouts/main/index.tsx
+++ b/src/layouts/main/index.tsx
@@ -32,4 +32,4 @@
-);
\ No newline at end of file
+);
diff --git a/src/shared-components/krist-value/index.tsx b/src/shared-components/krist-value/index.tsx
index 557fcc7..948ec0a 100644
--- a/src/shared-components/krist-value/index.tsx
+++ b/src/shared-components/krist-value/index.tsx
@@ -13,4 +13,4 @@
{value.toLocaleString()}
{long && KST}
-);
\ No newline at end of file
+);
diff --git a/src/utils/index.ts b/src/utils/index.ts
index cac1f83..f7c52f2 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -1,2 +1,2 @@
export const sleep = (duration: number): Promise =>
- new Promise(resolve => setTimeout(resolve, duration));
\ No newline at end of file
+ new Promise(resolve => setTimeout(resolve, duration));