in .git/hooks are a bunch of .sample files (bash). If the .sample ending is removed the hook becomes active. (Literally just bash files.)

Add linter to .git/hooks/pre-commit