дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 10:07:11 +02:00
Files below an ESLint configuration (eslint.config.*, .eslintrc*, or a package.json with eslintConfig) in JavaScript, TypeScript, JSX, Vue, Svelte and Astro are checked by vscode-eslint-language-server with the project's own eslint. The server is a managed tool; its settings include the `experimental` object it reads on every request, and its eslint/* requests get answers. Root markers can name a JSON object (`package.json#eslintConfig`) as well as a TOML table. Closes #2451
46 рядки
1.7 KiB
TOML
46 рядки
1.7 KiB
TOML
id = "svelte"
|
|
name = "Svelte"
|
|
extensions = ["svelte"]
|
|
block-comment = ["<!--", "-->"]
|
|
indent = { tab-size = 2, insert-spaces = true }
|
|
# No Svelte mode ships with @codemirror/language-data; the HTML mode already
|
|
# parses <script> as TypeScript and <style> as CSS, so components get highlighted.
|
|
ui-mode = "HTML"
|
|
|
|
[[language-servers]]
|
|
name = "svelte-language-server"
|
|
command = "svelteserver"
|
|
args = ["--stdio"]
|
|
root-markers = ["svelte.config.js", "svelte.config.mjs", "svelte.config.ts", "package.json"]
|
|
install-hint = "npm i -g svelte-language-server"
|
|
|
|
[[language-servers]]
|
|
name = "oxlint"
|
|
command = "oxlint"
|
|
args = ["--lsp"]
|
|
root-markers = [".oxlintrc.json", ".oxlintrc.jsonc", "oxlint.config.ts", "oxlint.config.mts"]
|
|
require-root-marker = true
|
|
install-hint = "npm i -D oxlint"
|
|
|
|
# ESLint: only below a project's ESLint configuration; the server runs the project's own eslint.
|
|
[[language-servers]]
|
|
name = "eslint"
|
|
command = "vscode-eslint-language-server"
|
|
args = ["--stdio"]
|
|
root-markers = ["eslint.config.js", "eslint.config.mjs", "eslint.config.cjs", "eslint.config.ts", "eslint.config.mts", "eslint.config.cts", ".eslintrc", ".eslintrc.js", ".eslintrc.cjs", ".eslintrc.json", ".eslintrc.yml", ".eslintrc.yaml", "package.json#eslintConfig"]
|
|
require-root-marker = true
|
|
install-hint = "npm i -g vscode-langservers-extracted"
|
|
|
|
[language-servers.settings]
|
|
# Read by every request (`experimental.useFlatConfig`); ESLint picks flat or legacy config itself.
|
|
experimental = {}
|
|
validate = "on"
|
|
run = "onType"
|
|
quiet = false
|
|
onIgnoredFiles = "off"
|
|
rulesCustomizations = []
|
|
nodePath = ""
|
|
problems = { shortenToSingleLine = false }
|
|
workingDirectory = { mode = "auto" }
|
|
codeAction = { disableRuleComment = { enable = true, location = "separateLine" }, showDocumentation = { enable = true } }
|