дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
Fix ESLint Problems runs vscode-eslint's source.fixAll.eslint on the whole file; the editor context menu offers it for files a running ESLint server lints, and it can be bound in the keymap. The ESLint server settings sent codeActionOnSave.rules = [], which vscode-eslint reads as "fix no rule", so its fix-all (also from Code Cleanup and Actions on Save) always returned an empty edit. The key is left out now, so every configured rule is fixed.
47 рядки
1.8 KiB
TOML
47 рядки
1.8 KiB
TOML
id = "astro"
|
|
name = "Astro"
|
|
extensions = ["astro"]
|
|
block-comment = ["<!--", "-->"]
|
|
indent = { tab-size = 2, insert-spaces = true }
|
|
ui-mode = "Astro"
|
|
|
|
[[language-servers]]
|
|
name = "astro-ls"
|
|
command = "astro-ls"
|
|
args = ["--stdio"]
|
|
root-markers = ["astro.config.mjs", "astro.config.js", "astro.config.ts", "astro.config.mts", "astro.config.cjs", "astro.config.cts"]
|
|
install-hint = "npm i -g @astrojs/language-server typescript@6"
|
|
|
|
[[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 } }
|
|
# vscode-eslint reads it for every source.fixAll request (Actions on Save, Code Cleanup).
|
|
# No `rules`: an empty list there means no rule gets fixed.
|
|
codeActionOnSave = { mode = "all" }
|