Use standard (eslint's) 'env' field over globals

Test Plan: ensure every removed global is a part of an added `env` from https://github.com/sindresorhus/globals/blob/master/globals.json

run `./script/lint`
This commit is contained in:
Will Binns-Smith
2017-08-20 19:29:08 -07:00
parent 3967de1be2
commit bf00166d0e

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"
]
}