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

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM