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
Post a Comment