A formatter for ESLint that provides output similar to clang's error format. Version 1.3.0 is the latest stable release. Includes colorized output, configurable colors via .clangformatterrc or programmatic config, and obeys ESLint's --no-color flag. It differentiates from default ESLint formatters by offering more informative file/location/error/message layout and customizable chalk-based colors. Suitable for developers who prefer clang-style error reporting.
npm install eslint-clang-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates programmatic usage with custom colors and options.
Pass an object like { clangFormatter: { colors: {...} } } instead of just { colors: {...} }.Ensure your `.clangformatterrc` file has `clangFormatter` as top-level key, e.g., {"clangFormatter":{"colorize":true}}Use `require('eslint-clang-formatter')` instead.Pass 'node_modules/eslint-clang-formatter' as the formatter name.
Ensure the package is installed: `npm install eslint-clang-formatter` and specify path as `node_modules/eslint-clang-formatter` or use the module name directly when using CLIEngine.getFormatter.
Formetter expects first argument to be an ESLint results array (e.g., from CLIEngine.executeOnFiles). Ensure you pass `report.results`.
Wrap your config inside `{ clangFormatter: { ... } }`.