Skip to content

Commit 36bd8fa

Browse files
authored
Merge pull request #4 from docker/cm/eslint-improvements
More ESLint improvements
2 parents 0b5de0e + f58371f commit 36bd8fa

File tree

3 files changed

+3
-23
lines changed

3 files changed

+3
-23
lines changed

prompts/eslint/010_system_prompt.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ If there is an ESLint config, lint the project using the right version of ESLint
1515

1616
Do the following to lint a JS/TS project:
1717

18-
1. Create a new branch with git.
18+
1. Run the linter chosen.
1919

20-
2. Run the linter chosen, fixing violations.
21-
22-
3. Evaluate the report of remaining violations after autofix.
23-
24-
4. Read files affected and generate fixes for the remaining violations.
20+
2. Report the violation summary.
2521

prompts/eslint/020_user_prompt.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Lint my project's JS/TS files. Use branch linting-eslint or a different one if it exists.
1+
Lint my project's JS/TS files.
22

33
Report what you did, broken down by each tool.

prompts/eslint/README.md

-16
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,6 @@ functions:
4747
- outputLevel
4848
container:
4949
image: vonwig/standardjs:latest
50-
- name: git-branch
51-
description: Handles git branches
52-
parameters:
53-
type: object
54-
properties:
55-
command:
56-
type: string
57-
description: The git command to use `checkout`, `merge`, or `branch`.
58-
args:
59-
type: string
60-
description: The args to use after the command
61-
required:
62-
- command
63-
- args
64-
container:
65-
image: vonwig/git:latest
6650
- name: read_files
6751
description: Reads a set of files back
6852
parameters:

0 commit comments

Comments
 (0)