vscode中eslint插件es6,jsx支持

483 阅读1分钟

在用户配置中添加

"eslint.options": {
    "parserOptions": {
        "ecmaVersion": 6,
        "ecmaFeatures": {
            "jsx": true
        }
    }
}