{"id":40995,"library":"eslint-formatter-git-log","title":"eslint-formatter-git-log","description":"An ESLint formatter that enriches linting results with Git metadata (author, date, hash). Version 0.6.4 is the latest stable release, with maintenance releases as needed. It integrates seamlessly with ESLint's --format flag and supports filtering by committer email, making it ideal for CI and team workflows. Unlike standard formatters, it provides a direct link to the git annotate for each warning or error.","status":"active","version":"0.6.4","language":"javascript","source_language":"en","source_url":"https://github.com/JamieMason/eslint-formatter-git-log","tags":["javascript","eslint","eslint-formatter","eslintformatter","formatter","git","git-log","lint","reporter"],"install":[{"cmd":"npm install eslint-formatter-git-log","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-formatter-git-log","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-formatter-git-log","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required for ESLint formatter integration","package":"eslint","optional":false}],"imports":[{"note":"ESM import is not supported until a future version; use CommonJS require for now.","wrong":"import gitLogFormatter from 'eslint-formatter-git-log';","symbol":"gitLogFormatter","correct":"const gitLogFormatter = require('eslint-formatter-git-log');"},{"note":"withConfig is a method on the default export, not the default itself.","wrong":"gitLogFormatter({ emailRegExp: /pattern/ })","symbol":"withConfig","correct":"gitLogFormatter.withConfig({ emailRegExp: /pattern/ })"},{"note":"getUserEmail is a method on the default export.","wrong":"getUserEmail()","symbol":"getUserEmail","correct":"gitLogFormatter.getUserEmail()"}],"quickstart":{"code":"// .eslintrc.js or custom formatter file\nconst gitLogFormatter = require('eslint-formatter-git-log');\nmodule.exports = gitLogFormatter.withConfig({\n  emailRegExp: /you@example.com/, // optional filter\n});","lang":"javascript","description":"Custom ESLint formatter that filters results by committer email regex."},"warnings":[{"fix":"Use require() instead of import.","message":"ESM imports may not work; must use CommonJS require.","severity":"gotcha","affected_versions":"<=0.6.4"},{"fix":"Include the `i` flag in the regex: /pattern/i","message":"The `emailRegExp` filter is case-sensitive if not using the `i` flag.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Upgrade ESLint to >=8.0.0","message":"Older versions of ESLint (<8) are no longer supported.","severity":"deprecated","affected_versions":"<=0.5.0"}],"env_vars":null,"search_vec":"'0.6.4':20 'annot':64 'author':16 'ci':49 'committ':43 'date':17 'direct':59 'email':44 'enrich':10 'error':69 'eslint':2,7,35,71,73 'eslint-formatt':72 'eslint-formatter-git-log':1 'eslintformatt':75 'filter':41 'flag':38 'format':37 'formatt':3,8,55,74,76 'git':4,14,63,77,79 'git-log':78 'hash':18 'ideal':47 'integr':32 'javascript':70 'latest':23 'link':60 'lint':11,81 'log':5,80 'mainten':27 'make':45 'metadata':15 'need':30 'provid':57 'releas':25,28 'report':82 'result':12 'seamless':33 'stabl':24 'standard':54 'support':40 'team':51 'unlik':53 'version':19 'warn':67 'workflow':52","created_at":"2026-06-04T18:50:15.641010+00:00","updated_at":"2026-06-04T18:50:15.641010+00:00","problems":[{"fix":"const gitLogFormatter = require('eslint-formatter-git-log');","cause":"Using import statement instead of require.","error":"TypeError: gitLogFormatter.withConfig is not a function"},{"fix":"npm install --save-dev eslint eslint-formatter-git-log","cause":"Missing installation or incorrect require path.","error":"Cannot find module 'eslint-formatter-git-log'"},{"fix":"npm install chalk --save-dev","cause":"Missing peer dependency chalk (sometimes documented but not listed).","error":"Error: Cannot find module 'chalk'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/JamieMason/eslint-formatter-git-log","github":"https://github.com/JamieMason/eslint-formatter-git-log","docs":null,"changelog":null,"pypi":null,"npm":"eslint-formatter-git-log","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}