Run linter before tests

Tests fail if `.jshintrc` rules are not met.