-
Notifications
You must be signed in to change notification settings - Fork 16
Open
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.args
and therunnerFunction
to be able to know thePersist.outputDir
in the runner. This enables to write files under${persist.outputDir}/${PLUGIN_SLUG}/xy.z
, similar as thecache.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)
- 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
-
lint
target in projects andnx.json
should use formatter - Use Nx
run-many
to generateeslint-report
artifacts- directly consume artifacts:
artifactsPaths: ['packages/**/.eslint/eslint-report.json']
- directly consume artifacts:
Optional:
- Add Custom reporter package
- Add Custom reporter to code
-
lint-formatter
target in projects andnx.json
- Use custom reporter in
plugint-eslint
CP config artifact command
- move custom formatter into separate project
@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