Registry / testing / lint-time

lint-time

JSON →
library0.1.1jsnpmunverified

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.

npm install lint-time
INSTALL
IMPORT
SIG · LINT-TIME
L
lint-time
testingjavascriptv0.1.1
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.

lintTime
import { lintTime } from 'lint-time'
import lintTime from 'lint-time'
This is a named export, not default.
lint-time (CLI)
npx lint-time
lint-time
CLI must be run via npx or global install.
type (TypeScript)
import type { LintTimeOptions } from 'lint-time'
import { LintTimeOptions } from 'lint-time'
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.

Shows how to install, configure with a .lint-time.js file, and run lint-time programmatically.

// Install // npm install lint-time // In your project root, create .lint-time.js with configuration: // Example configuration: module.exports = { '*.js': 'eslint --fix', '*.css': 'stylelint --fix' }; // Then run: const { lintTime } = require('lint-time'); lintTime().then((wasSuccessful) => { console.log('Lint passed?', wasSuccessful); }).catch(err => { console.error('Lint error:', err); });
Debug
Known issues
breakingNo configuration file found, skipping
fix
Create a .lint-time.js config file in project root.
affects: 0.0.0 - 0.1.1
breakingConfig file must be valid CommonJS module
fix
Use module.exports = { ... } in .lint-time.js
affects: 0.0.0 - 0.1.1
deprecatedPackage may not see frequent updates
fix
Consider alternatives like lint-staged if more features needed.
affects: >=0.1.1
gotchaCLI invocation via npx may require global install for non-npx users
fix
Install globally with npm install -g lint-time or use npx.
affects: 0.0.0 - 0.1.1
Errors
Common errors & fixes
Cannot find module 'lint-time'
Package not installed or not in node_modules path.
fix
Run 'npm install lint-time' in your project root.
TypeError: lintTime is not a function
Incorrect import (default import instead of named import).
fix
Use 'import { lintTime } from "lint-time"' instead of 'import lintTime from "lint-time"'.
Upgrade
Version history
0.1.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
lint-time — npm install lint-time · libregistry