{"id":27444,"library":"tern-node-lint","title":"Tern Node Lint","description":"Tern plugin adding validation for Node.js require() statements. Version 0.1.0 (probably outdated, last release unknown). Integrates with Tern code intelligence to lint require module paths. Depends on tern and node plugins. Minimal maintenance; no updates since early 2015. Alternative: use TypeScript or ESLint with import/no-unresolved for require validation.","status":"maintenance","version":"0.1.0","language":"javascript","source_language":"en","source_url":"git://github.com/angelozerr/tern-node-lint","tags":["javascript"],"install":[{"cmd":"npm install tern-node-lint","lang":"bash","label":"npm"},{"cmd":"yarn add tern-node-lint","lang":"bash","label":"yarn"},{"cmd":"pnpm add tern-node-lint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core code intelligence engine","package":"tern","optional":false},{"reason":"Provides Node.js plugin that node-lint extends","package":"tern-node","optional":false}],"imports":[{"note":"Loaded as Tern plugin, not imported in code. Use .tern-project configuration.","wrong":"npm install tern-node-lint --global","symbol":"plugin (via .tern-project)","correct":"{\"plugins\":{\"node-lint\":{}}}"},{"note":"CJS-only; ESM not supported.","wrong":"import ternNodeLint from 'tern-node-lint';","symbol":"require('tern-node-lint')","correct":"const ternNodeLint = require('tern-node-lint');"},{"note":"Plugin must be registered programmatically if not using .tern-project.","wrong":"tern.loadPlugin('node-lint'); // method does not exist","symbol":"Tern plugin registration","correct":"const tern = require('tern'); tern.registerPlugin('node-lint', require('tern-node-lint'));"}],"quickstart":{"code":"// .tern-project\n{\n  \"plugins\": {\n    \"node\": {},\n    \"lint\": {},\n    \"node-lint\": {}\n  },\n  \"libs\": [\"browser\"]\n}\n\n// Install\n$ npm install tern tern-node-lint\n// Run Tern server with project\n$ tern --port 8080","lang":"javascript","description":"Shows minimal .tern-project config and npm install for Node.js require linting with Tern."},"warnings":[{"fix":"Switch to TypeScript or ESLint for require validation.","message":"Package has no releases since 0.1.0 (2015). Tern ecosystem is mostly unmaintained.","severity":"deprecated","affected_versions":"0.1.0"},{"fix":"Add plugins in order: node, lint, node-lint.","message":"Requires both 'node' and 'lint' plugins to be enabled; order matters.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Pin Tern to 0.11 or earlier.","message":"Breaking changes in Tern 0.12+ may cause plugin incompatibility.","severity":"breaking","affected_versions":">=0.12"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install tern-node-lint' in the project root.","cause":"Not installed or misplaced in node_modules","error":"Error: Cannot find module 'tern-node-lint'"},{"fix":"Use 'tern.registerPlugin('node-lint', require('tern-node-lint'))'","cause":"No such method; plugins are registered via tern.registerPlugin","error":"TypeError: tern.loadPlugin is not a function"},{"fix":"Add 'node-lint' to plugins in .tern-project.","cause":"Missing in .tern-project or programmatic registration","error":"Plugin 'node-lint' is not loaded"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}