一、配置setting.json文件
// tab 大小为2个空格
"editor.tabSize": 2,
// 100 列后换行
"editor.wordWrapColumn": 100...二、.eslintrc.js文件rules配置
module.exports = {
rules: {
"no-console": "off",
"no-debugger": "off...[0, "single"],
// 方法前是否要一个空格 always: 总是要
"space-before-function-paren": [0, "never"],
"@typescript-eslint.../no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/...no-unused-vars": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-this-alias