eslint校验——开启服务后自动校验

"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"vetur.format.defaultFormatter.js": "vscode-typescript", // 严格模式

"files.autoGuessEncoding": true, // 自动识别文件编码格式

乱码示例:

�数设置

问题相关:

https://github.com/Microsoft/vscode/issues/33720


// 配置严格模式校验

/**
 * @fileoverview Expose out ESLint and CLI to require.
 * @author Ian Christian Myers
 */

"use strict";

const Linter = require("./linter");

module.exports = {
    linter: new Linter(),
    Linter,
    CLIEngine: require("./cli-engine"),
    RuleTester: require("./testers/rule-tester"),
    SourceCode: require("./util/source-code")
};

 

posted @ 2019-09-18 14:29  桥南小院  阅读(898)  评论(0编辑  收藏  举报