]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add JavaScript configuration for Hound
authorDan Croak <dan@thoughtbot.com>
Sun, 4 Oct 2015 05:45:37 +0000 (22:45 -0700)
committerDan Croak <dan@thoughtbot.com>
Sun, 4 Oct 2015 05:45:37 +0000 (22:45 -0700)
This change uses Bootstrap's existing `js/.jshintrc` file
to configure Hound's hosted JSHint instance.

It leaves existing JavaScript linting as-is
because Hound does not support ESLint or JSCS yet.

On each pull request to Bootstrap,
Hound will comment on any JavaScript style violations in-line,
like this:

![screenshot](https://images.thoughtbot.com/hound/javascript-example.png)

If you update the pull request to adopt a suggestion,
the comment will be hidden.

It leaves the existing linting done by Grunt + Travis.

Hound is free for open source projects
and is open source itself:

https://github.com/thoughtbot/hound

.hound.yml [new file with mode: 0644]

diff --git a/.hound.yml b/.hound.yml
new file mode 100644 (file)
index 0000000..bb847f5
--- /dev/null
@@ -0,0 +1,5 @@
+java_script:
+  config_file: js/.jshintrc
+  enabled: true
+scss:
+  enabled: false