From 09ca4a9c800f232b9961094f6deaf9a945222511 Mon Sep 17 00:00:00 2001 From: Cheng Lou Date: Sun, 30 Mar 2014 12:52:49 -0700 Subject: [PATCH] [Jshint] Allow Jasmine globals in *-test.js Editors that inline lint use`.jshintrc and directly lint the open *-test.js files. This makes those linters actually useful. --- src/.jshintrc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/.jshintrc b/src/.jshintrc index cec2bebcc2949..c5dcf96f49d8c 100644 --- a/src/.jshintrc +++ b/src/.jshintrc @@ -24,8 +24,15 @@ "globals": { "__DEV__": false, - "require": false, + "exports": false, "module": false, - "exports": false + "require": false, + + "afterEach": false, + "beforeEach": false, + "describe": false, + "expect": false, + "it": false, + "spyOn": false } }