🚀 Feature: Add words to cspell.json after setup if they would cause lint:spelling to error #702
Closed
3 tasks done
Labels
status: accepting prs
Please, send a pull request to resolve this!
type: feature
New enhancement or request
Bug Report Checklist
main
branch of the repository.Overview
pnpm run lint:spelling
runs cspell to check for spelling issues. But sometimes folks add new words in setup scripts that introduce complaints. For example, if you runnpx template-typescript-node-package --name rickastley
,pnpm run lint:spelling
in the new app will likely complain thatrickastley
is an unknown word.#381 (have cspell automatically detect values from the package) would be the ideal solution here. But it's blocked on streetsidesoftware/cspell#3215.
In the meantime, I'd propose that at the end of setup, the template should:
cspell.json
Additional Info
Does cspell have a Node / programmatic API documented anywhere? It surely must given that it has a VS Code extension... The closest I could find was streetsidesoftware/cspell#4415 & linked issues. Maybe it'd be good to file an issue asking for docs on cspell?
The text was updated successfully, but these errors were encountered: