You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To leverage parallelisation and caching of external tools like Nx we have to adjust the eslint plugin.
Preparations:
Pass persist options to runnerConfig.args and the runnerFunction to be able to know the Persist.outputDir in the runner. This enables to write files under ${persist.outputDir}/${PLUGIN_SLUG}/xy.z, similar as the cache.write option
Make runner create eslint-report.<count>.json
Use --output-path to create .json file (loosing terminal output so we also write before sending)
Add artifice artefact generation logic
Accept globs for artificePaths
Remove additional bin execution and switch to runnerFunction
Implementation:
Update docs
add e2e tests
Add artifact options to plugin-eslint
lint target in projects and nx.json should use formatter
Use Nx run-many to generate eslint-report artifacts
To leverage parallelisation and caching of external tools like Nx we have to adjust the eslint plugin.
Preparations:
runnerConfig.argsand therunnerFunctionto be able to know thePersist.outputDirin the runner. This enables to write files under${persist.outputDir}/${PLUGIN_SLUG}/xy.z, similar as thecache.writeoptioneslint-report.<count>.json--output-pathto create.jsonfile (loosing terminal output so we also write before sending)artificePathsImplementation:
plugin-eslintlinttarget in projects andnx.jsonshould use formatterrun-manyto generateeslint-reportartifactsartifactsPaths: ['packages/**/.eslint/eslint-report.json']Optional:
lint-formattertarget in projects andnx.jsonplugint-eslintCP config artifact commandmove custom formatter into separate project(moved to separate issue)@code-pushup/eslint-formatter-multiPoC: #1069
Related: