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
报错信息:
TypeError: Cannot read property 'type' of null(~/lib/js/rules/arrow-body-style.js). (syntax) TypeError: Cannot read property 'type' of null at validate (/Users/xxx/xxx/fecs/lib/js/rules/arrow-body-style.js:77:54)
引发出错的代码片段:
err => { return; }
分析:
if (asNeeded && firstNode && firstNode.type === 'ReturnStatement') { if (!needMaps[firstNode.argument.type]) { report(node); } }
firstNode.argument 为 null 导致,应该需要提前判断一下吧
The text was updated successfully, but these errors were encountered:
No branches or pull requests
报错信息:
引发出错的代码片段:
分析:
firstNode.argument 为 null 导致,应该需要提前判断一下吧
The text was updated successfully, but these errors were encountered: