{"id":25882,"library":"lint-time","title":"lint-time","description":"Lint your staged git files with zero dependencies, comparing to lint-staged's 60+ nested deps. This package (v0.1.1) runs configured linters only on staged files, with a single exported function lintTime(). Release cadence is irregular as a new project. Differentiators: extremely lightweight, no runtime dependencies, ESM and CJS support, TypeScript types included.","status":"active","version":"0.1.1","language":"javascript","source_language":"en","source_url":"https://github.com/tbjgolden/lint-time","tags":["javascript","lint","staged","files","git","precommit","hooks","parallel","time","typescript"],"install":[{"cmd":"npm install lint-time","lang":"bash","label":"npm"},{"cmd":"yarn add lint-time","lang":"bash","label":"yarn"},{"cmd":"pnpm add lint-time","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This is a named export, not default.","wrong":"import lintTime from 'lint-time'","symbol":"lintTime","correct":"import { lintTime } from 'lint-time'"},{"note":"CLI must be run via npx or global install.","wrong":"lint-time","symbol":"lint-time (CLI)","correct":"npx lint-time"},{"note":"TypeScript users should import types with 'import type' to avoid runtime overhead. However, as of v0.1.1, no types are exported beyond the function.","wrong":"import { LintTimeOptions } from 'lint-time'","symbol":"type (TypeScript)","correct":"import type { LintTimeOptions } from 'lint-time'"}],"quickstart":{"code":"// Install\n// npm install lint-time\n\n// In your project root, create .lint-time.js with configuration:\n// Example configuration:\nmodule.exports = {\n  '*.js': 'eslint --fix',\n  '*.css': 'stylelint --fix'\n};\n\n// Then run:\nconst { lintTime } = require('lint-time');\n\nlintTime().then((wasSuccessful) => {\n  console.log('Lint passed?', wasSuccessful);\n}).catch(err => {\n  console.error('Lint error:', err);\n});\n","lang":"javascript","description":"Shows how to install, configure with a .lint-time.js file, and run lint-time programmatically."},"warnings":[{"fix":"Create a .lint-time.js config file in project root.","message":"No configuration file found, skipping","severity":"breaking","affected_versions":"0.0.0 - 0.1.1"},{"fix":"Use module.exports = { ... } in .lint-time.js","message":"Config file must be valid CommonJS module","severity":"breaking","affected_versions":"0.0.0 - 0.1.1"},{"fix":"Consider alternatives like lint-staged if more features needed.","message":"Package may not see frequent updates","severity":"deprecated","affected_versions":">=0.1.1"},{"fix":"Install globally with npm install -g lint-time or use npx.","message":"CLI invocation via npx may require global install for non-npx users","severity":"gotcha","affected_versions":"0.0.0 - 0.1.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 lint-time' in your project root.","cause":"Package not installed or not in node_modules path.","error":"Cannot find module 'lint-time'"},{"fix":"Use 'import { lintTime } from \"lint-time\"' instead of 'import lintTime from \"lint-time\"'.","cause":"Incorrect import (default import instead of named import).","error":"TypeError: lintTime is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}