{"id":25598,"library":"fly-pug-lint","title":"fly-pug-lint","description":"fly-pug-lint is a plugin for the Fly task runner (version 0.0.11) that integrates pug-lint for linting Pug (formerly Jade) templates. It allows developers to lint Pug files using Fly's streaming API, supporting both async/await and generator function syntax. The plugin delegates to pug-lint for configuration, typically using a .pug-lintrc.js file. It requires Fly ^1.3.1 as a peer dependency. Compared to standalone pug-lint, it offers seamless integration with Fly workflows but is limited by Fly's maintenance status.","status":"deprecated","version":"0.0.11","language":"javascript","source_language":"en","source_url":"https://github.com/frantic1048/fly-pug-lint","tags":["javascript","fly","fly-plugin","pug","pug-lint","jade","jade-lint","lint"],"install":[{"cmd":"npm install fly-pug-lint","lang":"bash","label":"npm"},{"cmd":"yarn add fly-pug-lint","lang":"bash","label":"yarn"},{"cmd":"pnpm add fly-pug-lint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required for running tasks","package":"fly","optional":false}],"imports":[{"note":"The plugin exports a named function 'puglint'. In CJS, require works but import is preferred for ESM projects.","wrong":"const { puglint } = require('fly-pug-lint')","symbol":"puglint","correct":"import { puglint } from 'fly-pug-lint'"},{"note":"The package does not have a default export; only named export 'puglint' is available.","wrong":"const puglint = require('fly-pug-lint').default","symbol":"puglint (default)","correct":"import puglint from 'fly-pug-lint'"},{"note":"Direct require returns an object with the puglint property, so destructuring is required.","wrong":"const puglint = require('fly-pug-lint')","symbol":"CommonJS require","correct":"const puglint = require('fly-pug-lint').puglint"}],"quickstart":{"code":"import { puglint } from 'fly-pug-lint';\n\nexport async function lintPug() {\n  await this\n    .source('src/**/*.pug')\n    .puglint({\n      extends: '.pug-lintrc.js',\n      disallowIdAttributeWithStaticValue: true\n    });\n}","lang":"javascript","description":"Shows how to lint Pug files using fly-pug-lint with custom options in an async task."},"warnings":[{"fix":"Migrate to another task runner like Gulp or use standalone pug-lint.","message":"Fly task runner is no longer actively maintained.","severity":"deprecated","affected_versions":">=0.0.1"},{"fix":"Use import { puglint } from 'fly-pug-lint' or require('fly-pug-lint').puglint.","message":"The plugin exports only named export 'puglint', not default. Using import default will result in undefined.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use require('fly-pug-lint').puglint or import { puglint } from 'fly-pug-lint'.","message":"Requiring the package directly returns an object, not a function. Developers may mistakenly use require('fly-pug-lint') as a function.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Ensure Fly version is >=1.3.1.","message":"The plugin requires Fly ^1.3.1 and may not work with older versions of Fly due to API changes.","severity":"breaking","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure fly-pug-lint is installed (npm install -D fly-pug-lint) and import { puglint } from 'fly-pug-lint' in your Flyfile.","cause":"The plugin is not properly installed or imported as a Fly plugin. The function 'puglint' must be imported and used as a method on the Fly instance.","error":"TypeError: this.source(...).puglint is not a function"},{"fix":"Install pug-lint: npm install -D pug-lint","cause":"pug-lint is not automatically installed; it is a peer dependency of fly-pug-lint.","error":"Cannot find module 'pug-lint'"},{"fix":"Install Fly: npm install -D fly@^1.3.1","cause":"Fly is not installed or not in the project's dependencies.","error":"Cannot find module 'fly'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}