{"id":25984,"library":"ng-lint-report","title":"ng-lint-report","description":"Generates HTML reports from Angular CLI lint JSON output (0.2.0). Supports both TSLint and ESLint outputs. No active development; last release 2021. Simpler than alternatives like angular-eslint's built-in formatter — just converts JSON to a standalone HTML file.","status":"maintenance","version":"0.2.0","language":"javascript","source_language":"en","source_url":"https://github.com/scssyworks/ng-lint-report","tags":["javascript","angular","linting","lint","reporting","reports","html-report"],"install":[{"cmd":"npm install ng-lint-report","lang":"bash","label":"npm"},{"cmd":"yarn add ng-lint-report","lang":"bash","label":"yarn"},{"cmd":"pnpm add ng-lint-report","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is a CLI tool; no programmatic API. Use via npx or npm scripts.","wrong":"const report = require('ng-lint-report')","symbol":"default (CLI)","correct":"npx ng-lint-report --jsonfile path/to/output.json"},{"note":"Must provide --jsonfile argument. Script expects JSON from Angular lint with --format json.","wrong":"\"report\": \"node ng-lint-report\"","symbol":"CLI as npm script","correct":"\"report\": \"ng-lint-report --jsonfile jsonOutput.json\""}],"quickstart":{"code":"// package.json (add to scripts):\n\"scripts\": {\n  \"lint\": \"ng lint --format json --silent > jsonOutput.json\",\n  \"report\": \"ng-lint-report --jsonfile jsonOutput.json\",\n  \"ng-lint\": \"npm run lint && npm run report\"\n}\n// Then run:\nnpm run ng-lint\n// Report saved to ./ng-lint-report/report.html (default)","lang":"javascript","description":"Generates an HTML report from Angular lint JSON output via npm scripts."},"warnings":[{"fix":"Ensure lint command outputs valid JSON with message array; test with your Angular version.","message":"Angular 13+ uses ESLint instead of TSLint; JSON output format may differ.","severity":"deprecated","affected_versions":">=13.0"},{"fix":"Consider omitting --silent or checking exit code separately. Use '|| true' after lint command to continue.","message":"Silent flag may hide lint errors. If --silent is used, exit code is always 0 even on lint failures.","severity":"gotcha","affected_versions":">=0.0"},{"fix":"If using ESLint, ensure JSON output has 'messages' array per file. Optionally switch to an ESLint-specific reporter.","message":"TSLint is deprecated; JSON output from TSLint has different shape than ESLint.","severity":"deprecated","affected_versions":">=0.2.0"},{"fix":"Pipe lint output to file as shown; ensure file is valid JSON.","message":"Report only includes lint results from the JSON file; does not parse stdout or stderr.","severity":"gotcha","affected_versions":">=0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install as dev dependency: npm install --save-dev ng-lint-report; then run via npx or npm scripts.","cause":"Missing local install; using require instead of npx.","error":"Error: Cannot find module 'ng-lint-report'"},{"fix":"Ensure --jsonfile path is relative to project root or use absolute path. Example: --jsonfile ./reports/lint-results.json","cause":"JSON file not found at specified path.","error":"ENOENT: no such file or directory, open '.../jsonOutput.json'"},{"fix":"Use --format json flag with ng lint; ensure no other messages printed to stdout. Remove --silent temporarily to debug.","cause":"Lint output contains HTML or error text instead of JSON.","error":"SyntaxError: Unexpected token < in JSON at position 0"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}