Open xpol opened 5 years ago
I fully agree with you that it should not spell check imports.
I am working on a way to do this, but it will take some time.
@Jason3S is there a regex we could use for now until a proper workaround is added?
I'm thinking something like this might work?
// cSpell:ignoreRegExp (?:from (?:'|")([A-Za-z0-9-_\/\.\@]*)(?:'|"))|(?:require\((?:'|")([A-Za-z0-9-_\/\.\@]*)(?:'|")\)) -- ignore node's import/require
import shouldCheck from "shouldNotCheck"
const shouldCheckToo = require("shouldNotCheckToo")
What
The
shouldNotCheck
andshouldNotCheckToo
should not checked by vscode-spell-checker.Why
Package names may be not have valid spells. eg
antd
But they may widely used in whole project. To disable them manually is not necessary.