An ESLint formatter that outputs Checkstyle XML with file paths relative to the current working directory, helping cross-platform CI and local reproducibility. Version 1.0.1 is the latest and only stable release; it is a simple tweak of ESLint's built-in checkstyle formatter. Unlike the default formatter (which uses absolute paths), this formatter uses relative paths, ensuring consistent output across different environments (e.g., developer machines and CI servers). It has no dependencies and requires no configuration beyond specifying the formatter path. This package is ideal for teams using tools that expect relative paths in Checkstyle reports.
npm install eslint-formatter-checkstyle-relative-pathsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation and basic usage of the formatter with ESLint, using npx to run ESLint and specifying the formatter path.
Use require() or pass the path to the formatter via ESLint's --format flag.
Provide the full path: --format ./node_modules/eslint-formatter-checkstyle-relative-paths
Install eslint as a dev dependency.
Install the package: npm install eslint-formatter-checkstyle-relative-paths --save-dev. Then use --format with the full path to the package.
Use the package via ESLint's --format flag, not by calling it directly from code.
No dependency data recorded yet.