mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
Chore: Update ESLint and TypeScript (#6774)
This commit is contained in:
parent
8d67aefcd5
commit
1069d7d6fb
@ -6,6 +6,7 @@ _releases/
|
||||
*.min.js
|
||||
**/commands/index.ts
|
||||
**/node_modules/
|
||||
packages/generator-joplin/generators/app/templates/api/
|
||||
Assets/
|
||||
docs/
|
||||
highlight.pack.js
|
||||
|
12
package.json
12
package.json
@ -63,13 +63,13 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@seiyab/eslint-plugin-react-hooks": "^4.5.1-alpha.5",
|
||||
"@typescript-eslint/eslint-plugin": "^4.6.0",
|
||||
"@typescript-eslint/parser": "^4.6.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.33.1",
|
||||
"@typescript-eslint/parser": "^5.33.1",
|
||||
"cspell": "^5.20.0",
|
||||
"eslint": "^7.6.0",
|
||||
"eslint": "^8.22.0",
|
||||
"eslint-interactive": "^10.0.0",
|
||||
"eslint-plugin-import": "^2.20.2",
|
||||
"eslint-plugin-react": "^7.18.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-react": "^7.30.1",
|
||||
"fs-extra": "^8.1.0",
|
||||
"glob": "^7.1.6",
|
||||
"gulp": "^4.0.2",
|
||||
@ -78,7 +78,7 @@
|
||||
"lint-staged": "^9.2.1",
|
||||
"madge": "^4.0.2",
|
||||
"typedoc": "^0.17.8",
|
||||
"typescript": "4.0.5"
|
||||
"typescript": "4.7.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/fs-extra": "^9.0.13",
|
||||
|
@ -106,7 +106,7 @@
|
||||
"ts-jest": "^28.0.5",
|
||||
"ts-loader": "^9.3.1",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^4.0.5",
|
||||
"typescript": "^4.7.4",
|
||||
"uglify-js": "^3.13.10",
|
||||
"webpack": "^5.74.0"
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ class GeolocationReact {
|
||||
speed: 0,
|
||||
heading: 0,
|
||||
accuracy: 20,
|
||||
longitude: -3.4596633911132812,
|
||||
longitude: -3.45966339111328,
|
||||
altitude: 0,
|
||||
latitude: 48.73219093634444,
|
||||
},
|
||||
|
@ -8,7 +8,7 @@ class Registry {
|
||||
private syncTargets_: any = {};
|
||||
private logger_: Logger = null;
|
||||
private schedSyncCalls_: boolean[] = [];
|
||||
private waitForReSyncCalls_: boolean[]= [];
|
||||
private waitForReSyncCalls_: boolean[] = [];
|
||||
private setupRecurrentCalls_: boolean[] = [];
|
||||
private timerCallbackCalls_: boolean[] = [];
|
||||
private showErrorMessageBoxHandler_: any;
|
||||
|
@ -39,7 +39,7 @@ export default class SessionModel extends BaseModel<Session> {
|
||||
|
||||
public async deleteByUserId(userId: Uuid, exceptSessionId: Uuid = '') {
|
||||
const query = this.db(this.tableName).where('user_id', '=', userId);
|
||||
if (exceptSessionId) query.where('id', '!=', exceptSessionId);
|
||||
if (exceptSessionId) void query.where('id', '!=', exceptSessionId);
|
||||
await query.delete();
|
||||
}
|
||||
|
||||
|
@ -50,7 +50,7 @@ export default class ShareUserModel extends BaseModel<ShareUser> {
|
||||
.select(this.defaultFields)
|
||||
.whereIn('share_id', shareIds);
|
||||
|
||||
if (status !== null) query.where('status', status);
|
||||
if (status !== null) void query.where('status', status);
|
||||
|
||||
const rows: ShareUser[] = await query;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user