[refactor] Rewriting the lint plugin to the new plugin interface