Restrict InlineJavaScript for haml_lint to dev and test environment

Merged Winnie Hellmann requested to merge winh-scope-haml-linter into master

What does this MR do?

Scope the InlineJavaScript linter to development and test environment since the haml_lint Gem is not available in production.

What are the relevant issue numbers?

Fixes https://gitlab.com/gitlab-org/omnibus-gitlab/issues/2658

Edited by Winnie Hellmann