gulp-lint-ls

raw JSON →
0.1.0 verified Fri May 01 auth: no javascript deprecated

Gulp plugin for lint-ls, enabling linting of LiveScript files within Gulp build pipelines. Version 0.1.0 is the initial release with no further updates. It provides a simple Gulp plugin wrapper around lint-ls for LiveScript linting. Limited adoption and no tests included; likely experimental or deprecated.

error TypeError: ls is not a function
cause Importing plugin object directly without calling it as a function.
fix
Change .pipe(ls) to .pipe(ls())
error SyntaxError: The requested module 'gulp-lint-ls' does not provide an export named 'ls'
cause Using named import { ls } instead of default import.
fix
Use import ls from 'gulp-lint-ls' instead of import { ls } from 'gulp-lint-ls'.
deprecated Package has not been updated since initial release; may be abandoned.
fix Use alternative LiveScript linting tools or maintain fork.
gotcha Plugin must be called as a function (ls()) not just referenced (ls).
fix Always invoke with parentheses: .pipe(ls())
gotcha Package exports a single default function; named import (import { ls }) will fail.
fix Use default import: import ls from 'gulp-lint-ls' or require('gulp-lint-ls').
npm install gulp-lint-ls
yarn add gulp-lint-ls
pnpm add gulp-lint-ls

Shows basic Gulp task with gulp-lint-ls to lint LiveScript files. Uses CommonJS require and invokes plugin as function.

const gulp = require('gulp');
const ls = require('gulp-lint-ls');

gulp.task('lint', function() {
  return gulp.src('./src/**/*.ls')
    .pipe(ls())
    .pipe(gulp.dest('./lint-output'));
});