Merge pull request #15392 from atom/fb-wb-standard-env

Use standard (eslint's) 'env' field over globals
This commit is contained in:
Nathan Sobo
2017-08-21 09:38:34 -06:00
committed by GitHub
7 changed files with 6 additions and 31 deletions

View File

@@ -174,27 +174,14 @@
"test": "node script/test"
},
"standard": {
"env": {
"atomtest": true,
"browser": true,
"jasmine": true,
"node": true
},
"globals": [
"atom",
"afterEach",
"beforeEach",
"describe",
"fdescribe",
"xdescribe",
"expect",
"it",
"fit",
"xit",
"jasmine",
"runs",
"spyOn",
"waitsFor",
"waitsForPromise",
"indexedDB",
"IntersectionObserver",
"FocusEvent",
"requestAnimationFrame",
"HTMLElement",
"snapshotResult"
]
}

View File

@@ -1,7 +1,5 @@
'use strict'
/* global HTMLElement */
const Panel = require('../src/panel')
const PanelContainer = require('../src/panel-container')

View File

@@ -1,5 +1,3 @@
/* global HTMLDivElement */
const {it, fit, ffit, fffit, beforeEach, afterEach, conditionPromise, timeoutPromise} = require('./async-spec-helpers')
const TextEditor = require('../src/text-editor')
const TextEditorElement = require('../src/text-editor-element')

View File

@@ -1,7 +1,5 @@
/** @babel */
/* global getComputedStyle, WheelEvent */
const {ipcRenderer} = require('electron')
const path = require('path')
const temp = require('temp').track()

View File

@@ -1,7 +1,5 @@
'use strict'
/* global HTMLElement */
const {CompositeDisposable} = require('event-kit')
class PanelContainerElement extends HTMLElement {

View File

@@ -1,5 +1,3 @@
/* global MutationObserver */
'use strict'
const EventKit = require('event-kit')

View File

@@ -1,7 +1,5 @@
'use strict'
/* global HTMLElement */
const {ipcRenderer} = require('electron')
const path = require('path')
const fs = require('fs-plus')