warning delete `.. Replace `·· function` prettier/prettier

我们用Vue-Cli脚手架新建项目时会选择使用ESLint + Prettier来统一我们的前端代码风格。

1.关闭

在.eslintrc.js文件中配置关闭Prettier;

在rules中增加一行:"prettier/prettier": "off"
重启后生效

2.不关闭

npm run lint --fix

参考:https://github.com/prettier/eslint-plugin-prettier/issues/114

 

 

posted on 2020-12-07 14:40  田间麦籽  阅读(2820)  评论(1编辑  收藏  举报