Registry / devops / lint-list

lint-list

JSON →
library1.0.6jsnpmunverified

A minimal npm package that lists all 'lint:' scripts from your package.json, including the variation 'lint:<task>:fix'. Version 1.0.6 is the latest and only stable version. It is a lightweight utility with no dependencies, useful for quickly viewing available linting commands without opening package.json. Unlike more complex task runners, it provides a simple one-liner for listing npm lint scripts.

npm install lint-list
INSTALL
IMPORT
SIG · LINT-LIST
L
lint-list
devopsjavascriptv1.0.6
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 lintList from 'lint-list'
const lintList = require('lint-list')
The package is ESM-only, so CommonJS require will not work.
lintList
const { default: lintList } = await import('lint-list')
const lintList = require('lint-list').default
Dynamic import with default is needed in CommonJS context.
listScripts
import { listScripts } from 'lint-list'
const { listScripts } = require('lint-list')
If the package exports a named function, but by default only a default export exists.

Shows how to import and call the default function to list all lint scripts from package.json.

import lintList from 'lint-list'; const scripts = lintList(); console.log(scripts); // Example output: ['lint', 'lint:fix', 'lint:scripts:fix']
Debug
Known issues
gotchaThe module is ESM-only. Importing with require() will throw an error.
fix
Use import or dynamic import instead of require.
affects: >=1.0.0
gotchaNo README or documentation available. The package may have undocumented behavior.
fix
Check the source code or test the package to understand its behavior.
affects: >=1.0.0
gotchaThe package may not be actively maintained. Version 1.0.6 is the only release.
fix
Consider if this is the right tool; alternatives like 'npm-run-all' offer more features.
affects: >=1.0.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module
Using require() on an ESM-only package.
fix
Use import() or switch to a CommonJS compatible package.
TypeError: lintList is not a function
Attempting to call a default import incorrectly, e.g., require('lint-list').lintList.
fix
Ensure you use the default import correctly: import lintList from 'lint-list';
ERR_MODULE_NOT_FOUND
Missing package.json or module not installed properly.
fix
Run npm install lint-list to install the package.
Upgrade
Version history
1.0.6latest on npm
Audit
Dependencies

No dependency data recorded yet.

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