阅读背景:

如何在没有节点的情况下获取自定义的eslint规则来执行context.report?

来源:互联网 

I want a very simple eslint rule that ensures that the top line of every file says 'ouch'. Something like this seems to work - but how do I context.report it without a node? or how can I get a node which is the first line of the file to use? Should I be using a callback declared on an event in the 'return' instead (if so, which event)? Thanks!I want a very simple eslint rule that ensures t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: