{"id":25690,"library":"gulp-coffeelint","title":"gulp-coffeelint","description":"Gulp plugin for CoffeeLint, version 0.6.0. It lints CoffeeScript files within a gulp pipeline, supporting custom rule files, inline options, literate CoffeeScript, and custom rules. It integrates with CoffeeLint's built-in and external reporters, and includes 'fail' and 'failOnWarning' reporters for task failure. Commonly used in legacy CoffeeScript projects, but no longer actively maintained. Key differentiators: seamless gulp integration, auto-discovery of coffeelint.json config, and per-file result properties.","status":"maintenance","version":"0.6.0","language":"javascript","source_language":"en","source_url":"https://github.com/janraasch/gulp-coffeelint","tags":["javascript","gulpplugin","lint","coffee","coffeelint","coffeescript","coffee-script","codeconventions"],"install":[{"cmd":"npm install gulp-coffeelint","lang":"bash","label":"npm"},{"cmd":"yarn add gulp-coffeelint","lang":"bash","label":"yarn"},{"cmd":"pnpm add gulp-coffeelint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency: requires CoffeeLint to be installed","package":"coffeelint","optional":false},{"reason":"default reporter when none specified","package":"coffeelint-stylish","optional":true}],"imports":[{"note":"CommonJS module; ESM not supported.","wrong":"import coffeelint from 'gulp-coffeelint';","symbol":"gulp-coffeelint","correct":"const coffeelint = require('gulp-coffeelint');"}],"quickstart":{"code":"const gulp = require('gulp');\nconst coffeelint = require('gulp-coffeelint');\n\ngulp.task('lint', function() {\n  return gulp.src('./src/*.coffee')\n    .pipe(coffeelint())\n    .pipe(coffeelint.reporter('coffeelint-stylish'))\n    .pipe(coffeelint.reporter('fail'));\n});","lang":"javascript","description":"Sets up a gulp task that lints CoffeeScript files, uses stylish reporter, and fails on error."},"warnings":[{"fix":"Migrate to ESLint or similar.","message":"CoffeeScript and CoffeeLint are largely obsolete; consider migrating to JavaScript/TypeScript with ESLint.","severity":"deprecated","affected_versions":">=0.1.0"},{"fix":"Always return the stream from the gulp task (e.g., 'return gulp.src(...).pipe(...)').","message":"When using 'fail' reporter, ensure the stream is returned from the task, otherwise gulp may not detect failure.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Implement a constructor accepting an errorReport and a publish method.","message":"Custom reporters must follow CoffeeLint's reporter interface (constructor and publish method).","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install coffeelint-stylish: npm install --save-dev coffeelint-stylish","cause":"The default reporter is not installed as a dependency.","error":"Error: Cannot find module 'coffeelint-stylish'"},{"fix":"Use .pipe(coffeelint().reporter(...)) or .pipe(coffeelint()).pipe(coffeelint.reporter(...))","cause":"Forgetting to call coffeelint() before .reporter().","error":"TypeError: coffeelint.reporter is not a function"},{"fix":"Create a valid coffeelint.json in your project root or pass optFile option.","cause":"Missing or incorrect config file path.","error":"Error: Failed to load coffeelint config file coffeelint.json"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}