-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
🌊 NxNx related issuesNx related issues🔥 performanceperformance optimizationperformance optimization🧩 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:
- Add artifact options to
plugin-eslint
-
lint-json
target in projects andnx.json
- Use Nx
run-many
to generateeslint-report
artifacts- Include only relevant projects in
plugin-eslint
config
- Include only relevant projects in
Optional:
- Add Custom reporter to
plugint-eslint
-
lint-formatter
target in projects andnx.json
- Use custom reporter in
plugint-eslint
CP config artifact command
-
- move custom formatter into separate repo
@code-pushup/eslint-formatter
PoC: #1069
Metadata
Metadata
Assignees
Labels
🌊 NxNx related issuesNx related issues🔥 performanceperformance optimizationperformance optimization🧩 eslint-plugin