Eslint check vue file for error

eslint check .vue files all report errors [eslint] Parsing error: Unexpected token

this is my .eslintrc.js file

module.exports = {
    "env": {
        "browser": true,
        "commonjs": true,
        "es6": true
    },
    "extends": "eslint:recommended",
    "parserOptions": {
        "sourceType": "module"
    },
    "globals": {
        "CryptoAgent": true,
    },
    "rules": {
        "no-console": 0,
        "indent": [
            1,
            "tab",
            {
                "SwitchCase": 1
            }
        ],
        "linebreak-style": [
            2,
            "windows"
        ],
        "quotes": [
            2,
            "single"
        ],
        "semi": [
            2,
            "never"
        ]
    }
};
Mar.04,2021

looks like your vue file has an extra'<'oh


that leads to a syntax error.


so how did the landlord solve it in the end?


solution:
install eslint-plugin-vue:
npm install eslint-plugin-vue
.eslintrc.js file modify
parser:'babel-eslint' to: parser:' vue-eslint-parser',
this will cause some of the original specifications to be changed, and all files need to be lint again.
but that inexplicable [eslint] Parsing error: Unexpected token will disappear

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9e19f-466f0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9e19f-466f0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?