Registry / devops / gulp-lint-everything

gulp-lint-everything

JSON →
library0.3.2jsnpmunverified

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.

npm install gulp-lint-everything
INSTALL
IMPORT
SIG · GULP-LINT-EVERYTHI
G
gulp-lint-everything
devopsjavascriptv0.3.2
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.

gulp-lint-everything (default)
var lintAll = require('gulp-lint-everything')(config);
var lintAll = require('gulp-lint-everything');
The module exports a function that accepts config; call it immediately, not just require.
lintAll (result)
gulp.task('default', lintAll('*.js'));
gulp.task('default', require('gulp-lint-everything')(__dirname));
The returned value is a function that takes a glob string.
Config object
require('gulp-lint-everything')({ jshint: './jshint.json', eslint: './eslint.json', jscs: './jscs.json' });
require('gulp-lint-everything')({ jshint: true });
Config must be file paths, not booleans.

Shows how to configure all three linters with custom config files and run them in a gulp task.

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')(); });
Debug
Known issues
deprecatedPackage is unmaintained since 2015; no updates for new ESLint versions.
fix
Use individual lint plugins or modern alternatives like gulp-eslint-new.
affects: all
breakingRequires Node 0.10+; may break on modern Node (12+).
fix
Run on older Node or upgrade dependencies manually.
affects: >=0.3.0
gotchaConfig paths are relative to the current working directory, not the gulpfile.
fix
Use absolute paths or path.join(__dirname, 'config.json').
affects: all
gotchaIf a config string is not provided, that linter is silently skipped; no error.
fix
Check that config files exist before running.
affects: all
deprecatedJSCS is no longer maintained; replaced by ESLint.
fix
Remove jscs config and use ESLint rules instead.
affects: all
Errors
Common errors & fixes
Cannot find module 'gulp-lint-everything'
Package not installed
fix
npm install --save-dev gulp-lint-everything
TypeError: lintAll is not a function
Calling result of require without invoking config
fix
Use require('gulp-lint-everything')(config) instead of require('gulp-lint-everything')
Error: Config file not found: ./jshint.json
Missing or incorrect config path
fix
Ensure config files exist relative to cwd, or use absolute path
Upgrade
Version history
0.3.2latest on npm
Audit
Dependencies
gulprequiredpeer dependency; requires a local gulp instance
gulp-jshintrequiredunderlying linter for JSHint
gulp-eslintrequiredunderlying linter for ESLint
gulp-jscsrequiredunderlying linter for JSCS
Agent activity
4 hits · last 30 days
node
4
Resources
gulp-lint-everything — npm install gulp-lint-everything · libregistry