{"id":25850,"library":"lab-lint","title":"lab-lint","description":"Integrates JSLint into the Spumko/Lab testing framework, enabling automatic JavaScript linting as part of test suites. Version 0.0.3 is the latest stable release, with no active development or updates since 2014. It is opinionated, scanning all .js files in /lib and /test directories by default. Configuration is done via a standard .jslint JSON file. This package is deprecated in favor of more modern linters like ESLint and newer test runners like Lab's built-in linting support.","status":"deprecated","version":"0.0.3","language":"javascript","source_language":"en","source_url":"git@github.com:martinheidegger/lab-lint","tags":["javascript","test","lint","lab","integration"],"install":[{"cmd":"npm install lab-lint","lang":"bash","label":"npm"},{"cmd":"yarn add lab-lint","lang":"bash","label":"yarn"},{"cmd":"pnpm add lab-lint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency; lab-lint is designed to integrate with the lab testing framework.","package":"lab","optional":false},{"reason":"Required for linting functionality; used internally to perform lint checks.","package":"jslint","optional":false}],"imports":[{"note":"The package exports a function that must be called immediately with Lab and dirname parameters. It does not support ES6 import syntax.","wrong":"import labLint from 'lab-lint';","symbol":"default","correct":"require('lab-lint')(Lab, dirname);"}],"quickstart":{"code":"// test/lint.js\n'use strict';\n\nvar Lab = require('lab');\nvar dirname = __dirname;\n\nrequire('lab-lint')(Lab, dirname);\n\n// Optional: Configure jslint via a .jslint file in project root\n// Example .jslint:\n// {\n//   \"nomen\": true,\n//   \"vars\": true\n// }","lang":"javascript","description":"Shows how to integrate lab-lint into a Lab test suite to automatically lint all .js files in /lib and /test directories."},"warnings":[{"fix":"Replace with eslint and lab-eslint or similar modern tools.","message":"lab-lint is unmaintained and relies on JSLint, which is outdated and no longer recommended. Use ESLint with Lab's built-in or third-party linting support instead.","severity":"deprecated","affected_versions":"<=0.0.3"},{"fix":"Ensure you pass the correct Lab object and __dirname.","message":"The function must be called with a Lab instance and dirname as arguments. Failure to do so will cause a runtime error.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"If you need different paths, consider forking the package or using a different linting integration.","message":"Only .js files in /lib and /test directories are linted. This is hardcoded and not configurable.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Use a Node.js version <= 0.10.x or migrate to a modern linter.","message":"Requires Node.js 0.10.x or older; may not work on modern Node.js versions due to JSLint compatibility issues.","severity":"breaking","affected_versions":">=0.0.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install lab --save-dev' to add the lab testing framework.","cause":"lab-lint requires the 'lab' package as a peer dependency, which must be installed.","error":"Error: Cannot find module 'lab'"},{"fix":"Replace 'var lint = require(\"lab-lint\"); lint(Lab, dirname);' with 'require(\"lab-lint\")(Lab, dirname);'.","cause":"The package exports a function, not an object. Use require('lab-lint') as a function call.","error":"TypeError: lab-lint is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}