---
title: Hound Checks JavaScript Code Style
teaser: Announcing JSCS support for Hound.
tags: hound,javascript,style guides,web
author: Sean Doyle
published_on: 2015-12-02
---

Over one year ago, we [announced Hound support for JavaScript][js-support].
Behind the scenes, Hound linted JavaScript code with [JSHint][jshint].

In the past year, JSHint has deprecated several rules, stating:

> **Warning** This option has been deprecated and will be removed in the next
> major release of JSHint.
> JSHint is limiting its scope to issues of code correctness.
> If you would like to enforce rules relating to code style,
> [check out the JSCS project][jscs].

[js-support]: https://thoughtbot.com/blog/hound-reviews-javascript-for-style-violations
[jshint]: http://jshint.com/
[jscs]: http://jscs.info/

To support this shift in responsibilities, we're excited to announce
JavaScript Code Style (JSCS) support for Hound!

JSCS accepts over [150 configurable rules][rules] to support your team's
stylistic tastes.

Looking for a solid starting point? Extend your JSCS ruleset with [presets] from
popular open-source projects like [jQuery] or [WordPress],
or companies like [Airbnb] and [Google].

Migrating from [ESLint]? Use the [Crockford] preset!

[rules]: http://jscs.info/rules
[presets]: http://jscs.info/overview#presets
[jQuery]: https://contribute.jquery.org/style-guide/js/
[WordPress]: https://make.wordpress.org/core/handbook/coding-standards/javascript/
[Airbnb]: https://github.com/airbnb/javascript
[Google]: https://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml
[Crockford]: http://javascript.crockford.com/code.html

## Turn it on

JSCS linting is meant to work alongside our [JSHint linting][jshint-post].

You can enable or disable JSCS linting, or reference your own config,
by editing .hound.yml in your repo.

Example `.hound.yml`:

```yml
javascript:
  config_file: .jshintrc
jscs:
  enabled: true
  config_file: .jscsrc
```

Hound-JSCS's [current linter] supports [`jscs@^2.6.0`][jscs-2.6.0].

Unfortunately, we don't support [custom additional rules][custom] yet.

Like the rest of Hound's architecture, Hound's JSCS linter is also
[open-source]!

We think Hound is the best way to add style-checking to your workflow.
Since it’s free for open source projects, it couldn’t be easier to
[get started].

[open-source]: https://github.com/thoughtbot/hound-jscs
[get started]: https://houndci.com
[jshint-post]: https://thoughtbot.com/blog/hound-reviews-javascript-for-style-violations
[current linter]: https://github.com/thoughtbot/hound-jscs/blob/42801514b57f5a18cc4d87b61d0ca7f7efabc207/package.json#L30
[jscs-2.6.0]: https://github.com/jscs-dev/node-jscs/releases/tag/v2.6.0
[custom]: http://jscs.info/overview#additionalrules
