cytopia / cytopia/docker-eslint

Support for SARIF format

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Makefile
Stars
10
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Hi! When running the following command

`docker run -it --rm -v $(pwd):/data cytopia/eslint -f sarif .`

This error message appears:

```
There was a problem loading formatter: /usr/local/lib/node_modules/eslint/lib/cli-engine/formatters/sarif
Error: Cannot find module '/usr/local/lib/node_modules/eslint/lib/cli-engine/formatters/sarif'
Require stack:
- /usr/local/lib/node_modules/eslint/lib/cli-engine/cli-engine.js
- /usr/local/lib/node_modules/eslint/lib/eslint/eslint.js
- /usr/local/lib/node_modules/eslint/lib/eslint/index.js
- /usr/local/lib/node_modules/eslint/lib/cli.js
- /usr/local/lib/node_modules/eslint/bin/eslint.js
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported docker run command and checking the ESLint version and formatter path shown in the error. Trace how the image exposes ESLint formatters, then verify that the same command completes and produces SARIF output without the module-loading error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, javascript, nodejs
Domain
cli, devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.