grunt-coffee-lint
raw JSON → 0.0.1 verified Fri May 01 auth: no javascript abandoned
A Grunt plugin to lint CoffeeScript files using coffee-lint. Currently at version 0.0.1 with no active development since 2013. Works only with Grunt ~0.4.1 and CoffeeScript. Not compatible with modern Node.js or Grunt versions. Lacks configuration options and has poor error reporting compared to alternatives like grunt-contrib-coffeelint.
Common errors
error Warning: Task "coffeelint" not found. Use --force to continue. ↓
cause Missing grunt.loadNpmTasks('grunt-coffee-lint') in Gruntfile.
fix
Add grunt.loadNpmTasks('grunt-coffee-lint'); to your Gruntfile.
error Fatal error: Cannot find module 'grunt-coffee-lint' ↓
cause grunt-coffee-lint is not installed in node_modules.
fix
Run: npm install grunt-coffee-lint --save-dev
Warnings
breaking Only compatible with Grunt ~0.4.1. Not compatible with Grunt 1.x. ↓
fix Use grunt-contrib-coffeelint or update to modern Grunt.
deprecated Package has not been updated since 2013. Unmaintained and abandoned. ↓
fix Switch to grunt-contrib-coffeelint or eslint with CoffeeScript parser.
gotcha No README or documentation available. ↓
fix Refer to source code on GitHub for usage: git://github.com/geta6/grunt-coffee-lint
gotcha CoffeeScript linting is outdated. Modern CoffeeScript may produce false positives. ↓
fix Consider using ESLint with CoffeeScript plugin or migrate to JavaScript/TypeScript.
Install
npm install grunt-coffee-lint yarn add grunt-coffee-lint pnpm add grunt-coffee-lint Imports
- coffeelint wrong
require('grunt-coffee-lint');correctgrunt.loadNpmTasks('grunt-coffee-lint');
Quickstart
// Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
coffeelint: {
app: ['src/**/*.coffee'],
options: {
configFile: 'coffeelint.json'
}
}
});
grunt.loadNpmTasks('grunt-coffee-lint');
grunt.registerTask('default', ['coffeelint']);
};