我是用是prettier
这是我.eslintec.js
module.exports = {
root: true,
env: {
node: true
},
extends: [
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/prettier/@typescript-eslint",
"@vue/prettier",
"@vue/typescript/recommended"
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"@typescript-eslint/no-explicit-any": ["off"],
indent: ["warn", 4]
},
overrides: [
{
files: [
"**/__tests__/*.{j,t}s?(x)",
"**/tests/unit/**/*.spec.{j,t}s?(x)"
],
env: {
jest: true
}
}
]
};
.editorconfig
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
报错
使用了vscode的eslint插件 保存后自动修复为
试了很多方法都没办法修改, 这个怎么处理 我感觉是prientWidth的问题, 但是修改rules
和vscode的设置都没用
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…