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 @@