Skip to content

Commit

Permalink
Disallow event global variable with no-restricted-globals rule (#1530) (
Browse files Browse the repository at this point in the history
#1532)

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

* changed event global variable usage liniting from warn to error
  • Loading branch information
vfil authored and gaearon committed Feb 24, 2017
1 parent 41d1469 commit dd801e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/eslint-config-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down

0 comments on commit dd801e2

Please sign in to comment.