Is there a way to exclude certain patterns from no-undef
error. I tried 'no-undef': [2, { ignoreBuiltinGlobals: ['app'] }]
where app
is my global variable defined by webpack.defineplugin. If I disable this rule, there will be no errors.
I also tried pasting app: true
into a globals
section.eslintrc.js
Or another way to get my variable 'def'
without errors
source
share