From bf00166d0ea36bb3a4f6c98aac028a53cf30d442 Mon Sep 17 00:00:00 2001 From: Will Binns-Smith Date: Sun, 20 Aug 2017 19:29:08 -0700 Subject: [PATCH] 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` --- package.json | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 6f07b00d9..24b51ac05 100644 --- a/package.json +++ b/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" ] }