Registry / devops / grunt-coffeelint

grunt-coffeelint

JSON →
library0.0.16jsnpmunverified

Grunt plugin to lint CoffeeScript files using CoffeeLint. Current stable version is 0.0.16 (last released June 2016). The package is in maintenance mode with no active development. It supports multitask configuration, per-target options, external config files, and a force option to prevent task failure on lint errors. Unlike running coffeelint directly, this integrates with Grunt's build pipeline.

npm install grunt-coffeelint
INSTALL
IMPORT
SIG · GRUNT-COFFEELINT
G
grunt-coffeelint
devopsjavascriptv0.0.16
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

coffeelint task
grunt.loadNpmTasks('grunt-coffeelint');
require('grunt-coffeelint');
Grunt plugins are loaded via loadNpmTasks, not directly required.
task configuration
grunt.initConfig({ coffeelint: { ... } });
coffeelint: require('grunt-coffeelint').initConfig(...)
Configure under 'coffeelint' key in grunt.initConfig.

Sets up the coffeelint Grunt task to lint all CoffeeScript files under src/.

// Install: npm install grunt-coffeelint --save-dev // In Gruntfile.js module.exports = function(grunt) { grunt.loadNpmTasks('grunt-coffeelint'); grunt.initConfig({ coffeelint: { options: { force: false }, all: ['src/**/*.coffee'] } }); grunt.registerTask('default', ['coffeelint']); };
Debug
Known issues
deprecatedPackage no longer maintained since 2016.
fix
Consider migrating to a modern linter or use coffeelint directly.
affects: >=0.0.16
gotchaPeer dependency grunt >=0.4.0 required; not compatible with Grunt 0.3.x.
fix
Use Grunt 0.4 or later.
affects: >=0.0.6
gotchaOptions from configFile are overridden by task-level options.
fix
Be aware of precedence: task options > configFile.
affects: >=0.0.13
Errors
Common errors & fixes
Warning: Task "coffeelint" not found.
grunt.loadNpmTasks('grunt-coffeelint') not called or package not installed.
fix
Run npm install grunt-coffeelint --save-dev and add grunt.loadNpmTasks('grunt-coffeelint'); to Gruntfile.
Fatal error: Unable to load task "coffeelint".
Missing peer dependency grunt >=0.4.0.
fix
Ensure Grunt 0.4+ is installed: npm install grunt --save-dev.
Running "coffeelint:all" (coffeelint) task Warning: coffeelint: Failed to load config file "coffeelint.json"
Config file path is incorrect.
fix
Verify configFile path relative to Gruntfile or use absolute path.
Upgrade
Version history
0.0.16latest on npm
Audit
Dependencies
gruntrequiredpeer dependency required for Grunt plugin interface
Agent activity
4 hits · last 30 days
node
4
Resources
grunt-coffeelint — npm install grunt-coffeelint · libregistry