Registry / testing / ls-lint

ls-lint

JSON →
library0.1.2jsnpmunverified

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.

npm install ls-lint
INSTALL
IMPORT
SIG · LS-LINT
L
ls-lint
testingjavascriptv0.1.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.

default
import lsLint from 'ls-lint'
LiveScript-style require is not valid in JavaScript. Use ESM import or CommonJS require with default export.
ls-lint.lint
import { lint } from 'ls-lint'
const { lint } = require('ls-lint')
The package likely exports lint as a named function, but exact module structure is unclear due to age.
cli
npx ls-lint [options] [file]...
ls-lint --help
CLI usage only; no programmatic CLI import.

Shows basic usage of the lint function to check a LiveScript snippet.

import lsLint from 'ls-lint'; const errors = lsLint.lint('(x, y) -> x + y'); console.log(errors);
ls-lint --version
Debug
Known issues
deprecatedPackage has not been updated since 2015 and is effectively abandoned.
fix
Consider using a modern linter for JavaScript or CoffeeScript.
affects: all
breakingNo named exports may exist; only default export is available.
fix
Use default import or check package's module format.
affects: all
gotchaThe 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.
affects: all
Errors
Common errors & fixes
Cannot find module 'ls-lint'
Package not installed or not found in node_modules.
fix
Run 'npm install ls-lint' in your project directory.
lsLint.lint is not a function
Incorrect import or export structure.
fix
Use default import: import lsLint from 'ls-lint'.
Upgrade
Version history
0.1.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
ahrefsbot
3
Resources
ls-lint — npm install ls-lint · libregistry