move linter into libs