{"id":26118,"library":"pug-lint-config-ctrl","title":"pug-lint-config-ctrl","description":"A shareable configuration for pug-lint enforcing coding standards for the ctrl framework. Current version 1.3.0 (no recent updates, appears stable). Defines rules for Pug/Jade templates (indentation, attribute order, etc.). Requires pug-lint ^2.3.0 as a peer dependency. Simple 'extends' usage similar to ESLint configs. Limited adoption; alternatives: pug-lint-config-google or custom configs. Not actively maintained (last update likely 2016).","status":"maintenance","version":"1.3.0","language":"javascript","source_language":"en","source_url":"https://github.com/martin-experiments/pug-lint-config-ctrl","tags":["javascript","puglint","puglintconfig","config","ctrl","pug"],"install":[{"cmd":"npm install pug-lint-config-ctrl","lang":"bash","label":"npm"},{"cmd":"yarn add pug-lint-config-ctrl","lang":"bash","label":"yarn"},{"cmd":"pnpm add pug-lint-config-ctrl","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required to lint Pug files","package":"pug-lint","optional":false}],"imports":[{"note":"Set extends to a string, not an array; pug-lint expects a single config name.","wrong":"{\n  \"extends\": [\"ctrl\"]\n}","symbol":"extends (in .pug-lintrc)","correct":"{\n  \"extends\": \"ctrl\"\n}"}],"quickstart":{"code":"// Install: npm install --save-dev pug-lint pug-lint-config-ctrl\n// Create .pug-lintrc.json in project root:\n{\n  \"extends\": \"ctrl\"\n}\n\n// Run pug-lint:\nconst pugLint = require('pug-lint');\nconst linter = new pugLint();\nlinter.configure(require('pug-lint-config-ctrl'));\nconst errors = linter.checkFile('template.pug');\nconsole.log(errors);","lang":"javascript","description":"Install, configure with extends, and run pug-lint programmatically using this config."},"warnings":[{"fix":"Create .pug-lintrc.json in project root with the extends field.","message":"The config file must be named .pug-lintrc.json or configured via package.json; using a .eslintrc file will not work as shown in README.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Consider migrating to an alternative config or custom rules.","message":"This package appears unmaintained since 2016; may not work with newer versions of pug-lint.","severity":"deprecated","affected_versions":">=1.3.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run: npm install --save-dev pug-lint-config-ctrl","cause":"pug-lint-config-ctrl not installed or missing from node_modules.","error":"Error: Cannot find module 'pug-lint-config-ctrl'"},{"fix":"Change \"extends\": [\"ctrl\"] to \"extends\": \"ctrl\"","cause":"Extends set to an array instead of a string.","error":"Configuration for rule \"extends\" is invalid: Expected a string but got an array."},{"fix":"Create a .pug-lintrc.json file with at least {\"extends\": \"ctrl\"}","cause":"No .pug-lintrc.json file found in project root or parent directories.","error":"pug-lint: No configuration found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}