javascript - Using global function in vuejs. linter (?) -


i have use javascript library (emailjs) send email vuejs application. problem library create global function , when try use function, eslint notify me funcion not defined.

is posible wrap funtion javascript module use on components?

sometimes globals cannot avoided (i'm looking @ you, gapi). add eslint globals config.

in .eslintrc.js

module.exports = {   // ...   globals: {     smtpclient: true // or whatever global variable named   } } 

see http://eslint.org/docs/user-guide/configuring#specifying-globals


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -