ls-lint
raw JSON → 0.1.2 verified Fri May 01 auth: no javascript abandoned
ls-lint is a linter for LiveScript, a compile-to-JavaScript language. Version 0.1.2 is the latest and only stable release, with no updates or commits since 2015. It provides a CLI and API for linting LiveScript files, with configurable rules such as max-file-lines and eol-last. The project appears abandoned, with no releases in over 9 years and no active maintenance. It is distinct from the newer ls-lint directory linter.
Common errors
error Cannot find module 'ls-lint' ↓
cause Package not installed or not found in node_modules.
fix
Run 'npm install ls-lint' in your project directory.
error lsLint.lint is not a function ↓
cause Incorrect import or export structure.
fix
Use default import: import lsLint from 'ls-lint'.
Warnings
deprecated Package has not been updated since 2015 and is effectively abandoned. ↓
fix Consider using a modern linter for JavaScript or CoffeeScript.
breaking No named exports may exist; only default export is available. ↓
fix Use default import or check package's module format.
gotcha The package is named 'ls-lint' but is unrelated to the popular directory linter 'ls-lint' (ls-lint/ls-lint). ↓
fix Verify package name and scope; install 'ls-lint' for directory linting.
Install
npm install ls-lint yarn add ls-lint pnpm add ls-lint Imports
- default
import lsLint from 'ls-lint' - ls-lint.lint wrong
const { lint } = require('ls-lint')correctimport { lint } from 'ls-lint' - cli wrong
ls-lint --helpcorrectnpx ls-lint [options] [file]...
Quickstart
import lsLint from 'ls-lint';
const errors = lsLint.lint('(x, y) -> x + y');
console.log(errors);