Registry / testing / gulp-ux-lint

gulp-ux-lint

JSON →
library1.4.0jsnpmunverified

Gulp plugin for ux-lint, a linting tool for JavaScript and similar files, version 1.4.0. This plugin integrates ux-lint into Gulp build pipelines, providing both reporting and optional automatic fixing of lint errors. It is Banno/Jack Henry-specific and not actively maintained; the last release was in 2015. Compared to more general linters like ESLint, this plugin is specialized for UX linting and has a narrow use case. It expects a .lintrc configuration file and supports plugin-specific options passed via the options object.

npm install gulp-ux-lint
INSTALL
IMPORT
SIG · GULP-UX-LINT
G
gulp-ux-lint
testingjavascriptv1.4.0
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.

default
var lint = require('gulp-ux-lint');
import lint from 'gulp-ux-lint';
CommonJS only; no default ESM export. Use require.
lint
gulp.task('default', function() { return gulp.src('src/*.js').pipe(lint()); });
gulp.task('default', function() { return gulp.src('src/*.js').pipe(lint); });
lint is a function that returns a transform stream; must be called as a function.
options
.pipe(lint({ fix: true }))
.pipe(lint.fix())
Options are passed as an object argument to the lint function; no separate method for fix.

Shows two Gulp tasks: one for reporting lint errors and one for automatically fixing them using the plugin.

var gulp = require('gulp'); var lint = require('gulp-ux-lint'); gulp.task('default', function() { return gulp.src('src/*.js') .pipe(lint()); }); gulp.task('fix-files', function() { return gulp.src('src/*.js') .pipe(lint({ fix: true })); });
Debug
Known issues
gotchaThe `lint` function must be called (e.g., `lint()`) not passed as a reference; otherwise it returns a function not a stream.
fix
Always call lint() with optional options object.
affects: >=1.0.0
gotchaWhen using `fix: true`, files are modified inline; do not pipe to `gulp.dest()` to avoid duplicate writes.
fix
For fix tasks, omit .pipe(gulp.dest()) as the plugin modifies files in place.
affects: >=1.0.0
deprecatedThis package is no longer actively maintained; last release in 2015. Consider migrating to ESLint or other modern linters.
fix
Replace with a more actively maintained linter and Gulp plugin.
affects: >=1.0.0
gotchaConfiguration is read from `.lintrc` file by default; if the file is missing, the plugin will fail silently.
fix
Ensure a .lintrc file exists in the project root or set extend: false and pass options explicitly.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'gulp-ux-lint'
Package not installed
fix
Run 'npm install --save-dev gulp-ux-lint'
TypeError: lint is not a function
Importing incorrectly as a class instead of calling require
fix
Ensure you use require('gulp-ux-lint') and then call lint() with parentheses.
Error: No .lintrc file found
Missing configuration file
fix
Create a .lintrc file or set { extend: false } and pass options directly.
Upgrade
Version history
1.4.0latest on npm
Audit
Dependencies
gulprequiredPeer dependency; plugin requires Gulp to function
ux-lintrequiredCore linting library; plugin wraps ux-lint
Agent activity
4 hits · last 30 days
node
4
Resources
gulp-ux-lint — npm install gulp-ux-lint · libregistry