Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat): Add support for eslint_d #548

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
17 changes: 12 additions & 5 deletions linters/eslint/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,25 @@ tools:
package: eslint
shims: [eslint]
known_good_version: 8.10.0
- name: eslint_d
runtime: node
package: eslint_d
shims: [eslint_d]
known_good_version: 13.0.0
lint:
definitions:
- name: eslint
files: [typescript, javascript]
tools: [eslint]
tools: [eslint, eslint_d, jq]
commands:
- name: lint
- name: lint_lsp
output: eslint
run: eslint --output-file ${tmpfile} --format json ${target}
run: eslint_d --format json ${target}
error_codes: [2]
read_output_from: tmp_file
batch: true
read_output_from: stdout
parser:
runtime: python
run: jq -e
direct_configs:
- .eslintrc
- .eslintrc.cjs
Expand Down
Loading