diff options
author | 2023-07-30 10:55:59 -0600 | |
---|---|---|
committer | 2023-07-30 23:57:51 +0000 | |
commit | 080d8b05297f3f5afcf33354a40a5201697b1df5 (patch) | |
tree | 35180bd3cb9fcd137feca3fe169032cbbb469463 /src/api | |
parent | refactor: various improvements (#1296) (diff) | |
download | ferdium-app-080d8b05297f3f5afcf33354a40a5201697b1df5.tar.gz ferdium-app-080d8b05297f3f5afcf33354a40a5201697b1df5.tar.zst ferdium-app-080d8b05297f3f5afcf33354a40a5201697b1df5.zip |
refactor: more lint improvements
- set parserOptions.ecmaVersion to latest and env to es2024 in eslint config
- install missing types libraries
- install eslint-plugin-sonar
- enable eslint-plugin-sonar recommended rules and declare jsx-runtime for react in eslint config
- clean up disabled lint rules which don't inflict problems anymore
- disable various lint issues and fix others
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/UserApi.ts | 2 | ||||
-rw-r--r-- | src/api/server/LocalApi.ts | 2 | ||||
-rw-r--r-- | src/api/server/ServerApi.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/api/UserApi.ts b/src/api/UserApi.ts index 31c8acead..2b319207a 100644 --- a/src/api/UserApi.ts +++ b/src/api/UserApi.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { BinaryLike } from 'crypto'; | 1 | import { BinaryLike } from 'node:crypto'; |
2 | import { hash } from '../helpers/password-helpers'; | 2 | import { hash } from '../helpers/password-helpers'; |
3 | 3 | ||
4 | export default class UserApi { | 4 | export default class UserApi { |
diff --git a/src/api/server/LocalApi.ts b/src/api/server/LocalApi.ts index a292bc42d..6764816f9 100644 --- a/src/api/server/LocalApi.ts +++ b/src/api/server/LocalApi.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { ExecException } from 'child_process'; | 1 | import { ExecException } from 'node:child_process'; |
2 | import { ipcRenderer } from 'electron'; | 2 | import { ipcRenderer } from 'electron'; |
3 | import fastFolderSize from 'fast-folder-size'; | 3 | import fastFolderSize from 'fast-folder-size'; |
4 | 4 | ||
diff --git a/src/api/server/ServerApi.ts b/src/api/server/ServerApi.ts index de8e0a85c..7b17fcdcd 100644 --- a/src/api/server/ServerApi.ts +++ b/src/api/server/ServerApi.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | /* eslint-disable import/no-import-module-exports */ | 1 | /* eslint-disable import/no-import-module-exports */ |
2 | /* eslint-disable global-require */ | 2 | /* eslint-disable global-require */ |
3 | import { join } from 'path'; | 3 | import { join } from 'node:path'; |
4 | import tar from 'tar'; | 4 | import tar from 'tar'; |
5 | import { | 5 | import { |
6 | readdirSync, | 6 | readdirSync, |