Reduce hardcoded ESLint workspace configuration

This commit is contained in:
Julia 2023-05-01 13:14:35 -04:00
parent a8084ad3f4
commit 4966a4a681

View file

@ -188,35 +188,10 @@ impl LspAdapter for EsLintLspAdapter {
Some( Some(
future::ready(json!({ future::ready(json!({
"": { "": {
"validate": "on", "validate": "on",
"packageManager": "npm", "rulesCustomizations": [],
"useESLintClass": false, "run": "onType",
"experimental": { "nodePath": null,
"useFlatConfig": false
},
"codeActionOnSave": {
"mode": "all"
},
"format": false,
"quiet": false,
"onIgnoredFiles": "off",
"options": {},
"rulesCustomizations": [],
"run": "onType",
"problems": {
"shortenToSingleLine": false
},
"nodePath": null,
"codeAction": {
"disableRuleComment": {
"enable": true,
"location": "separateLine",
"commentStyle": "line"
},
"showDocumentation": {
"enable": true
}
}
} }
})) }))
.boxed(), .boxed(),