-
Notifications
You must be signed in to change notification settings - Fork 38
/
plugin.yaml
51 lines (51 loc) · 1.4 KB
/
plugin.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: 0.1
tools:
definitions:
- name: eslint
runtime: node
package: eslint
shims: [eslint]
known_good_version: 8.10.0
lint:
definitions:
- name: eslint
files: [typescript, javascript]
tools: [eslint]
description: Find and fix problems in your TS/JS code
commands:
- name: lint
version: ">=9.0.0"
direct_configs:
- eslint.config.js
- eslint.config.mjs
- eslint.config.cjs
output: eslint
run: eslint --output-file ${tmpfile} --format json ${target}
error_codes: [2]
read_output_from: tmp_file
batch: true
- name: lint
version: <=8.57.0
direct_configs:
- .eslintrc
- .eslintrc.cjs
- .eslintrc.js
- .eslintrc.json
- .eslintrc.mjs
- .eslintrc.yaml
- .eslintrc.yml
output: eslint
run: eslint --output-file ${tmpfile} --format json ${target}
error_codes: [2]
read_output_from: tmp_file
batch: true
suggest_if: config_present
affects_cache:
- .eslintignore
- package.json
- tsconfig.json
issue_url_format: https://eslint.org/docs/rules/{}
known_good_version: 8.10.0
version_command:
parse_regex: ${semver}
run: eslint --version