1
0
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:
Henry Heino 2022-08-31 04:57:28 -07:00 committed by GitHub
parent 8d67aefcd5
commit 1069d7d6fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 565 additions and 190 deletions

View File

@ -6,6 +6,7 @@ _releases/
*.min.js *.min.js
**/commands/index.ts **/commands/index.ts
**/node_modules/ **/node_modules/
packages/generator-joplin/generators/app/templates/api/
Assets/ Assets/
docs/ docs/
highlight.pack.js highlight.pack.js

View File

@ -63,13 +63,13 @@
}, },
"devDependencies": { "devDependencies": {
"@seiyab/eslint-plugin-react-hooks": "^4.5.1-alpha.5", "@seiyab/eslint-plugin-react-hooks": "^4.5.1-alpha.5",
"@typescript-eslint/eslint-plugin": "^4.6.0", "@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^4.6.0", "@typescript-eslint/parser": "^5.33.1",
"cspell": "^5.20.0", "cspell": "^5.20.0",
"eslint": "^7.6.0", "eslint": "^8.22.0",
"eslint-interactive": "^10.0.0", "eslint-interactive": "^10.0.0",
"eslint-plugin-import": "^2.20.2", "eslint-plugin-import": "^2.26.0",
"eslint-plugin-react": "^7.18.0", "eslint-plugin-react": "^7.30.1",
"fs-extra": "^8.1.0", "fs-extra": "^8.1.0",
"glob": "^7.1.6", "glob": "^7.1.6",
"gulp": "^4.0.2", "gulp": "^4.0.2",
@ -78,7 +78,7 @@
"lint-staged": "^9.2.1", "lint-staged": "^9.2.1",
"madge": "^4.0.2", "madge": "^4.0.2",
"typedoc": "^0.17.8", "typedoc": "^0.17.8",
"typescript": "4.0.5" "typescript": "4.7.4"
}, },
"dependencies": { "dependencies": {
"@types/fs-extra": "^9.0.13", "@types/fs-extra": "^9.0.13",

View File

@ -106,7 +106,7 @@
"ts-jest": "^28.0.5", "ts-jest": "^28.0.5",
"ts-loader": "^9.3.1", "ts-loader": "^9.3.1",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"typescript": "^4.0.5", "typescript": "^4.7.4",
"uglify-js": "^3.13.10", "uglify-js": "^3.13.10",
"webpack": "^5.74.0" "webpack": "^5.74.0"
} }

View File

@ -11,7 +11,7 @@ class GeolocationReact {
speed: 0, speed: 0,
heading: 0, heading: 0,
accuracy: 20, accuracy: 20,
longitude: -3.4596633911132812, longitude: -3.45966339111328,
altitude: 0, altitude: 0,
latitude: 48.73219093634444, latitude: 48.73219093634444,
}, },

View File

@ -8,7 +8,7 @@ class Registry {
private syncTargets_: any = {}; private syncTargets_: any = {};
private logger_: Logger = null; private logger_: Logger = null;
private schedSyncCalls_: boolean[] = []; private schedSyncCalls_: boolean[] = [];
private waitForReSyncCalls_: boolean[]= []; private waitForReSyncCalls_: boolean[] = [];
private setupRecurrentCalls_: boolean[] = []; private setupRecurrentCalls_: boolean[] = [];
private timerCallbackCalls_: boolean[] = []; private timerCallbackCalls_: boolean[] = [];
private showErrorMessageBoxHandler_: any; private showErrorMessageBoxHandler_: any;

View File

@ -39,7 +39,7 @@ export default class SessionModel extends BaseModel<Session> {
public async deleteByUserId(userId: Uuid, exceptSessionId: Uuid = '') { public async deleteByUserId(userId: Uuid, exceptSessionId: Uuid = '') {
const query = this.db(this.tableName).where('user_id', '=', userId); 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(); await query.delete();
} }

View File

@ -50,7 +50,7 @@ export default class ShareUserModel extends BaseModel<ShareUser> {
.select(this.defaultFields) .select(this.defaultFields)
.whereIn('share_id', shareIds); .whereIn('share_id', shareIds);
if (status !== null) query.where('status', status); if (status !== null) void query.where('status', status);
const rows: ShareUser[] = await query; const rows: ShareUser[] = await query;

732
yarn.lock

File diff suppressed because it is too large Load Diff