diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2026-03-27 10:46:03 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2026-03-27 10:46:03 +0000 |
| commit | 027861fad6bf79d2751a2bddaf813349b30a9fa3 (patch) | |
| tree | 82d83692ffc06365e1cfc8bbeb25ed90d1303b21 /lua | |
| parent | fix(roslyn_ls): handle roslyn.client.fixAllCodeAction command #4358 (diff) | |
| download | nvim-lspconfig-027861fad6bf79d2751a2bddaf813349b30a9fa3.tar nvim-lspconfig-027861fad6bf79d2751a2bddaf813349b30a9fa3.tar.gz nvim-lspconfig-027861fad6bf79d2751a2bddaf813349b30a9fa3.tar.bz2 nvim-lspconfig-027861fad6bf79d2751a2bddaf813349b30a9fa3.tar.lz nvim-lspconfig-027861fad6bf79d2751a2bddaf813349b30a9fa3.tar.xz nvim-lspconfig-027861fad6bf79d2751a2bddaf813349b30a9fa3.tar.zst nvim-lspconfig-027861fad6bf79d2751a2bddaf813349b30a9fa3.zip | |
chore: update generated annotations
skip-checks: true
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/types/lsp/stylelint_lsp.lua | 135 |
1 files changed, 109 insertions, 26 deletions
diff --git a/lua/lspconfig/types/lsp/stylelint_lsp.lua b/lua/lspconfig/types/lsp/stylelint_lsp.lua index 128b2e94..d725fac6 100644 --- a/lua/lspconfig/types/lsp/stylelint_lsp.lua +++ b/lua/lspconfig/types/lsp/stylelint_lsp.lua @@ -1,47 +1,130 @@ ---@meta ----@class _.lspconfig.settings.stylelint_lsp.Stylelintplus.Trace ----Capture trace messages from the server. +---Options for the disable lint rule action in the quick fix menu. --- ---```lua ----default = "off" +---default = { +--- location = "separateLine" +---} ---``` ----@field server? "off" | "messages" | "verbose" +---@class _.lspconfig.settings.stylelint_lsp.Stylelint.CodeAction.DisableRuleComment +---Configure whether disable comments are added on the same line or a new line. +--- +---```lua +---default = "separateLine" +---``` +---@field location? "separateLine" | "sameLine" + +---@class _.lspconfig.settings.stylelint_lsp.Stylelint.CodeAction +---Options for the disable lint rule action in the quick fix menu. +--- +---```lua +---default = { +--- location = "separateLine" +---} +---``` +---@field disableRuleComment? _.lspconfig.settings.stylelint_lsp.Stylelint.CodeAction.DisableRuleComment + +---@class _.lspconfig.settings.stylelint_lsp.Stylelint.LintFiles +---The glob pattern used by the "Lint All Files" and "Lint Workspace Folder" commands to discover files. Adjust this if you lint SCSS, Less, or other file types; for example, `**/*.{css,scss}`. +--- +---```lua +---default = "**/*.css" +---``` +---@field glob? string + +---@class _.lspconfig.settings.stylelint_lsp.Stylelint.Rules +---Override severity levels for specific rules. +--- +---```lua +---default = {} +---``` +---@field customizations? table[] ----@class _.lspconfig.settings.stylelint_lsp.Stylelintplus ----Auto-fix on format request. ----@field autoFixOnFormat? boolean ----Auto-fix and format on save. ----@field autoFixOnSave? boolean ----Stylelint config. If config and configFile are unset, stylelint will automatically look for a config file. +---@class _.lspconfig.settings.stylelint_lsp.Stylelint +---@field codeAction? _.lspconfig.settings.stylelint_lsp.Stylelint.CodeAction +---A Stylelint configuration object. ---@field config? table ----Stylelint config file. If config and configFile are unset, stylelint will automatically look for a config file. +---A path to the directory that relative paths defining "extends" and "plugins" are relative to. +--- +---```lua +---default = "" +---``` +---@field configBasedir? string +---Path to a JSON, YAML, or JS file that contains your configuration object. Use this option if you don't want Stylelint to search for a configuration file. +--- +---```lua +---default = "" +---``` ---@field configFile? string ----Stylelint config overrides. These will be applied on top of the config, configFile, or auto-discovered config file loaded by stylelint. ----@field configOverrides? table ----Run stylelint on javascript/typescript files. ----@field cssInJs? boolean ----If false, stylelint will not validate the file. +---An absolute path to a custom PostCSS-compatible syntax module. +--- +---```lua +---default = "" +---``` +---@field customSyntax? string +---Control whether Stylelint is enabled or not. --- ---```lua ---default = true ---``` ---@field enable? boolean ----Filetypes that coc-stylelintplus will lint. +---Additional exec argv arguments passed to the Node.js runtime. +---@field execArgv? string[]|any +---Ignore `stylelint-disable` (e.g. `/* stylelint-disable block-no-empty */`) comments. +---@field ignoreDisables? boolean +---Path to a file containing patterns describing files to ignore. Use to override automatic `.stylelintignore` detection. --- ---```lua ----default = { "css", "less", "postcss", "sass", "scss", "sugarss", "vue", "wxss" } +---default = "" ---``` ----@field filetypes? string[] ----@field trace? _.lspconfig.settings.stylelint_lsp.Stylelintplus.Trace ----Validate after saving. Automatically enabled if autoFixOnSave is enabled. ----@field validateOnSave? boolean ----Validate after making changes. +---@field ignorePath? string +---@field lintFiles? _.lspconfig.settings.stylelint_lsp.Stylelint.LintFiles +---Controls the log level used by the Stylelint extension and language server. Restart the extension host or the window after changing the setting, since it's picked up at initialization. --- ---```lua ----default = true +---default = "info" +---``` +---@field logLevel? "error" | "warn" | "info" | "debug" +---The package manager you use to install node modules. +--- +---```lua +---default = "npm" +---``` +---@field packageManager? "npm" | "yarn" | "pnpm" +---Report `stylelint-disable` comments without a description. +---@field reportDescriptionlessDisables? boolean +---Also report errors for `stylelint-disable` comments that used for rules that don't exist within the configuration object. +---@field reportInvalidScopeDisables? boolean +---Also report errors for `stylelint-disable` comments that are not blocking a lint warning. +---@field reportNeedlessDisables? boolean +---@field rules? _.lspconfig.settings.stylelint_lsp.Stylelint.Rules +---Control when the extension lints your files. onType lints files as you edit them, while onSave only lints when you save the file. +--- +---```lua +---default = "onType" +---``` +---@field run? "onSave" | "onType" +---The location of the node binary to run Stylelint under. +---@field runtime? string +---An array of language ids which snippets are provided by Stylelint. +--- +---```lua +---default = { "css", "postcss" } +---``` +---@field snippet? string[] +---Supply a custom path to the Stylelint module. +--- +---```lua +---default = "" +---``` +---@field stylelintPath? string +---An array of language ids which should be validated by Stylelint. +--- +---```lua +---default = { "css", "postcss" } ---``` ----@field validateOnType? boolean +---@field validate? string[] ---@class lspconfig.settings.stylelint_lsp ----@field stylelintplus? _.lspconfig.settings.stylelint_lsp.Stylelintplus +---@field stylelint? _.lspconfig.settings.stylelint_lsp.Stylelint |
