Skip to content

Commit dd801e2

Browse files
vfilgaearon
authored andcommitted
Disallow event global variable with no-restricted-globals rule (facebook#1530) (facebook#1532)
* Disallow event global variable with no-restricted-globals rule (facebook#1530) * changed event global variable usage liniting from warn to error
1 parent 41d1469 commit dd801e2

File tree

1 file changed

+1
-0
lines changed
  • packages/eslint-config-react-app

1 file changed

+1
-0
lines changed

Diff for: packages/eslint-config-react-app/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ module.exports = {
123123
'no-this-before-super': 'warn',
124124
'no-throw-literal': 'warn',
125125
'no-undef': 'error',
126+
'no-restricted-globals': ['error', 'event'],
126127
'no-unexpected-multiline': 'warn',
127128
'no-unreachable': 'warn',
128129
'no-unused-expressions': ['warn', {

0 commit comments

Comments
 (0)