Skip to content

Lint your CoffeeScript using grunt.js and coffeelint.

License

Notifications You must be signed in to change notification settings

es128/grunt-coffeelint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build status

grunt-coffeelint

Lint your CoffeeScript by 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');

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'
        }
      }
    },
    ...
});

For available options see example configuration or coffeelint homepage.

About

Lint your CoffeeScript using grunt.js and coffeelint.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%