Added lint task and fixed some errors

It's better to make the version more precise: "1.2.18" because sometimes "~" may cause a dependency conflict prompt which will fail the CI build process. Thanks.