extractors |
functions |
image |
vonwig/extractor-eslint:latest |
|
|
name |
description |
parameters |
container |
run-eslint |
Lints the current project with ESLint provided a config file already exists. If a config file does not exist, use StandardJS. |
type |
properties |
required |
object |
args |
version |
outputLevel |
type |
description |
string |
The args to pass for ESLint. For example, '.' |
|
type |
description |
number |
The ESLint version, 7-9 supported. Use 8 if unsure. |
|
type |
description |
string |
Nullish values return a summary from the linter. `complaint` returns a list of editor complaints. `condensed` returns violations grouped by violation id. `json` returns the raw JSON output from the linter. |
|
|
|
|
image |
vonwig/eslint:latest |
|
|
name |
description |
parameters |
container |
run-standardjs |
Lints the current project with StandardJS |
type |
properties |
required |
object |
typescript |
fix |
outputLevel |
files |
type |
description |
boolean |
Whether to lint Typescript files |
|
type |
description |
boolean |
Whether to fix the files |
|
type |
description |
number |
Nullish values return a summary from the linter. `complaint` returns a list of editor complaints. `condensed` returns violations grouped by violation id. `json` returns the raw JSON output from the linter. |
|
type |
items |
array |
type |
description |
string |
The filepaths to pass to the linter. Defaults to . |
|
|
|
typescript |
fix |
outputLevel |
|
|
image |
vonwig/standardjs:latest |
|
|
name |
description |
parameters |
container |
read_files |
Reads a set of files back |
type |
properties |
object |
files |
type |
items |
array |
type |
description |
string |
Relative path to a file to read. |
|
|
|
|
image |
vonwig/read_files:latest |
|
|
|
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}}
If there are no ESLint configuration files found, use StandardJS to lint the project.
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
Do the following to lint a JS/TS project:
-
Run the linter chosen.
-
Report the violation summary.
Lint my project's JS/TS files using summary
output.
Report what you did, broken down by each tool.
Relies on project facts and node extractor.
Local
docker build . -t vonwig/eslint:local
docker build . -t vonwig/extractor-eslint:local -f extractor.Dockerfile
docker build . -t vonwig/standardjs:local -f standardjs.Dockerfile
Push
docker build --push . -t vonwig/eslint:latest --push
docker build --push . -t vonwig/extractor-eslint:latest -f extractor.Dockerfile --push
docker build --push . -t vonwig/standardjs:latest -f standardjs.Dockerfile --push