pon-task-lint
raw JSON → 1.1.0 verified Fri May 01 auth: no javascript
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.
Common errors
error TypeError: ponTaskLint is not a function ↓
cause Importing the package incorrectly (e.g., using named import that doesn't exist).
fix
Use const ponTaskLint = require('pon-task-lint')
error TypeError: ponTaskLint(...) is not a function ↓
cause 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 Error: Cannot find module 'pon-task-lint' ↓
cause Package not installed.
fix
Run 'npm install pon-task-lint --save'
Warnings
gotcha The 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.
gotcha The package does not support ESM imports. Using 'import ponTaskLint from ...' leads to undefined or errors. ↓
fix Use require() or dynamic import with proper defaults.
gotcha The 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')
gotcha The 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.
Install
npm install pon-task-lint yarn add pon-task-lint pnpm add pon-task-lint Imports
- default wrong
import ponTaskLint from 'pon-task-lint'correctconst ponTaskLint = require('pon-task-lint') - ponTaskLint wrong
const { ponTaskLint } = require('pon-task-lint')correctconst { default: ponTaskLint } = require('pon-task-lint') - define wrong
import { define } from 'pon-task-lint'correctconst { define } = require('pon-task-lint')
Quickstart
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))