-
Notifications
You must be signed in to change notification settings - Fork 0
/
efm-langserver-config.yaml
46 lines (43 loc) · 1.17 KB
/
efm-langserver-config.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
version: 2
root-markers:
- .git
tools:
eslint_d: &eslint_d
format-command: "eslint_d --f unix --fix-to-stdout --stdin --stdin-filename=${INPUT}"
format-stdin: true
lint-command: "eslint_d --f unix --stdin --stdin-filename=${INPUT}"
lint-stdin: true
lint-ignore-exit-code: true
lint-after-open: true
eslint: &eslint
format-command: "eslint --format unix --fix-to-stdout --stdin --stdin-filename=${INPUT}"
format-stdin: true
lint-command: "eslint --format unix --stdin --stdin-filename=${INPUT}"
lint-stdin: true
lint-ignore-exit-code: true
lint-after-open: true
prettierd: &prettierd
format-command: >
prettierd ${INPUT} ${--range-start=charStart} ${--range-end=charEnd} \
${--tab-width=tabSize}
format-stdin: true
lint-after-open: true
root-markers:
- .prettierrc
- .prettierrc.json
- .prettierrc.js
- .prettierrc.yml
- .prettierrc.yaml
- .prettierrc.json5
- .prettierrc.mjs
- .prettierrc.cjs
- .prettierrc.toml
languages:
javascript:
- <<: *eslint_d
json:
- <<: *prettierd
jsonc:
- <<: *prettierd
typescript:
- <<: *eslint_d