mirror of
https://github.com/atom/atom.git
synced 2026-01-15 01:48:15 -05:00
Fix lint errors
This commit is contained in:
committed by
Antonio Scandurra
parent
c8f2fbb657
commit
174bac378d
@@ -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 () {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
/* global ResizeObserver */
|
||||
|
||||
const etch = require('etch')
|
||||
const {CompositeDisposable} = require('event-kit')
|
||||
const {Point, Range} = require('text-buffer')
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user