We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
对于 strict,目前 no-console 的规则为 'error',默认为 warn。
no-console
个人感觉 console.info, warn, error 等这种应该允许存在的,而不是一律不给书写。 因为这种很可能是 "故意在代码中留下的",为了提供必要的 debug 所需信息,特别是基础库。
console.info
warn
error
debug
因此建议修改规则为:
'no-console': ['warn', {allow: ['warn', 'error', 'info']}]
The text was updated successfully, but these errors were encountered:
我认为OK,你发PR还是我们找个时间改
Sorry, something went wrong.
这周晚点 pr 吧
Successfully merging a pull request may close this issue.
对于 strict,目前
no-console
的规则为 'error',默认为 warn。个人感觉
console.info
,warn
,error
等这种应该允许存在的,而不是一律不给书写。因为这种很可能是 "故意在代码中留下的",为了提供必要的
debug
所需信息,特别是基础库。因此建议修改规则为:
The text was updated successfully, but these errors were encountered: