Lint your CoffeeScript using grunt.js and coffeelint.
JavaScript CoffeeScript
Latest commit c02dc2e Jun 2, 2016 @mwittig mwittig Release v0.0.16
Failed to load latest commit information.
tasks Add coffeelint-stylish reporter. Dec 23, 2013
test/fixtures Initial version Aug 19, 2012
.gitignore
.npmignore Initial version Aug 19, 2012
.travis.yml make CI build faster Aug 22, 2014
CHANGELOG.md Release v0.0.16 Jun 2, 2016
Gruntfile.coffee Addd auto-release task Apr 8, 2014
LICENSE Add MIT license Feb 19, 2013
README.md Use svg instead of png to get better image quality Apr 25, 2015
package.json Release v0.0.16 Jun 2, 2016

README.md

build status

grunt-coffeelint

Lint your CoffeeScript with CoffeeLint.

Installation

Install npm package, next to your project's Gruntfile.js file:

npm install grunt-coffeelint

Add this line to your project's Gruntfile.js:

grunt.loadNpmTasks('grunt-coffeelint');

Options

A few additional options are supported:

force

Type: Boolean Default value: false

Set force to true to report CoffeeLint errors but not fail the task.

Configuration

coffeelint is a multitask, so you can use it similary to lint, watch etc...

grunt.initConfig({
    ...
    coffeelint: {
      app: ['app/*.coffee', 'scripts/*.coffee']
    },
    ...
});

Options per target

grunt.initConfig({
    ...
    coffeelint: {
      app: ['app/*.coffee', 'scripts/*.coffee'],
      tests: {
        files: {
          src: ['tests/*.coffee']
        },
        options: {
          'no_trailing_whitespace': {
            'level': 'error'
          }
        }
      }
    },
    ...
});

Global - default options

grunt.initConfig({
    ...
    coffeelint: {
      options: {
        'no_trailing_whitespace': {
          'level': 'error'
        }
      }
    },
    ...
});

Loading external config

grunt.initConfig({
    ...
    coffeelint: {
      options: {
        configFile: 'coffeelint.json'
      }
    },
    ...
});

Task options take precedence over configFile options.

For available options see coffeelint homepage.