javascript - Using VueJS in Dreamweaver CC causes linter error when using strict mode -
i using vuejs front-end development , writing code in dreamweaver cc 2017 (build 9314). dw's built-in linter giving me following error when using javascript in 'strict mode':
'vue' not defined.
i have js code in typical app.js file , view/html in index.html , above error. however, when put js code in same index.html file, error disappears.
is there can work on 2 files , not error?
thanks.
is there way hide or fix error in dreamweaver cc?
looks dreamweaver uses jshint
it's linter. , allows specify configuration file named dw.jshintrc
add vue
globals list:
http://jshint.com/docs/options/#globals
{ "globals": { "vue": true } }
also believe can use inline jshint rule so:
/* globals vue */
which let linter know vue
global variable not defined in current block of code.
Comments
Post a Comment