I'd like to write an eslint rule that reports a warning whenever the sort() method of an Array object is called.
Can somebody point me to some starter code? Is there an existing rule that I can clone and modify to make this rule?
Thanks,
-E
Eslint 有一个写得很好的文档,里面有很多代码可以让你陈述。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.