I’m trying to run a SonarQube scan on a Quasar Vue.js project and am noticing the following error(s) in the console:
ERROR: Failed to parse file [FILENAME] at line 27: 'import' and 'export' may appear only with 'sourceType: module'
Some of the things i’ve looked at:
- sourceType is set to module in eslintrc.json
- Looked if the is a Vue.js specific config for SonarQube that needed to be configured but saw no documentation.
- Currently, trying out the babel suggested changes in the thread here: https://github.com/SonarSource/SonarJS/issues/1978.
Versions: SonarQube Community Server: 220.127.116.11397
Any help or suggestions would be much appreciated, if I missed any required details please let me know.