Move linting to separate file.
Update docs. [skip ci]