From 81196d1f20760b0ca33f136be9188dd0e37fea5b Mon Sep 17 00:00:00 2001 From: Siddharth Doshi Date: Mon, 15 May 2017 00:17:04 +0530 Subject: [PATCH] Blacklist confusing global variables (#2130) * Blacklist confusing global variables * Blacklist globals * Fix kitchensink test to lint * Edit the list * Use no-restricted globals for this --- fixtures/kitchensink/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fixtures/kitchensink/src/App.js b/fixtures/kitchensink/src/App.js index 3e57c3c5a79..3a1981a4000 100644 --- a/fixtures/kitchensink/src/App.js +++ b/fixtures/kitchensink/src/App.js @@ -54,7 +54,7 @@ class App extends Component { } componentDidMount() { - const feature = location.hash.slice(1); + const feature = window.location.hash.slice(1); switch (feature) { case 'array-destructuring': import(