hilongjw / vue-lazyload

A Vue.js plugin for lazyload your Image or Component in your application.
http://hilongjw.github.io/vue-lazyload/
MIT License
7.99k stars 865 forks source link

Add ts lint support & Fix jest test #504

Open anc95 opened 1 year ago

anc95 commented 1 year ago

Hello, I noticed the lint in CI raised an error, I fixed this.

Meanwhile, I noticed the eslint config now doesn't support parse and lint typescript code, so I added related support.

I have used yarn lint --fix to auto-fix the lint error/warning under src, so don't worry if you see many codes are changed, they are only the style change, no harm to the functionality.

Updates Summary

Thanks, please help to review.