SonarJS does not consider any .eslintrc.js files that might come along your project, but rather uses its own parsing options. We are actually thinking of making this parameterizable.
I am a bit surprised to see the error you’re facing since our analyser tries to first parse Vue files with sourceType set to module, and falls back to script in case it fails. The latter shouldn’t work because import statements are only relevant for modules.
Would it be possible to share the full logs of the scanner ? You can get them by running a scan with -X option. Also, a small reproducer to share could definitely help.
Hello, @Yassin and @fabis94! I am also facing this issue, but from my testing it looks like this error shows up when our .vue component uses optional chaining. Do you know if there is a solution for this?