mirror of https://github.com/jiahaog/Nativefier
Fix some NEW linting issues
This commit is contained in:
parent
c79341220d
commit
6cba7a90c6
|
@ -42,9 +42,9 @@ type SessionInteractionRequest = {
|
|||
propertyValue?: unknown;
|
||||
};
|
||||
|
||||
type SessionInteractionResult = {
|
||||
type SessionInteractionResult<T = unknown> = {
|
||||
id?: string;
|
||||
value?: unknown | Promise<unknown>;
|
||||
value?: T | Promise<T>;
|
||||
error?: Error;
|
||||
};
|
||||
|
||||
|
|
|
@ -202,7 +202,8 @@ const setDockBadge = isOSX()
|
|||
? (count?: number | string, bounce = false): void => {
|
||||
if (count !== undefined) {
|
||||
app.dock.setBadge(count.toString());
|
||||
if (bounce && typeof count === 'number' && count > currentBadgeCount) app.dock.bounce();
|
||||
if (bounce && typeof count === 'number' && count > currentBadgeCount)
|
||||
app.dock.bounce();
|
||||
currentBadgeCount = typeof count === 'number' ? count : 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@ module.exports = {
|
|||
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
|
||||
'@typescript-eslint/no-explicit-any': 'error',
|
||||
'@typescript-eslint/no-extraneous-class': 'error',
|
||||
'@typescript-eslint/no-implicit-any-catch': 'error',
|
||||
'@typescript-eslint/no-invalid-void-type': 'error',
|
||||
'@typescript-eslint/prefer-ts-expect-error': 'error',
|
||||
'@typescript-eslint/type-annotation-spacing': 'error',
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"incremental": true,
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"noImplicitAny": true,
|
||||
"resolveJsonModule": true,
|
||||
"skipLibCheck": true,
|
||||
"sourceMap": true,
|
||||
|
|
Loading…
Reference in New Issue