Merge pull request #2425 from zed-industries/trim-eslint-workspace-configuration
Trim eslint workspace configuration & remove diagnostic source underline
This commit is contained in:
commit
5fb9d53dd0
2 changed files with 5 additions and 30 deletions
|
@ -188,35 +188,10 @@ impl LspAdapter for EsLintLspAdapter {
|
|||
Some(
|
||||
future::ready(json!({
|
||||
"": {
|
||||
"validate": "on",
|
||||
"packageManager": "npm",
|
||||
"useESLintClass": false,
|
||||
"experimental": {
|
||||
"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
|
||||
}
|
||||
}
|
||||
"validate": "on",
|
||||
"rulesCustomizations": [],
|
||||
"run": "onType",
|
||||
"nodePath": null,
|
||||
}
|
||||
}))
|
||||
.boxed(),
|
||||
|
|
|
@ -40,7 +40,7 @@ export default function HoverPopover(colorScheme: ColorScheme) {
|
|||
padding: { top: 4 },
|
||||
},
|
||||
prose: text(layer, "sans", { size: "sm" }),
|
||||
diagnosticSourceHighlight: { underline: true, color: foreground(layer, "accent") },
|
||||
diagnosticSourceHighlight: { color: foreground(layer, "accent") },
|
||||
highlight: colorScheme.ramps.neutral(0.5).alpha(0.2).hex(), // TODO: blend was used here. Replace with something better
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue