【发布时间】:2021-09-09 09:23:27
【问题描述】:
我有一个具有很多 Lint 问题的 firebase 函数代码。如何使用 --fix 修复这些问题。它显示在错误消息的末尾。
firebase 部署
/Users/xxx/firebase/functions/index.js
16:1 error Unexpected tab character no-tabs
16:1 error Expected indentation of 6 spaces but found 1 tab indent
.....
69:1 error Unexpected tab character no-tabs
69:1 error Expected indentation of 6 spaces but found 1 tab indent
69:5 error Trailing spaces not allowed no-trailing-spaces
69:5 error Block must not be padded by blank lines padded-blocks
71:1 error Trailing spaces not allowed no-trailing-spaces
✖ 157 problems (157 errors, 0 warnings)
45 errors and 0 warnings potentially fixable with the `--fix` option.
【问题讨论】:
标签: node.js firebase npm google-cloud-functions lint