.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" }],
},