fix(linter): Switching between Coffee + ES6 is hard...

This commit is contained in:
Ben Gotow 2016-01-28 14:59:17 -08:00
parent d1415585d5
commit 52a7a6625f
8 changed files with 8 additions and 18 deletions

View file

@ -20,7 +20,7 @@ toggleSectionCollapsed = (section) ->
class SidebarSection
@empty: (title)->
@empty: (title) ->
return {
title,
items: []

View file

@ -60,7 +60,7 @@ class SidebarStore extends NylasStore
@_focusedAccounts = accounts
@_updateSections()
_updateSections: () =>
_updateSections: =>
accounts = @_focusedAccounts
multiAccount = accounts.length > 1

View file

@ -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}

View file

@ -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" />

View file

@ -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"

View file

@ -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" />

View file

@ -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()

View file

@ -119,7 +119,7 @@ class AccountStore
accountForId: (id) =>
_.findWhere(@_accounts, {id})
aliases: () =>
aliases: =>
aliases = []
for acc in @_accounts
aliases.push(acc.me())