项目开发环境:vuecli3.0
1、项目报 Replace `↹↹↹` with `······` (prettier/prettier)错误
原因:eslintConfig配置里的extends选项使用了@vue/prettier;
解决:把配置extends改成eslint:recommended,官方推荐的规则
eslint常用rules配置:
"generator-star-spacing": "off",
"no-mixed-operators": 0,
"no-irregular-whitespace": 0,
"no-empty": 0,
"space-before-function-paren": 0,
"no-multi-spaces": 0,
"no-unused-vars": 0,
"vue/attribute-hyphenation": 0,
"vue/html-self-closing": 0,
"vue/component-name-in-template-casing": 0,
"vue/html-closing-bracket-spacing": 0,
"vue/singleline-html-element-content-newline": 0,
"vue/no-unused-components": 0,
"vue/multiline-html-element-content-newline": 0,
"vue/html-closing-bracket-newline": 0,
"vue/no-parsing-error": 0,
"no-console": 0,
"no-mixed-spaces-and-tabs": [0],
"vue/no-unused-vars": 0,