Reduce hardcoded ESLint workspace configuration
This commit is contained in:
parent
a8084ad3f4
commit
4966a4a681
1 changed files with 4 additions and 29 deletions
|
@ -189,34 +189,9 @@ impl LspAdapter for EsLintLspAdapter {
|
||||||
future::ready(json!({
|
future::ready(json!({
|
||||||
"": {
|
"": {
|
||||||
"validate": "on",
|
"validate": "on",
|
||||||
"packageManager": "npm",
|
|
||||||
"useESLintClass": false,
|
|
||||||
"experimental": {
|
|
||||||
"useFlatConfig": false
|
|
||||||
},
|
|
||||||
"codeActionOnSave": {
|
|
||||||
"mode": "all"
|
|
||||||
},
|
|
||||||
"format": false,
|
|
||||||
"quiet": false,
|
|
||||||
"onIgnoredFiles": "off",
|
|
||||||
"options": {},
|
|
||||||
"rulesCustomizations": [],
|
"rulesCustomizations": [],
|
||||||
"run": "onType",
|
"run": "onType",
|
||||||
"problems": {
|
|
||||||
"shortenToSingleLine": false
|
|
||||||
},
|
|
||||||
"nodePath": null,
|
"nodePath": null,
|
||||||
"codeAction": {
|
|
||||||
"disableRuleComment": {
|
|
||||||
"enable": true,
|
|
||||||
"location": "separateLine",
|
|
||||||
"commentStyle": "line"
|
|
||||||
},
|
|
||||||
"showDocumentation": {
|
|
||||||
"enable": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
.boxed(),
|
.boxed(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue