dev/sg: move linters to separate package
Created by: bobheadxi
Moves all linter definitions to an independent package to avoid crowding the main package. This also gives us more flexibility to organize the code here, namely by splitting checks out into separate files for readability.
Will be useful for https://github.com/sourcegraph/sourcegraph/issues/33363
Test plan
go run ./dev/sg lint
still works