Skip to content

chore: Prepare Release v10.6.0 (auto-deploy) - #9655

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
release-draft
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
release-draft

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Release v10.6.0

Release Notes

Details

Features

feat: Make `--config` replace the configuration files where cspell runs (#9640)

feat: Make --config replace the configuration files where cspell runs (#9640)

Summary

The --config <file> and --stop-config-search-at <dir> options now give more control over which configuration files cspell loads.

When cspell checks a file, it uses the nearest configuration file it finds by searching up the directory tree from that file. The --stop-config-search-at <dir> option now limits how far up that search goes, for every file. The --no-config-search option turns the search off.

Specifying --config <file> now prevents loading configuration files from the current directory and the directories above it. Configuration files in subdirectories still apply.

Feature

A project with two configuration files in its top directory, and one more for its German docs:

project/
  cspell.json              { "flagWords": ["hello"] }
  cspell.custom.json       {}
  README.md                hello world
  i18n/de/
    cspell.json            { "flagWords": ["hallo"] }
    README.md              hallo welt

Before, running cspell in project/ still checked README.md with cspell.json:

$ cspell lint --config cspell.custom.json "**/*.md"
i18n/de/README.md:1:1 - Forbidden word (hallo)
README.md:1:1 - Forbidden word (hello)
CSpell: Files checked: 2, Issues found: 2 in 2 files.

After, only cspell.custom.json applies in the current directory, and i18n/de/cspell.json still applies to the German docs:

$ cspell lint --config cspell.custom.json "**/*.md"
i18n/de/README.md:1:1 - Forbidden word (hallo)
CSpell: Files checked: 2, Issues found: 1 in 1 file.
  • The same applies to a configuration file named with the CSPELL_CONFIG_PATH environment variable, or with cspell-action's config input.
  • To also include the configuration file in the current directory, add --stop-config-search-at . to the command.
  • To build on cspell.json, add "import": ["./cspell.json"] to the file you name. Then cspell.json applies to every file, and the file you name wins where the two disagree.

To ignore configuration files above the current directory, such as one in your home directory:

cspell lint --stop-config-search-at . "**/*.md"
Technical Details
  • In cspell-lib, a new option, stopConfigSearchAt, sets the directories where the search for a document's configuration file stops. The search looks in each of those directories, and no further up.
  • It's in SpellCheckFileOptions and DocumentValidatorOptions.
  • An entry can also be a StopAtLocation, a new type. With exclusive: true, the search stops below that directory, so a configuration file in it isn't used.
  • The lint cache now also records the configuration file you name, or the one cspell finds on its own, and the --stop-config-search-at directories. A run where either one differs rechecks its files.
  • They're stored as relative paths, so a shared cache still matches on another machine.

Fixes

fix: Don't reuse cached results between runs with and without "--no-config-search" (#9683)

fix: Don't reuse cached results between runs with and without "--no-config-search" (#9683)

Summary

With --cache, cspell lint no longer reuses a file's cached result between runs with and without --no-config-search.

Before this fix:

  • A run with --no-config-search could reuse the result of a run that used configuration files found near the file.
  • A run without the flag could reuse the result of a run with --no-config-search, which didn't use them.

Either way, the run could report issues it shouldn't, or miss issues it should report.


fix: Show what relative paths are relative to in "cspell lint --help --verbose" (#9682)

fix: Show what relative paths are relative to in "cspell lint --help --verbose" (#9682)

Summary

The verbose help for cspell lint now ends with a table of its path options and what a relative path in each is relative to: the root or the current directory.

  • It appears in cspell lint --help --verbose and cspell --help --verbose.
  • How paths are resolved doesn't change, and the normal --help output stays the same.

Before

Hidden Options:
  ...
  --debug                        Output information useful for debugging cspell.json files.
  -f,--flag <flag:value>         Declare an execution flag value

More Examples:
  ...

After

Hidden Options:
  ...
  --debug                        Output information useful for debugging cspell.json files.
  -f,--flag <flag:value>         Declare an execution flag value

Relative Paths:
  Option                    Relative to
  [globs...]                the root
  [file://<path>]           the root
  [stdin://<path>]          the root
  --file                    the root
  --exclude                 the root
  --cache-location          the root
  --root                    the current directory
  --config                  the current directory
  --file-list               the current directory
    each path in the list   the list file's directory
  --stop-config-search-at   the current directory
  --gitignore-root          the current directory
  --reporter                the current directory

More Examples:
  ...

Version Information

  • Tag: v10.6.0
  • Version: 10.6.0

Summary

 .release.json                                    |   6 +-
 CHANGELOG.md                                     | 151 +++++++++++++++++++++++
 packages/cspell-bundled-dicts/CHANGELOG.md       |  15 +++
 packages/cspell-config-lib/CHANGELOG.md          |  15 +++
 packages/cspell-dictionary/CHANGELOG.md          |  15 +++
 packages/cspell-eslint-plugin/CHANGELOG.md       |  15 +++
 packages/cspell-filetypes/CHANGELOG.md           |  15 +++
 packages/cspell-gitignore/CHANGELOG.md           |  15 +++
 packages/cspell-glob/CHANGELOG.md                |  15 +++
 packages/cspell-grammar/CHANGELOG.md             |  15 +++
 packages/cspell-io/CHANGELOG.md                  |  15 +++
 packages/cspell-json-reporter/CHANGELOG.md       |  15 +++
 packages/cspell-lib/CHANGELOG.md                 |  15 +++
 packages/cspell-normalize-json/CHANGELOG.md      |  15 +++
 packages/cspell-performance-monitor/CHANGELOG.md |  15 +++
 packages/cspell-pipe/CHANGELOG.md                |  15 +++
 packages/cspell-resolver/CHANGELOG.md            |  15 +++
 packages/cspell-service-bus/CHANGELOG.md         |  15 +++
 packages/cspell-strong-weak-map/CHANGELOG.md     |  15 +++
 packages/cspell-tools-alias/CHANGELOG.md         |  15 +++
 packages/cspell-tools/CHANGELOG.md               |  15 +++
 packages/cspell-trie-lib/CHANGELOG.md            |  15 +++
 packages/cspell-trie/CHANGELOG.md                |  15 +++
 packages/cspell-types/CHANGELOG.md               |  15 +++
 packages/cspell-url/CHANGELOG.md                 |  15 +++
 packages/cspell-worker/CHANGELOG.md              |  15 +++
 packages/cspell/CHANGELOG.md                     | 151 +++++++++++++++++++++++
 packages/dynamic-import/CHANGELOG.md             |  15 +++
 packages/flatpack-json/CHANGELOG.md              |  15 +++
 packages/hunspell-reader/CHANGELOG.md            |  15 +++
 packages/rpc/CHANGELOG.md                        |  15 +++
 31 files changed, 725 insertions(+), 3 deletions(-)

@github-actions
github-actions Bot force-pushed the release-draft branch 24 times, most recently from 21b5287 to 0be4656 Compare November 20, 2026 19:42
@github-actions github-actions Bot changed the title chore: Prepare Release v10.5.3 (auto-deploy) chore: Prepare Release v10.6.0 (auto-deploy) Nov 20, 2026
@github-actions
github-actions Bot force-pushed the release-draft branch 5 times, most recently from 2842a4f to 008ec9d Compare November 21, 2026 07:23
@github-actions
github-actions Bot force-pushed the release-draft branch 6 times, most recently from 5163bf9 to f8d5224 Compare November 23, 2026 12:18

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants