chore: upgrade eslint and prettier (#2376)
* chore: upgrade eslint and prettier * chore: add restrict-template-expressions
This commit is contained in:
@@ -62,7 +62,7 @@ export class ArchiveManager {
|
||||
}
|
||||
|
||||
formattedDateForExports() {
|
||||
const string = `${new Date()}`
|
||||
const string = new Date().toString()
|
||||
// Match up to the first parenthesis, i.e do not include '(Central Standard Time)'
|
||||
const matches = string.match(/^(.*?) \(/)
|
||||
if (matches && matches.length >= 2) {
|
||||
|
||||
@@ -12,7 +12,10 @@ export class ChangelogService implements ChangelogServiceInterface {
|
||||
private changeLog?: Changelog
|
||||
private lastReadChangeListeners: ChangelogLastReadVersionListener[] = []
|
||||
|
||||
constructor(private environment: Environment, private diskService: StorageServiceInterface) {}
|
||||
constructor(
|
||||
private environment: Environment,
|
||||
private diskService: StorageServiceInterface,
|
||||
) {}
|
||||
|
||||
public addLastReadChangeListener(listener: ChangelogLastReadVersionListener) {
|
||||
this.lastReadChangeListeners.push(listener)
|
||||
|
||||
@@ -12,7 +12,10 @@ export class KeyboardService {
|
||||
private commandHandlers = new Set<KeyboardCommandHandler>()
|
||||
private commandMap = new Map<KeyboardCommand, KeyboardShortcut>()
|
||||
|
||||
constructor(private platform: Platform, environment: Environment) {
|
||||
constructor(
|
||||
private platform: Platform,
|
||||
environment: Environment,
|
||||
) {
|
||||
window.addEventListener('keydown', this.handleKeyDown)
|
||||
window.addEventListener('keyup', this.handleKeyUp)
|
||||
window.addEventListener('blur', this.handleWindowBlur)
|
||||
|
||||
@@ -14,4 +14,4 @@ const PREFERENCE_IDS = [
|
||||
'whats-new',
|
||||
] as const
|
||||
|
||||
export type PreferenceId = typeof PREFERENCE_IDS[number]
|
||||
export type PreferenceId = (typeof PREFERENCE_IDS)[number]
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export const ValidAppViewRoutes = ['u2f', 'extension'] as const
|
||||
|
||||
export type AppViewRouteParam = typeof ValidAppViewRoutes[number]
|
||||
export type AppViewRouteParam = (typeof ValidAppViewRoutes)[number]
|
||||
|
||||
@@ -6,7 +6,10 @@ import { Uuid } from '@standardnotes/domain-core'
|
||||
export class ActiveThemeList {
|
||||
private list: (NativeFeatureIdentifier | Uuid)[] = []
|
||||
|
||||
constructor(private items: ItemManagerInterface, initialList?: (NativeFeatureIdentifier | Uuid)[]) {
|
||||
constructor(
|
||||
private items: ItemManagerInterface,
|
||||
initialList?: (NativeFeatureIdentifier | Uuid)[],
|
||||
) {
|
||||
if (initialList) {
|
||||
this.list = initialList
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user