gulp-lint-everything
raw JSON → 0.3.2 verified Fri May 01 auth: no javascript maintenance
A gulp plugin that combines gulp-jshint, gulp-eslint, and gulp-jscs into a single linting task. Version 0.3.2 is the latest (last updated 2015). It runs multiple linters in one pass via a single install and command. Differentiating features: auto-discovery of config files based on directory, and ability to skip linters by omitting config. Only supports Node 0.10+; unmaintained since 2015, with outdated dependencies.
Common errors
error Cannot find module 'gulp-lint-everything' ↓
cause Package not installed
fix
npm install --save-dev gulp-lint-everything
error TypeError: lintAll is not a function ↓
cause Calling result of require without invoking config
fix
Use require('gulp-lint-everything')(config) instead of require('gulp-lint-everything')
error Error: Config file not found: ./jshint.json ↓
cause Missing or incorrect config path
fix
Ensure config files exist relative to cwd, or use absolute path
Warnings
deprecated Package is unmaintained since 2015; no updates for new ESLint versions. ↓
fix Use individual lint plugins or modern alternatives like gulp-eslint-new.
breaking Requires Node 0.10+; may break on modern Node (12+). ↓
fix Run on older Node or upgrade dependencies manually.
gotcha Config paths are relative to the current working directory, not the gulpfile. ↓
fix Use absolute paths or path.join(__dirname, 'config.json').
gotcha If a config string is not provided, that linter is silently skipped; no error. ↓
fix Check that config files exist before running.
deprecated JSCS is no longer maintained; replaced by ESLint. ↓
fix Remove jscs config and use ESLint rules instead.
Install
npm install gulp-lint-everything yarn add gulp-lint-everything pnpm add gulp-lint-everything Imports
- gulp-lint-everything (default) wrong
var lintAll = require('gulp-lint-everything');correctvar lintAll = require('gulp-lint-everything')(config); - lintAll (result) wrong
gulp.task('default', require('gulp-lint-everything')(__dirname));correctgulp.task('default', lintAll('*.js')); - Config object wrong
require('gulp-lint-everything')({ jshint: true });correctrequire('gulp-lint-everything')({ jshint: './jshint.json', eslint: './eslint.json', jscs: './jscs.json' });
Quickstart
var gulp = require('gulp');
var lintAll = require('gulp-lint-everything')({
jshint: './configs/jshint.json',
eslint: './configs/eslint.json',
eslintRulePaths: ['./node_modules/eslint-rules'],
jscs: './configs/jscs.json'
});
gulp.task('default', ['lint'], function() {
lintAll('*.js')();
});