From dd801e218c913ed3292f3667d690e6b64b68e015 Mon Sep 17 00:00:00 2001
From: Vlad <vladfilimon@gmail.com>
Date: Fri, 24 Feb 2017 20:29:04 +0100
Subject: [PATCH] Disallow event global variable with no-restricted-globals
 rule (#1530) (#1532)

* Disallow event global variable with no-restricted-globals rule (#1530)

* changed event global variable usage liniting from warn to error
---
 packages/eslint-config-react-app/index.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/packages/eslint-config-react-app/index.js b/packages/eslint-config-react-app/index.js
index e5d9ef894..f6dd41226 100644
--- a/packages/eslint-config-react-app/index.js
+++ b/packages/eslint-config-react-app/index.js
@@ -123,6 +123,7 @@ module.exports = {
     'no-this-before-super': 'warn',
     'no-throw-literal': 'warn',
     'no-undef': 'error',
+    'no-restricted-globals': ['error', 'event'],
     'no-unexpected-multiline': 'warn',
     'no-unreachable': 'warn',
     'no-unused-expressions': ['warn', {
-- 
GitLab