mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Merge pull request #15392 from atom/fb-wb-standard-env
Use standard (eslint's) 'env' field over globals
This commit is contained in:
25
package.json
25
package.json
@@ -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"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
'use strict'
|
||||
|
||||
/* global HTMLElement */
|
||||
|
||||
const Panel = require('../src/panel')
|
||||
const PanelContainer = require('../src/panel-container')
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/** @babel */
|
||||
|
||||
/* global getComputedStyle, WheelEvent */
|
||||
|
||||
const {ipcRenderer} = require('electron')
|
||||
const path = require('path')
|
||||
const temp = require('temp').track()
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
'use strict'
|
||||
|
||||
/* global HTMLElement */
|
||||
|
||||
const {CompositeDisposable} = require('event-kit')
|
||||
|
||||
class PanelContainerElement extends HTMLElement {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* global MutationObserver */
|
||||
|
||||
'use strict'
|
||||
|
||||
const EventKit = require('event-kit')
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
'use strict'
|
||||
|
||||
/* global HTMLElement */
|
||||
|
||||
const {ipcRenderer} = require('electron')
|
||||
const path = require('path')
|
||||
const fs = require('fs-plus')
|
||||
|
||||
Reference in New Issue
Block a user