Problem
CSpell can be manually installed and set up as a local pre-commit hook (https://www.npmjs.com/package/cspell#git-commit-hooks, https://pre-commit.com/#repository-local-hooks).
Solution
But by adding an appropriate .pre-commit-hooks.yaml to the repo (https://pre-commit.com/#creating-new-hooks) it could be used in the usual way without installing (https://pre-commit.com/#2-add-a-pre-commit-configuration).
Alternatives
This seems to already be supported with cspell-cli, but it appears that won't use the vscode workspace dictionary and configuration: https://github.com/streetsidesoftware/cspell-cli#setup-pre-commit-hook
Additional Context
See the expired issue where this was previously requested, and attempted in a fork: streetsidesoftware/cspell#56.
Code of Conduct
Problem
CSpell can be manually installed and set up as a local pre-commit hook (https://www.npmjs.com/package/cspell#git-commit-hooks, https://pre-commit.com/#repository-local-hooks).
Solution
But by adding an appropriate
.pre-commit-hooks.yamlto the repo (https://pre-commit.com/#creating-new-hooks) it could be used in the usual way without installing (https://pre-commit.com/#2-add-a-pre-commit-configuration).Alternatives
This seems to already be supported with
cspell-cli, but it appears that won't use the vscode workspace dictionary and configuration: https://github.com/streetsidesoftware/cspell-cli#setup-pre-commit-hookAdditional Context
See the expired issue where this was previously requested, and attempted in a fork: streetsidesoftware/cspell#56.
Code of Conduct