{"id":40963,"library":"eslint-codeframe-formatter","title":"ESLint Codeframe Formatter","description":"An ESLint formatter that outputs linting results with code snippets using babel-code-frame. Version 1.0.2 is stable (no further releases expected). This package enhances readability by showing the exact lines of code where errors and warnings occur, similar to babel's error output. It is a lightweight alternative to other ESLint formatters that only show file, line, column, and message. No breaking changes since its initial release; maintained in maintenance mode.","status":"maintenance","version":"1.0.2","language":"javascript","source_language":"en","source_url":"https://github.com/adriantoine/eslint-codeframe-formatter","tags":["javascript","eslint","eslint-formatter","formatter","reporter","lint","validate","codeframe","code-frame"],"install":[{"cmd":"npm install eslint-codeframe-formatter","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-codeframe-formatter","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-codeframe-formatter","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package does not ship ESM; it only supports CommonJS. Use require().","wrong":"import formatter from 'eslint-codeframe-formatter';","symbol":"default","correct":"const formatter = require('eslint-codeframe-formatter');"}],"quickstart":{"code":"// .eslintrc.js\nmodule.exports = {\n  formatter: 'eslint-codeframe-formatter'\n};\n\n// Or CLI: eslint --format=eslint-codeframe-formatter file.js","lang":"javascript","description":"Shows how to configure the formatter in .eslintrc.js or use via CLI."},"warnings":[{"fix":"Use ESLint <9 or switch to an actively maintained formatter.","message":"The package requires Node >=6 but ESLint 9+ may drop Node <18. Compatibility issues with newer ESLint versions.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"No workaround; consider other formatters if customization is needed.","message":"The formatter does not support custom options; it only uses default babel-code-frame settings.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'1.0.2':20 'altern':53 'babel':16,45 'babel-code-fram':15 'break':67 'chang':68 'code':12,17,37,88 'code-fram':87 'codefram':2,86 'column':63 'enhanc':29 'error':39,47 'eslint':1,5,56,78,80 'eslint-formatt':79 'exact':34 'expect':26 'file':61 'formatt':3,6,57,81,82 'frame':18,89 'initi':71 'javascript':77 'lightweight':52 'line':35,62 'lint':9,84 'maintain':73 'mainten':75 'messag':65 'mode':76 'occur':42 'output':8,48 'packag':28 'readabl':30 'releas':25,72 'report':83 'result':10 'show':32,60 'similar':43 'sinc':69 'snippet':13 'stabl':22 'use':14 'valid':85 'version':19 'warn':41","created_at":"2026-06-04T18:50:06.277448+00:00","updated_at":"2026-06-04T18:50:06.277448+00:00","problems":[{"fix":"npm install --save-dev eslint-codeframe-formatter","cause":"The formatter is not installed or the require path is incorrect.","error":"Error: Could not find formatter 'eslint-codeframe-formatter'"},{"fix":"Use require('eslint-codeframe-formatter') instead of import.","cause":"Using ES import style with this CommonJS-only package.","error":"TypeError: formatter is not a function"}],"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/adriantoine/eslint-codeframe-formatter#readme","github":"https://github.com/adriantoine/eslint-codeframe-formatter","docs":null,"changelog":null,"pypi":null,"npm":"eslint-codeframe-formatter","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"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}}