Skip to content

Files

Latest commit

 

History

History

eslint_fix

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
functions
name type ref
run_lint
prompt
github:docker/labs-ai-tools-for-devs?ref=main&path=prompts/eslint
name description parameters container
parse_lint_results
Loads lint violations grouped by type.
type properties
object
outputLevel
type description
string
Supports `condensed` or `complaints`
image
vonwig/read_eslint
name description parameters container
violations_for_file
Loads lint violations for a file.
type properties
object
path
type description
string
Path to read violations for. Useful for getting line numbers. Always uses full `json` output level for most context.
image
vonwig/read_eslint
name description parameters container
run_tree_sitter
Gets context from source code for a given line.
type properties required
object
path line
type description
string
The filepath of the affected code
type description
number
The affected line to load context from
path
line
image
vonwig/tree_sitter
docker run --rm \
           -it \
           -v /var/run/docker.sock:/var/run/docker.sock \
           --mount type=bind,source=$PROMPTS_DIR,target=/app/eslint_fix \
           --workdir /app \
           --mount type=volume,source=docker-prompts,target=/prompts \
           --mount type=bind,source=$HOME/.openai-api-key,target=/root/.openai-api-key \
           vonwig/prompts:latest \
                                 run \
                                 $PWD \
                                 $USER \
                                 "$(uname -o)" \
                                 eslint_fix