Refactor linter tool to handle single config