Commit dd801e21 authored by Vlad's avatar Vlad Committed by Dan Abramov
Browse files

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
parent 41d14694
Showing with 1 addition and 0 deletions
+1 -0
...@@ -123,6 +123,7 @@ module.exports = { ...@@ -123,6 +123,7 @@ module.exports = {
'no-this-before-super': 'warn', 'no-this-before-super': 'warn',
'no-throw-literal': 'warn', 'no-throw-literal': 'warn',
'no-undef': 'error', 'no-undef': 'error',
'no-restricted-globals': ['error', 'event'],
'no-unexpected-multiline': 'warn', 'no-unexpected-multiline': 'warn',
'no-unreachable': 'warn', 'no-unreachable': 'warn',
'no-unused-expressions': ['warn', { 'no-unused-expressions': ['warn', {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment