如何关闭"prettier/prettier"的警告 为什么要关闭,因为我的编辑器已有格式化插件。 废话不多说,.eslintrc文件下的rules里面添加一句"prettier/prettier": "off" 。