{"id":26087,"library":"pon-task-lint","title":"pon-task-lint","description":"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.","status":"active","version":"1.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/realglobe-Inc/pon-task-lint","tags":["javascript","Pon"],"install":[{"cmd":"npm install pon-task-lint","lang":"bash","label":"npm"},{"cmd":"yarn add pon-task-lint","lang":"bash","label":"yarn"},{"cmd":"pnpm add pon-task-lint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Pon is the task runner that executes the defined lint task.","package":"pon","optional":false}],"imports":[{"note":"The package is CommonJS only, does not support ESM.","wrong":"import ponTaskLint from 'pon-task-lint'","symbol":"default","correct":"const ponTaskLint = require('pon-task-lint')"},{"note":"The export is a single function as default, not a named export.","wrong":"const { ponTaskLint } = require('pon-task-lint')","symbol":"ponTaskLint","correct":"const { default: ponTaskLint } = require('pon-task-lint')"},{"note":"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.","wrong":"import { define } from 'pon-task-lint'","symbol":"define","correct":"const { define } = require('pon-task-lint')"}],"quickstart":{"code":"const pon = require('pon')\nconst ponTaskLint = require('pon-task-lint')\n;(async () => {\n  let run = pon({\n    myTask01: ponTaskLint({ patterns: [ 'lib/**/**.js?(x)' ] })\n  })\n  run('myTask01')\n}).catch((err) => console.error(err))","lang":"javascript","description":"Shows how to create a Pon task that uses pon-task-lint to lint JavaScript files matching the pattern."},"warnings":[{"fix":"Use within a Pon task runner context.","message":"The package only works within the Pon task runner. Attempting to use the lint function standalone will fail.","severity":"gotcha","affected_versions":">=1.0"},{"fix":"Use require() or dynamic import with proper defaults.","message":"The package does not support ESM imports. Using 'import ponTaskLint from ...' leads to undefined or errors.","severity":"gotcha","affected_versions":">=1.0"},{"fix":"Use default import: const ponTaskLint = require('pon-task-lint')","message":"The exported function is the 'define' function. There is no named export 'ponTaskLint'. Importing with destructuring 'const { ponTaskLint } = require(...)' will yield undefined.","severity":"gotcha","affected_versions":">=1.0"},{"fix":"Evaluate if maintenance is needed or switch to a more active lint runner.","message":"The package has low activity and may not receive updates. Last release was version 1.1.0 with no recent updates.","severity":"gotcha","affected_versions":">=1.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use const ponTaskLint = require('pon-task-lint')","cause":"Importing the package incorrectly (e.g., using named import that doesn't exist).","error":"TypeError: ponTaskLint is not a function"},{"fix":"Ensure you call ponTaskLint with options object: ponTaskLint({ patterns: [...] })","cause":"Using ponTaskLint without calling it as a function, or the returned value is not a task function.","error":"TypeError: ponTaskLint(...) is not a function"},{"fix":"Run 'npm install pon-task-lint --save'","cause":"Package not installed.","error":"Error: Cannot find module 'pon-task-lint'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}