PHPackages                             codelovers/assetic-jshint - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. codelovers/assetic-jshint

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

codelovers/assetic-jshint
=========================

JSHint filter for assetic

1962PHP

Since Mar 8Pushed 12y ago2 watchersCompare

[ Source](https://github.com/CodeLoversAt/assetic-jshint)[ Packagist](https://packagist.org/packages/codelovers/assetic-jshint)[ RSS](/packages/codelovers-assetic-jshint/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

assetic-jshint
==============

[](#assetic-jshint)

JSHint filter for Assetic

Most likely you will want to use this filter in a Symonfy 2 app. So we've created a bundle too :)

[codelovers/assetic-jshint-bundle](https://github.com/CodeLoversAt/assetic-jshint-bundle)
-----------------------------------------------------------------------------------------

[](#codeloversassetic-jshint-bundle)

Standalone usage
================

[](#standalone-usage)

This filter will pass given assets through [JsHint](http://www.jshint.com/) and throw an exception if any error has been found. To run it, you will need JsHint installed. Assuming you already have installed [node.js](http://nodejs.org/), you can install JsHint easily:

```
npm install -g jshint

```

The filter then only needs the path to the jshint binary as it's only constructor argument. Most likely it will be `/usr/bin/jshint`, which is the default value, or `/usr/local/bin/jshint`

```
