ls-config command outputs your current Vale configuration as formatted JSON, showing all settings after loading and merging configuration files.
Usage
.vale.ini file and any configuration pipeline files, then outputs the complete configuration as JSON to stdout.
This command is useful for debugging configuration issues and understanding how Vale interprets your settings.
Output Format
The command outputs a JSON object containing all configuration properties:Configuration Properties
Numeric alert level threshold:
0= suggestion1= warning2= error
Global base styles enabled for all files.
Syntax-specific base styles, keyed by file pattern.Example:
Global check settings, mapping rule names to enabled status.Example:
Syntax-specific check settings, keyed by file pattern.
List of all enabled check names.
Absolute path to the root
.vale.ini configuration file.List of style paths searched for style packages.
All configuration files loaded, in order.
HTML tags where Vale ignores content completely.Example:
["code", "pre", "tt"]HTML tags where Vale skips content but still processes nested elements.Example:
["script", "style", "figure"]Block-level ignore patterns by format.Example:
Token-level ignore patterns by format.
Active vocabulary names.
Custom format associations mapping file extensions to formats.
Per-rule alert level overrides.Example:
Use Cases
Debugging Configuration
When Vale behaves unexpectedly, check the loaded configuration:Verify Style Loading
Confirm that styles are found and loaded:Check Paths
Verify configuration file and style paths:Inspect Scope Configuration
Check which scopes are ignored or skipped:Verify Rule Overrides
Confirm rule-specific settings:Examples
Using with jq
Since the output is JSON, you can usejq to query specific values:
- Filter styles
- Count enabled rules
- Find specific rules
- Pretty print paths
Configuration Loading Order
Vale loads configuration from multiple sources in this order:Global configuration
The global
.vale.ini from ~/.config/vale/.vale.ini (unless --no-global is used).ls-config output shows the final merged configuration after all sources are processed.
The
ConfigFiles array in the output shows which configuration files were loaded, in the order they were processed.