mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-29 11:52:34 +08:00
fix(linter): Switching between Coffee + ES6 is hard...
This commit is contained in:
parent
d1415585d5
commit
52a7a6625f
8 changed files with 8 additions and 18 deletions
|
@ -20,7 +20,7 @@ toggleSectionCollapsed = (section) ->
|
|||
|
||||
class SidebarSection
|
||||
|
||||
@empty: (title)->
|
||||
@empty: (title) ->
|
||||
return {
|
||||
title,
|
||||
items: []
|
||||
|
|
|
@ -60,7 +60,7 @@ class SidebarStore extends NylasStore
|
|||
@_focusedAccounts = accounts
|
||||
@_updateSections()
|
||||
|
||||
_updateSections: () =>
|
||||
_updateSections: =>
|
||||
accounts = @_focusedAccounts
|
||||
multiAccount = accounts.length > 1
|
||||
|
||||
|
|
|
@ -18,9 +18,7 @@ class DraftList extends React.Component
|
|||
render: =>
|
||||
<FluxContainer
|
||||
stores=[DraftListStore]
|
||||
getStateFromStores={ ->
|
||||
dataSource: DraftListStore.dataSource()
|
||||
}>
|
||||
getStateFromStores={ -> dataSource: DraftListStore.dataSource() }>
|
||||
<FocusContainer collection="draft">
|
||||
<MultiselectList
|
||||
columns={DraftListColumns.Wide}
|
||||
|
|
|
@ -8,9 +8,7 @@ class DraftSelectionBar extends React.Component
|
|||
render: =>
|
||||
<FluxContainer
|
||||
stores={[DraftListStore]}
|
||||
getStateFromStores={ ->
|
||||
dataSource: DraftListStore.dataSource()
|
||||
}>
|
||||
getStateFromStores={ -> dataSource: DraftListStore.dataSource() }>
|
||||
<MultiselectActionBar
|
||||
className="draft-list"
|
||||
collection="draft" />
|
||||
|
|
|
@ -77,9 +77,7 @@ class ThreadList extends React.Component
|
|||
|
||||
<FluxContainer
|
||||
stores=[ThreadListStore]
|
||||
getStateFromStores={ ->
|
||||
dataSource: ThreadListStore.dataSource()
|
||||
}>
|
||||
getStateFromStores={ -> dataSource: ThreadListStore.dataSource() }>
|
||||
<FocusContainer collection="thread">
|
||||
<MultiselectList
|
||||
ref="list"
|
||||
|
|
|
@ -8,9 +8,7 @@ class ThreadSelectionBar extends React.Component
|
|||
render: =>
|
||||
<FluxContainer
|
||||
stores={[ThreadListStore]}
|
||||
getStateFromStores={ ->
|
||||
dataSource: ThreadListStore.dataSource()
|
||||
}>
|
||||
getStateFromStores={ -> dataSource: ThreadListStore.dataSource() }>
|
||||
<MultiselectActionBar
|
||||
className="thread-list"
|
||||
collection="thread" />
|
||||
|
|
|
@ -137,7 +137,7 @@ describe 'FileUploadStore', ->
|
|||
upload = new Upload(msgId, fpath, {size: 1234, isDirectory: -> false})
|
||||
waitsForPromise ->
|
||||
FileUploadStore._verifyUpload(upload)
|
||||
.then (up)-> expect(up.id).toBe upload.id
|
||||
.then (up) -> expect(up.id).toBe upload.id
|
||||
|
||||
|
||||
describe '_copyUpload', ->
|
||||
|
@ -178,5 +178,3 @@ describe 'FileUploadStore', ->
|
|||
.then => throw new Error('It should fail.')
|
||||
.catch (msg) =>
|
||||
expect(msg).not.toBeUndefined()
|
||||
|
||||
|
||||
|
|
|
@ -119,7 +119,7 @@ class AccountStore
|
|||
accountForId: (id) =>
|
||||
_.findWhere(@_accounts, {id})
|
||||
|
||||
aliases: () =>
|
||||
aliases: =>
|
||||
aliases = []
|
||||
for acc in @_accounts
|
||||
aliases.push(acc.me())
|
||||
|
|
Loading…
Reference in a new issue