Registry / testing / pon-task-lint

pon-task-lint

JSON →
library1.1.0jsnpmunverified

Pon task for lint – A task definition module for the Pon task runner that provides linting functionality. Version 1.1.0 is the current stable release. It allows users to define tasks that run linting against specified file patterns. The package is minimal and designed to integrate seamlessly with Pon. Compared to other lint runners, it is tightly coupled with the Pon ecosystem and may not have broad standalone use.

npm install pon-task-lint
INSTALL
IMPORT
SIG · PON-TASK-LINT
P
pon-task-lint
testingjavascriptv1.1.0
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
const ponTaskLint = require('pon-task-lint')
import ponTaskLint from 'pon-task-lint'
The package is CommonJS only, does not support ESM.
ponTaskLint
const { default: ponTaskLint } = require('pon-task-lint')
const { ponTaskLint } = require('pon-task-lint')
The export is a single function as default, not a named export.
define
const { define } = require('pon-task-lint')
import { define } from 'pon-task-lint'
Although the README shows 'define' as a method on the default export, there is no named export 'define'. The default export is the define function itself.

Shows how to create a Pon task that uses pon-task-lint to lint JavaScript files matching the pattern.

const pon = require('pon') const ponTaskLint = require('pon-task-lint') ;(async () => { let run = pon({ myTask01: ponTaskLint({ patterns: [ 'lib/**/**.js?(x)' ] }) }) run('myTask01') }).catch((err) => console.error(err))
Debug
Known issues
gotchaThe package only works within the Pon task runner. Attempting to use the lint function standalone will fail.
fix
Use within a Pon task runner context.
affects: >=1.0
gotchaThe package does not support ESM imports. Using 'import ponTaskLint from ...' leads to undefined or errors.
fix
Use require() or dynamic import with proper defaults.
affects: >=1.0
gotchaThe exported function is the 'define' function. There is no named export 'ponTaskLint'. Importing with destructuring 'const { ponTaskLint } = require(...)' will yield undefined.
fix
Use default import: const ponTaskLint = require('pon-task-lint')
affects: >=1.0
gotchaThe package has low activity and may not receive updates. Last release was version 1.1.0 with no recent updates.
fix
Evaluate if maintenance is needed or switch to a more active lint runner.
affects: >=1.1
Errors
Common errors & fixes
TypeError: ponTaskLint is not a function
Importing the package incorrectly (e.g., using named import that doesn't exist).
fix
Use const ponTaskLint = require('pon-task-lint')
TypeError: ponTaskLint(...) is not a function
Using ponTaskLint without calling it as a function, or the returned value is not a task function.
fix
Ensure you call ponTaskLint with options object: ponTaskLint({ patterns: [...] })
Error: Cannot find module 'pon-task-lint'
Package not installed.
fix
Run 'npm install pon-task-lint --save'
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies
ponrequiredPon is the task runner that executes the defined lint task.
Agent activity
7 hits · last 30 days
node
6
Bingbot
1
Resources
pon-task-lint — npm install pon-task-lint · libregistry