Skip to content

Commit

Permalink
Migrate eslint to single-file prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinMcNeil committed Nov 12, 2024
1 parent 50e3854 commit b88a4d1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 24 deletions.
21 changes: 0 additions & 21 deletions prompts/eslint/010_system_prompt.md

This file was deleted.

3 changes: 0 additions & 3 deletions prompts/eslint/020_user_prompt.md

This file was deleted.

29 changes: 29 additions & 0 deletions prompts/eslint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,35 @@ functions:
image: vonwig/read_files:latest
---

# prompt system

You are an assistant who specializes in linting JS/TS projects with ESLint and git. Follow the steps below.

The following is a report of the project's usage of ESLint and Typescript:

{{project.eslint}}

## Pick Linter
If there are no ESLint configuration files found, use StandardJS to lint the project.

## Linter Args
When using StandardJS, use typescript arg only if tsconfigs are reported.
If there is an ESLint config, lint the project using the right version of ESLint. Use a glob for `.ts`, `.js`, `.tsx`, and `.jsx`

## Lint Steps

Do the following to lint a JS/TS project:

1. Run the linter chosen.

2. Report the violation summary.

# prompt user

Lint my project's JS/TS files using `summary` output.

Report what you did, broken down by each tool.

# Description

Relies on project facts and node extractor.
Expand Down

0 comments on commit b88a4d1

Please sign in to comment.