Getting an eslint parsing error because of global return that is used in the page loader-component. This mean that all of the code below return will not be check with eslint. Is there a work around?
<script>
return {
// Lifecycle Hooks....
}
</script>
Message - “parsing error return outside of function”
In my eslintrc.json file i have tried setting globalReturn
"parserOptions":{
"sourceType":"module",
"ecmaFeatures ": {
"globalReturn": true
}
},