Delete `␍` prettier/prettier

.eslintrc.js文件中的rules中加上

“linebreak-style”: [0 ,“error”, “windows”],
“prettier/prettier”: [“error”, { “endOfLine”: “auto” }],

rules: {
    "no-console": process.env.NODE_ENV === "production" ? "off" : "off",
    "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
    "jsx-a11y/anchor-is-valid": "off",
    "linebreak-style": [0 ,"error", "windows"],
    "prettier/prettier": ["error", { "endOfLine": "auto" }],
  },

你可能感兴趣的:(项目笔记,js,vue,笔记)