Fix coffeelint errors

This commit is contained in:
Taylon Silmer 2017-02-14 11:31:05 -02:00
parent e314fdf099
commit 7627a9239a
1 changed files with 2 additions and 2 deletions

View File

@ -13,13 +13,13 @@ module.exports = class ESLintFixer extends Beautifier
}
beautify: (text, language, options) ->
return new @Promise((resolve, reject) =>
return new @Promise((resolve, reject) ->
editor = atom.workspace.getActiveTextEditor()
filePath = editor.getPath()
projectPath = atom.project.relativizePath(filePath)[0]
result = null
allowUnsafeNewFunction =>
allowUnsafeNewFunction ->
importPath = Path.join(projectPath, 'node_modules', 'eslint')
try
CLIEngine = require(importPath).CLIEngine