diff --git a/coffeelint.json b/coffeelint.json index 360168898..9535d90ac 100644 --- a/coffeelint.json +++ b/coffeelint.json @@ -1,14 +1,14 @@ { - "indentation": { - "level": "ignore" - }, "max_line_length": { "level": "ignore" }, "no_empty_param_list": { "level": "error" }, - "no_unnecessary_fat_arrows": { - "level": "ignore" + "arrow_spacing": { + "level": "error" + }, + "no_interpolation_in_single_quotes": { + "level": "error" } } diff --git a/src/atom.coffee b/src/atom.coffee index ee7f7bd06..d497d1701 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -459,7 +459,7 @@ class Atom extends Model # # This is done in a next tick to prevent a white flicker from occurring # if called synchronously. - displayWindow: ({maximize}={})-> + displayWindow: ({maximize}={}) -> setImmediate => @show() @focus() diff --git a/src/browser/application-menu.coffee b/src/browser/application-menu.coffee index 353733f2f..a43410db2 100644 --- a/src/browser/application-menu.coffee +++ b/src/browser/application-menu.coffee @@ -116,7 +116,7 @@ class ApplicationMenu item.metadata ?= {} if item.command item.accelerator = @acceleratorForCommand(item.command, keystrokesByCommand) - item.click = => global.atomApplication.sendCommand(item.command) + item.click = -> global.atomApplication.sendCommand(item.command) item.metadata['windowSpecific'] = true unless /^application:/.test(item.command) @translateTemplate(item.submenu, keystrokesByCommand) if item.submenu template diff --git a/src/browser/auto-update-manager.coffee b/src/browser/auto-update-manager.coffee index 12b3ab55c..01151f2a9 100644 --- a/src/browser/auto-update-manager.coffee +++ b/src/browser/auto-update-manager.coffee @@ -74,7 +74,7 @@ class AutoUpdateManager getState: -> @state - check: ({hidePopups}={})-> + check: ({hidePopups}={}) -> unless hidePopups autoUpdater.once 'update-not-available', @onUpdateNotAvailable autoUpdater.once 'error', @onUpdateError diff --git a/src/token.coffee b/src/token.coffee index cfbfaa8ea..fabf33de8 100644 --- a/src/token.coffee +++ b/src/token.coffee @@ -150,7 +150,7 @@ class Token scopeClasses = scope.split('.') _.isSubset(targetClasses, scopeClasses) - getValueAsHtml: ({hasIndentGuide})-> + getValueAsHtml: ({hasIndentGuide}) -> if @isHardTab classes = 'hard-tab' classes += ' indent-guide' if hasIndentGuide