-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
🌊 NxNx related issuesNx related issues🔥 performanceperformance optimizationperformance optimization🛍️ epicGroup of issuesGroup of issues🧩 eslint-plugin
Description
To leverage parallelisation and caching of external tools like Nx we have to adjust the eslint plugin.
Preparations:
- Pass persist options to
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.writeoption - Make runner create
eslint-report.<count>.json- Use
--output-pathto create.jsonfile (loosing terminal output so we also write before sending)
- Use
- Add artifice artefact generation logic
- Accept globs for
artificePaths
- Accept globs for
- Remove additional bin execution and switch to runnerFunction
Implementation:
- Update docs
- add e2e tests
- Add artifact options to
plugin-eslint -
linttarget in projects andnx.jsonshould use formatter - Use Nx
run-manyto generateeslint-reportartifacts- directly consume artifacts:
artifactsPaths: ['packages/**/.eslint/eslint-report.json']
- directly consume artifacts:
Optional:
- Add Custom reporter package
- Add Custom reporter to code
-
lint-formattertarget in projects andnx.json - Use custom reporter in
plugint-eslintCP config artifact command
move custom formatter into separate project(moved to separate issue)@code-pushup/eslint-formatter-multi
PoC: #1069
Related:
Metadata
Metadata
Assignees
Labels
🌊 NxNx related issuesNx related issues🔥 performanceperformance optimizationperformance optimization🛍️ epicGroup of issuesGroup of issues🧩 eslint-plugin