diff --git a/.eslintrc.js b/.eslintrc.js index 5c4933101447f2..2eb3eae6a88979 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -185,7 +185,7 @@ module.exports = { 'no-this-before-super': 'error', 'no-throw-literal': 'error', 'no-trailing-spaces': 'error', - 'no-undef': 'error', + 'no-undef': ['error', { typeof: true }], 'no-undef-init': 'error', 'no-unexpected-multiline': 'error', 'no-unreachable': 'error',