diff --git a/app/assets/javascripts/database.ts b/app/assets/javascripts/database.ts index deac64b9e..5134c0fd6 100644 --- a/app/assets/javascripts/database.ts +++ b/app/assets/javascripts/database.ts @@ -135,6 +135,7 @@ export class Database { const db = (await this.openDatabase())!; const transaction = db.transaction(STORE_NAME, READ_WRITE); return new Promise((resolve, reject) => { + // eslint-disable-next-line @typescript-eslint/no-empty-function transaction.oncomplete = () => { }; transaction.onerror = (event) => { const target = event!.target! as any; diff --git a/app/assets/javascripts/directives/functional/click-outside.ts b/app/assets/javascripts/directives/functional/click-outside.ts index 0b6246bdd..5f0a6d034 100644 --- a/app/assets/javascripts/directives/functional/click-outside.ts +++ b/app/assets/javascripts/directives/functional/click-outside.ts @@ -22,7 +22,7 @@ export function clickOutside($document: ng.IDocumentService) { $scope.$apply(attrs.clickOutside); didApplyClickOutside = true; } - }; + } $scope.$on('$destroy', () => { attrs.clickOutside = undefined; diff --git a/app/assets/javascripts/directives/functional/delay-hide.ts b/app/assets/javascripts/directives/functional/delay-hide.ts index 8625c4c21..f28588edb 100644 --- a/app/assets/javascripts/directives/functional/delay-hide.ts +++ b/app/assets/javascripts/directives/functional/delay-hide.ts @@ -16,23 +16,23 @@ export function delayHide($timeout: ng.ITimeoutService) { scopeAny.hidePromise = null; } showElement(true); - } + }; const hideSpinner = () => { scopeAny.hidePromise = $timeout( showElement.bind(this as any, false), getDelay() ); - } + }; const showElement = (show: boolean) => { show ? elem.css({ display: '' }) : elem.css({ display: 'none' }); - } + }; const getDelay = () => { const delay = parseInt(scopeAny.delay); return angular.isNumber(delay) ? delay : 200; - } + }; showElement(false); // Whenever the scope variable updates we simply diff --git a/app/assets/javascripts/directives/functional/elemReady.ts b/app/assets/javascripts/directives/functional/elemReady.ts index 2387f0083..f5d91ec28 100644 --- a/app/assets/javascripts/directives/functional/elemReady.ts +++ b/app/assets/javascripts/directives/functional/elemReady.ts @@ -5,7 +5,7 @@ export function elemReady($parse: ng.IParseService) { link: function($scope: ng.IScope, elem: JQLite, attrs: any) { elem.ready(function() { $scope.$apply(function() { - var func = $parse(attrs.elemReady); + const func = $parse(attrs.elemReady); func($scope); }); }); diff --git a/app/assets/javascripts/directives/functional/infiniteScroll.ts b/app/assets/javascripts/directives/functional/infiniteScroll.ts index 1e8b10241..349a59946 100644 --- a/app/assets/javascripts/directives/functional/infiniteScroll.ts +++ b/app/assets/javascripts/directives/functional/infiniteScroll.ts @@ -19,7 +19,7 @@ export function infiniteScroll() { }; elem.on('scroll', scopeAny.onScroll); scope.$on('$destroy', () => { - elem.off('scroll', scopeAny.onScroll);; + elem.off('scroll', scopeAny.onScroll); }); } }; diff --git a/app/assets/javascripts/directives/views/accountMenu.ts b/app/assets/javascripts/directives/views/accountMenu.ts index a0e76fa5d..7c044bc51 100644 --- a/app/assets/javascripts/directives/views/accountMenu.ts +++ b/app/assets/javascripts/directives/views/accountMenu.ts @@ -140,7 +140,7 @@ class AccountMenuCtrl extends PureViewCtrl { syncInProgress: sync.inProgress, syncError: sync.errorMessage, }); - }) + }); this.removeBetaWarningListener = autorun(() => { this.setState({ showBetaWarning: this.appState.showBetaWarning diff --git a/app/assets/javascripts/directives/views/actionsMenu.ts b/app/assets/javascripts/directives/views/actionsMenu.ts index 99d60426a..e9f2a6689 100644 --- a/app/assets/javascripts/directives/views/actionsMenu.ts +++ b/app/assets/javascripts/directives/views/actionsMenu.ts @@ -40,7 +40,7 @@ type ActionsMenuState = { }[] } -class ActionsMenuCtrl extends PureViewCtrl<{}, ActionsMenuState> implements ActionsMenuScope { +class ActionsMenuCtrl extends PureViewCtrl implements ActionsMenuScope { application!: WebApplication item!: SNItem private removeHiddenExtensionsListener?: IReactionDisposer; @@ -63,7 +63,7 @@ class ActionsMenuCtrl extends PureViewCtrl<{}, ActionsMenuState> implements Acti hiddenExtensions: this.appState.actionsMenu.hiddenExtensions }); }); - }; + } deinit() { this.removeHiddenExtensionsListener?.(); @@ -74,7 +74,7 @@ class ActionsMenuCtrl extends PureViewCtrl<{}, ActionsMenuState> implements Acti const extensions = this.application.actionsManager!.getExtensions().sort((a, b) => { return a.name.toLowerCase() < b.name.toLowerCase() ? -1 : 1; }); - let extensionsState: Record = {}; + const extensionsState: Record = {}; extensions.map((extension) => { extensionsState[extension.uuid] = { loading: false, @@ -114,7 +114,7 @@ class ActionsMenuCtrl extends PureViewCtrl<{}, ActionsMenuState> implements Acti return { ...action, subrows: this.subRowsForAction(action, extension) - } + }; } else { return action; } diff --git a/app/assets/javascripts/directives/views/componentView.ts b/app/assets/javascripts/directives/views/componentView.ts index 4819a002f..a4488e17a 100644 --- a/app/assets/javascripts/directives/views/componentView.ts +++ b/app/assets/javascripts/directives/views/componentView.ts @@ -159,7 +159,7 @@ class ComponentViewCtrl implements ComponentViewScope { this.$timeout(() => { this.reloading = false; }); - }) + }); } private onVisibilityChange() { @@ -228,6 +228,7 @@ class ComponentViewCtrl implements ComponentViewScope { if (!iframe.contentWindow!.origin || iframe.contentWindow!.origin === 'null') { desktopError = true; } + // eslint-disable-next-line no-empty } catch (e) { } } this.$timeout.cancel(this.loadTimeout); diff --git a/app/assets/javascripts/directives/views/editorMenu.ts b/app/assets/javascripts/directives/views/editorMenu.ts index d4e4c4906..3f2d0244e 100644 --- a/app/assets/javascripts/directives/views/editorMenu.ts +++ b/app/assets/javascripts/directives/views/editorMenu.ts @@ -52,14 +52,14 @@ class EditorMenuCtrl extends PureViewCtrl implements EditorMenuScope { editors: editors, defaultEditor: defaultEditor }); - }; + } selectComponent(component: SNComponent) { if (component) { if (component.conflictOf) { this.application.changeAndSaveItem(component.uuid, (mutator) => { mutator.conflictOf = undefined; - }) + }); } } this.$timeout(() => { @@ -87,7 +87,7 @@ class EditorMenuCtrl extends PureViewCtrl implements EditorMenuScope { this.application.changeItem(currentDefault.uuid, (m) => { const mutator = m as ComponentMutator; mutator.defaultEditor = false; - }) + }); } this.application.changeAndSaveItem(component.uuid, (m) => { const mutator = m as ComponentMutator; diff --git a/app/assets/javascripts/directives/views/historyMenu.ts b/app/assets/javascripts/directives/views/historyMenu.ts index c933d91a1..762791070 100644 --- a/app/assets/javascripts/directives/views/historyMenu.ts +++ b/app/assets/javascripts/directives/views/historyMenu.ts @@ -16,7 +16,7 @@ interface HistoryScope { item: SNItem } -class HistoryMenuCtrl extends PureViewCtrl<{}, HistoryState> implements HistoryScope { +class HistoryMenuCtrl extends PureViewCtrl implements HistoryScope { diskEnabled = false autoOptimize = false diff --git a/app/assets/javascripts/directives/views/panelResizer.ts b/app/assets/javascripts/directives/views/panelResizer.ts index 352aaca9c..67307e618 100644 --- a/app/assets/javascripts/directives/views/panelResizer.ts +++ b/app/assets/javascripts/directives/views/panelResizer.ts @@ -6,12 +6,12 @@ import { debounce } from '@/utils'; enum PanelSide { Right = 'right', Left = 'left' -}; +} enum MouseEventType { Move = 'mousemove', Down = 'mousedown', Up = 'mouseup' -}; +} enum CssClass { Hoverable = 'hoverable', AlwaysVisible = 'always-visible', @@ -19,7 +19,7 @@ enum CssClass { NoSelection = 'no-selection', Collapsed = 'collapsed', AnimateOpacity = 'animate-opacity', -}; +} const WINDOW_EVENT_RESIZE = 'resize'; type ResizeFinishCallback = ( diff --git a/app/assets/javascripts/directives/views/passwordWizard.ts b/app/assets/javascripts/directives/views/passwordWizard.ts index 36ea4fa71..934ebb1fe 100644 --- a/app/assets/javascripts/directives/views/passwordWizard.ts +++ b/app/assets/javascripts/directives/views/passwordWizard.ts @@ -7,7 +7,7 @@ const DEFAULT_CONTINUE_TITLE = "Continue"; enum Steps { PasswordStep = 1, FinishStep = 2 -}; +} type FormData = { currentPassword?: string, diff --git a/app/assets/javascripts/index.ts b/app/assets/javascripts/index.ts index 2e0778d4a..d623c79f5 100644 --- a/app/assets/javascripts/index.ts +++ b/app/assets/javascripts/index.ts @@ -15,5 +15,4 @@ import '../../../vendor/assets/javascripts/zip/zip'; import '../../../vendor/assets/javascripts/zip/z-worker'; // entry point -// eslint-disable-next-line import/first import './app'; diff --git a/app/assets/javascripts/strings.ts b/app/assets/javascripts/strings.ts index 6f4dbff99..cf2c79458 100644 --- a/app/assets/javascripts/strings.ts +++ b/app/assets/javascripts/strings.ts @@ -13,7 +13,7 @@ export const STRING_NEW_UPDATE_READY = "A new update is ready to install. Please export const STRING_DELETE_TAG = "Are you sure you want to delete this tag? Note: deleting a tag will not delete its notes."; /** @editor */ -export const STRING_SAVING_WHILE_DOCUMENT_HIDDEN = 'Attempting to save an item while the application is hidden. To protect data integrity, please refresh the application window and try again.' +export const STRING_SAVING_WHILE_DOCUMENT_HIDDEN = 'Attempting to save an item while the application is hidden. To protect data integrity, please refresh the application window and try again.'; export const STRING_DELETED_NOTE = "The note you are attempting to edit has been deleted, and is awaiting sync. Changes you make will be disregarded."; export const STRING_INVALID_NOTE = "The note you are attempting to save can not be found or has been deleted. Changes you make will not be synced. Please copy this note's text and start a new note."; export const STRING_ELLIPSES = "..."; @@ -56,15 +56,15 @@ export const STRING_FAILED_PASSWORD_CHANGE = "There was an error re-encrypting y export const STRING_CONFIRM_APP_QUIT_DURING_UPGRADE = "The encryption upgrade is in progress. You may lose data if you quit the app. " + - "Are you sure you want to quit?" + "Are you sure you want to quit?"; export const STRING_CONFIRM_APP_QUIT_DURING_PASSCODE_CHANGE = "A passcode change is in progress. You may lose data if you quit the app. " + - "Are you sure you want to quit?" + "Are you sure you want to quit?"; export const STRING_CONFIRM_APP_QUIT_DURING_PASSCODE_REMOVAL = "A passcode removal is in progress. You may lose data if you quit the app. " + - "Are you sure you want to quit?" + "Are you sure you want to quit?"; export const STRING_UPGRADE_ACCOUNT_CONFIRM_TITLE = 'Encryption upgrade available'; export const STRING_UPGRADE_ACCOUNT_CONFIRM_TEXT = diff --git a/app/assets/javascripts/utils.ts b/app/assets/javascripts/utils.ts index 586d943c9..54e51b6bc 100644 --- a/app/assets/javascripts/utils.ts +++ b/app/assets/javascripts/utils.ts @@ -50,7 +50,9 @@ export function dateToLocalizedString(date: Date) { export function debounce(this: any, func: any, wait: number, immediate = false) { let timeout: any; return () => { + // eslint-disable-next-line @typescript-eslint/no-this-alias const context = this; + // eslint-disable-next-line prefer-rest-params const args = arguments; const later = function () { timeout = null; @@ -61,7 +63,7 @@ export function debounce(this: any, func: any, wait: number, immediate = false) timeout = setTimeout(later, wait); if (callNow) func.apply(context, args); }; -}; +} // https://tc39.github.io/ecma262/#sec-array.prototype.includes if (!Array.prototype.includes) { @@ -73,10 +75,10 @@ if (!Array.prototype.includes) { } // 1. Let O be ? ToObject(this value). - var o = Object(this); + const o = Object(this); // 2. Let len be ? ToLength(? Get(O, "length")). - var len = o.length >>> 0; + const len = o.length >>> 0; // 3. If len is 0, return false. if (len === 0) { @@ -85,14 +87,14 @@ if (!Array.prototype.includes) { // 4. Let n be ? ToInteger(fromIndex). // (If fromIndex is undefined, this step produces the value 0.) - var n = fromIndex | 0; + const n = fromIndex | 0; // 5. If n ≥ 0, then // a. Let k be n. // 6. Else n < 0, // a. Let k be len + n. // b. If k < 0, let k be 0. - var k = Math.max(n >= 0 ? n : len - Math.abs(n), 0); + let k = Math.max(n >= 0 ? n : len - Math.abs(n), 0); function sameValueZero(x: number, y: number) { return ( diff --git a/app/assets/javascripts/views/abstract/pure_view_ctrl.ts b/app/assets/javascripts/views/abstract/pure_view_ctrl.ts index 41b7f9c3d..0c104d7dd 100644 --- a/app/assets/javascripts/views/abstract/pure_view_ctrl.ts +++ b/app/assets/javascripts/views/abstract/pure_view_ctrl.ts @@ -30,7 +30,7 @@ export class PureViewCtrl

{ this.state = { ...this.getInitialState(), ...this.state, - } + }; this.addAppEventObserver(); this.addAppStateObserver(); this.templateReady = true; @@ -83,7 +83,8 @@ export class PureViewCtrl

{ } /** @override */ - afterStateChange() { + // eslint-disable-next-line @typescript-eslint/no-empty-function + afterStateChange(): void { } /** @returns a promise that resolves after the UI has been updated. */ diff --git a/app/assets/javascripts/views/account_switcher/account_switcher.ts b/app/assets/javascripts/views/account_switcher/account_switcher.ts index 3cbb1d4ed..9ca75b1eb 100644 --- a/app/assets/javascripts/views/account_switcher/account_switcher.ts +++ b/app/assets/javascripts/views/account_switcher/account_switcher.ts @@ -7,7 +7,7 @@ import { import { PureViewCtrl } from '@Views/abstract/pure_view_ctrl'; import { WebDirective } from '@/types'; -class AccountSwitcherCtrl extends PureViewCtrl<{}, { +class AccountSwitcherCtrl extends PureViewCtrl { @@ -38,7 +38,7 @@ class AccountSwitcherCtrl extends PureViewCtrl<{}, { reloadApplications() { this.setState({ descriptors: this.mainApplicationGroup.getDescriptors() - }) + }); } /** @template */ @@ -63,7 +63,7 @@ class AccountSwitcherCtrl extends PureViewCtrl<{}, { this.setState({ editingDescriptor: descriptor }).then(() => { const input = this.inputForDescriptor(descriptor); input?.focus(); - }) + }); } /** @template */ @@ -71,7 +71,7 @@ class AccountSwitcherCtrl extends PureViewCtrl<{}, { this.mainApplicationGroup.renameDescriptor( this.state.editingDescriptor!, this.state.editingDescriptor!.label - ) + ); this.setState({ editingDescriptor: undefined }); } diff --git a/app/assets/javascripts/views/application/application_view.ts b/app/assets/javascripts/views/application/application_view.ts index f71ac35d4..eef430c3c 100644 --- a/app/assets/javascripts/views/application/application_view.ts +++ b/app/assets/javascripts/views/application/application_view.ts @@ -94,7 +94,7 @@ class ApplicationViewCtrl extends PureViewCtrl { this.onPanelResizeFinish = this.onPanelResizeFinish.bind(this); this.onEditorLoad = () => { this.application!.getDesktopService().redoSearch(); - } + }; } deinit() { @@ -199,7 +199,7 @@ class EditorViewCtrl extends PureViewCtrl { if (note.lastSyncBegan) { if (note.lastSyncEnd) { if (note.lastSyncBegan!.getTime() > note.lastSyncEnd!.getTime()) { - this.showSavingStatus() + this.showSavingStatus(); } else if (note.lastSyncEnd!.getTime() > note.lastSyncBegan!.getTime()) { this.showAllChangesSavedStatus(); } @@ -412,7 +412,7 @@ class EditorViewCtrl extends PureViewCtrl { await this.application.changeItem(this.note.uuid, (mutator) => { const noteMutator = mutator as NoteMutator; noteMutator.prefersPlainEditor = false; - }) + }); } await this.associateComponentWithCurrentNote(component); } @@ -471,7 +471,7 @@ class EditorViewCtrl extends PureViewCtrl { (mutator) => { mutator.addItemAsRelationship(note); } - ) + ); } if (!this.application.findItem(note.uuid)) { this.application.alertService!.alert( @@ -494,7 +494,7 @@ class EditorViewCtrl extends PureViewCtrl { noteMutator.preview_plain = previewPlain; noteMutator.preview_html = undefined; } - }, isUserModified) + }, isUserModified); if (this.saveTimeout) { this.$timeout.cancel(this.saveTimeout); } @@ -549,7 +549,7 @@ class EditorViewCtrl extends PureViewCtrl { this.statusTimeout = this.$timeout(() => { this.setState({ noteStatus: status - }) + }); }, MINIMUM_STATUS_DURATION); } else { this.setState({ @@ -702,7 +702,7 @@ class EditorViewCtrl extends PureViewCtrl { false, true, (mutator) => { - mutator.pinned = !this.note.pinned + mutator.pinned = !this.note.pinned; } ); } @@ -713,7 +713,7 @@ class EditorViewCtrl extends PureViewCtrl { false, true, (mutator) => { - mutator.locked = !this.note.locked + mutator.locked = !this.note.locked; } ); } @@ -724,7 +724,7 @@ class EditorViewCtrl extends PureViewCtrl { false, true, (mutator) => { - mutator.protected = !this.note.protected + mutator.protected = !this.note.protected; } ); } @@ -735,7 +735,7 @@ class EditorViewCtrl extends PureViewCtrl { false, true, (mutator) => { - mutator.hidePreview = !this.note.hidePreview + mutator.hidePreview = !this.note.hidePreview; } ); } @@ -754,7 +754,7 @@ class EditorViewCtrl extends PureViewCtrl { false, true, (mutator) => { - mutator.archived = !this.note.archived + mutator.archived = !this.note.archived; }, /** If we are unarchiving, and we are in the archived tag, close the editor */ this.note.archived && this.appState.selectedTag?.isArchiveTag @@ -863,7 +863,7 @@ class EditorViewCtrl extends PureViewCtrl { (mutator) => { mutator.addItemAsRelationship(note); } - ) + ); } this.application.sync(); this.reloadTags(); @@ -970,7 +970,7 @@ class EditorViewCtrl extends PureViewCtrl { ); await this.setState({ [key]: !currentValue - }) + }); this.reloadFont(); if (key === PrefKey.EditorSpellcheck) { @@ -1061,7 +1061,7 @@ class EditorViewCtrl extends PureViewCtrl { (mutator) => { mutator.addItemAsRelationship(this.note); } - ) + ); } } } @@ -1120,7 +1120,7 @@ class EditorViewCtrl extends PureViewCtrl { const mutator = m as ComponentMutator; mutator.removeAssociatedItemId(note.uuid); mutator.disassociateWithItem(note.uuid); - }) + }); } async associateComponentWithCurrentNote(component: SNComponent) { @@ -1129,7 +1129,7 @@ class EditorViewCtrl extends PureViewCtrl { const mutator = m as ComponentMutator; mutator.removeDisassociatedItemId(note.uuid); mutator.associateWithItem(note.uuid); - }) + }); } registerKeyboardShortcuts() { diff --git a/app/assets/javascripts/views/editor_group/editor_group_view.ts b/app/assets/javascripts/views/editor_group/editor_group_view.ts index 3848f133a..d365fd6b6 100644 --- a/app/assets/javascripts/views/editor_group/editor_group_view.ts +++ b/app/assets/javascripts/views/editor_group/editor_group_view.ts @@ -8,15 +8,10 @@ class EditorGroupViewCtrl { private application!: WebApplication public editors: Editor[] = [] - /* @ngInject */ - constructor() { - - } - $onInit() { this.application.editorGroup.addChangeObserver(() => { this.editors = this.application.editorGroup.editors; - }) + }); } } diff --git a/app/assets/javascripts/views/footer/footer_view.ts b/app/assets/javascripts/views/footer/footer_view.ts index 1e029617a..4012a2176 100644 --- a/app/assets/javascripts/views/footer/footer_view.ts +++ b/app/assets/javascripts/views/footer/footer_view.ts @@ -208,7 +208,7 @@ class FooterViewCtrl extends PureViewCtrl { +class NotesViewCtrl extends PureViewCtrl { private panelPuppet?: PanelPuppet private reloadNotesPromise?: any @@ -410,7 +410,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> { if (activeNote && activeNote.conflictOf) { this.application!.changeAndSaveItem(activeNote.uuid, (mutator) => { mutator.conflictOf = undefined; - }) + }); } if (this.isFiltering()) { this.application!.getDesktopService().searchText(this.getState().noteFilter.text); @@ -641,7 +641,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> { selectNextNote() { const displayableNotes = this.displayableNotes(); const currentIndex = displayableNotes.findIndex((candidate) => { - return candidate.uuid === this.activeEditorNote!.uuid + return candidate.uuid === this.activeEditorNote!.uuid; }); if (currentIndex + 1 < displayableNotes.length) { this.selectNote(displayableNotes[currentIndex + 1]); @@ -798,7 +798,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> { ], onKeyDown: () => { const searchBar = this.getSearchBar(); - if (searchBar) { searchBar.focus(); }; + if (searchBar) { searchBar.focus(); } } }); } diff --git a/app/assets/javascripts/views/tags/tags_view.ts b/app/assets/javascripts/views/tags/tags_view.ts index 01f9bcb8a..b4a609f59 100644 --- a/app/assets/javascripts/views/tags/tags_view.ts +++ b/app/assets/javascripts/views/tags/tags_view.ts @@ -36,7 +36,7 @@ type TagState = { templateTag?: SNTag } -class TagsViewCtrl extends PureViewCtrl<{}, TagState> { +class TagsViewCtrl extends PureViewCtrl { /** Passed through template */ readonly application!: WebApplication @@ -136,7 +136,7 @@ class TagsViewCtrl extends PureViewCtrl<{}, TagState> { } else { this.setState({ selectedTag: matchingTag - }) + }); } } } @@ -186,14 +186,14 @@ class TagsViewCtrl extends PureViewCtrl<{}, TagState> { const notes = this.application.notesMatchingSmartTag(tag as SNSmartTag) .filter((note) => { return !note.archived && !note.trashed; - }) + }); noteCounts[tag.uuid] = notes.length; } } else { const notes = this.application.referencesForItem(tag, ContentType.Note) .filter((note) => { return !note.archived && !note.trashed; - }) + }); noteCounts[tag.uuid] = notes.length; } } @@ -264,7 +264,7 @@ class TagsViewCtrl extends PureViewCtrl<{}, TagState> { if (tag.conflictOf) { this.application.changeAndSaveItem(tag.uuid, (mutator) => { mutator.conflictOf = undefined; - }) + }); } this.application.getAppState().setSelectedTag(tag); } @@ -326,7 +326,7 @@ class TagsViewCtrl extends PureViewCtrl<{}, TagState> { "A tag with this name already exists." ); return; - }; + } await this.application.changeAndSaveItem(tag.uuid, (mutator) => { mutator.title = newTitle; }); @@ -350,7 +350,7 @@ class TagsViewCtrl extends PureViewCtrl<{}, TagState> { "A tag with this name already exists." ); return; - }; + } const insertedTag = await this.application.insertItem(newTag); const changedTag = await this.application.changeItem(insertedTag.uuid, (m) => { m.title = newTitle; diff --git a/package.json b/package.json index e9e55faa1..609a14a91 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "bundle:desktop:beta": "webpack --config webpack.prod.js --env.platform='desktop' --env.public_beta='true'", "build": "bundle install && yarn install --pure-lockfile && bundle exec rails assets:precompile && yarn bundle", "submodules": "git submodule update --init --force", - "lint": "eslint --fix app/assets/javascripts/**/*.{ts,tsx}", + "lint": "eslint --fix app/assets/javascripts", "tsc": "tsc --project app/assets/javascripts/tsconfig.json" }, "devDependencies": {