Fix lint errors

This commit is contained in:
Nathan Sobo
2017-04-17 09:15:15 -06:00
committed by Antonio Scandurra
parent c8f2fbb657
commit 174bac378d
3 changed files with 10 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
/* global snapshotResult */
if (typeof snapshotResult !== 'undefined') {
snapshotResult.setGlobals(global, process, global, {}, console, require)
}
@@ -6,7 +8,7 @@ const {userAgent} = process.env
const [compileCachePath, taskPath] = process.argv.slice(2)
const CompileCache = require('./compile-cache')
CompileCache.setCacheDirectory(compileCachePath);
CompileCache.setCacheDirectory(compileCachePath)
CompileCache.install(`${process.resourcesPath}`, require)
const setupGlobals = function () {

View File

@@ -1,3 +1,5 @@
/* global ResizeObserver */
const etch = require('etch')
const {CompositeDisposable} = require('event-kit')
const {Point, Range} = require('text-buffer')

View File

@@ -1,4 +1,5 @@
const {Emitter} = require('atom')
const Grim = require('grim')
const TextEditorComponent = require('./text-editor-component')
const dedent = require('dedent')
@@ -42,13 +43,13 @@ class TextEditorElement extends HTMLElement {
switch (name) {
case 'mini':
this.getModel().update({mini: newValue != null})
break;
break
case 'placeholder-text':
this.getModel().update({placeholderText: newValue})
break;
break
case 'gutter-hidden':
this.getModel().update({isVisible: newValue != null})
break;
break
}
}
}
@@ -65,7 +66,7 @@ class TextEditorElement extends HTMLElement {
updateModelFromAttributes () {
const props = {
mini: this.hasAttribute('mini'),
placeholderText: this.getAttribute('placeholder-text'),
placeholderText: this.getAttribute('placeholder-text')
}
if (this.hasAttribute('gutter-hidden')) props.lineNumberGutterVisible = false