Skip to content

Commit

Permalink
Merge pull request #4 from docker/cm/eslint-improvements
Browse files Browse the repository at this point in the history
More ESLint improvements
  • Loading branch information
ColinMcNeil authored Jul 24, 2024
2 parents 0b5de0e + f58371f commit 36bd8fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 23 deletions.
8 changes: 2 additions & 6 deletions prompts/eslint/010_system_prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ If there is an ESLint config, lint the project using the right version of ESLint

Do the following to lint a JS/TS project:

1. Create a new branch with git.
1. Run the linter chosen.

2. Run the linter chosen, fixing violations.

3. Evaluate the report of remaining violations after autofix.

4. Read files affected and generate fixes for the remaining violations.
2. Report the violation summary.

2 changes: 1 addition & 1 deletion prompts/eslint/020_user_prompt.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Lint my project's JS/TS files. Use branch linting-eslint or a different one if it exists.
Lint my project's JS/TS files.

Report what you did, broken down by each tool.
16 changes: 0 additions & 16 deletions prompts/eslint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,6 @@ functions:
- outputLevel
container:
image: vonwig/standardjs:latest
- name: git-branch
description: Handles git branches
parameters:
type: object
properties:
command:
type: string
description: The git command to use `checkout`, `merge`, or `branch`.
args:
type: string
description: The args to use after the command
required:
- command
- args
container:
image: vonwig/git:latest
- name: read_files
description: Reads a set of files back
parameters:
Expand Down

0 comments on commit 36bd8fa

Please sign in to comment.