An ESLint result processor that generates JUnit XML files for integration with CI systems like Jenkins. Current version 1.0.1, last released in 2017 with no recent updates (low maintenance). It works by running ESLint with a custom formatter and producing XML output configurable via environment variables or package.json. Similar to 'eslint-junit-formatter' but simpler and older. It has minimal dependencies and supports Node >=6.0.0.
npm install eslint-junitVerified import paths — ran on the pinned version, not inferred.
Installs eslint-junit as a dev dependency and runs ESLint with it, exporting JUnit XML to ./test-results/eslint-junit.xml.
Switch to maintained alternatives like 'eslint-junit-formatter' or 'eslint-formatter-junit'.
Set ESLINT_JUNIT_OUTPUT environment variable or use package.json config.
Ensure all values in the config object are strings.
Use full path: eslint -f ./node_modules/eslint-junit/index.js
Ensure ESLINT_JUNIT_CLASSNAME or ESLINT_JUNIT_TITLE use valid placeholders like {ruleId}, {line}, {source}.No dependency data recorded yet.