"[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") };