Adds Coffeelint linting support to Brunch.
JavaScript
Latest commit 0af317a Dec 2, 2016 @denysdovhan denysdovhan committed with shvaikalesh Fix brunch/brunch#1486 (#20)
Permalink
Failed to load latest commit information.
.eslintrc.json Update ESLint to 2.1.0 Feb 16, 2016
.gitignore update the version and dropped setup.js Apr 8, 2013
.npmignore make the prepublish in packages.json work Oct 1, 2012
.travis.yml
CHANGELOG.md Release 2.0.0. Jan 29, 2016
LICENSE-MIT license. Aug 21, 2012
README.md Fix brunch/brunch#1486 (#20) Dec 2, 2016
coffeelint.json Adds ability to use coffeelint.json Sep 16, 2015
index.js Fix broken pattern while doing interface 2.0 upgrade Oct 12, 2016
package.json Upgrade coffeelint dependency to 1.16.0 Nov 18, 2016
test.js Brunch actually passes the linter two params Jan 28, 2016

README.md

coffeelint-brunch

Adds coffeelint support to brunch.

Usage

Install the plugin via npm with npm install --save-dev coffeelint-brunch.

Or, do manual install:

  • Add "coffeelint-brunch": "x.y.z" to package.json of your brunch app. Pick a plugin version that corresponds to your minor (y) brunch version.
  • If you want to use git version of plugin, add "coffeelint-brunch": "git+ssh://git@github.com:ilkosta/coffeelint-brunch.git".

By default, only files in your config.paths.app are linted.

You can customize coffeelint config by changing brunch config using the native coffeelint options:

config =
  plugins:
    coffeelint:
      pattern: /^app\/.*\.coffee$/
      options:
        no_trailing_semicolons:
          level: "ignore"

You can also use the standard coffeelint.json file instead of adding exceptions in the brunch config:

config =
  plugins:
    coffeelint:
      useCoffeelintJson: yes

In the second case, any rules in plugins.coffeelint.options are ignored and instead coffeelint is supplied with the contents of the coffeelint.json file found in the root directory as the configuration object.

Every sub-option (pattern, options, useCoffeelintJson, globals) is optional.

License

Copyright (c) 2012 "ilkosta" Costantino Giuliodori.

Licensed under the MIT license.