Skip to content

Should I use eslint plugin, CLI, or both ? #6927

Answered by Jason3S
CaptainZiboo asked this question in Q&A
Discussion options

You must be logged in to vote

@CaptainZiboo,

Good question.

Like most situations, it depend upon you need.

  1. If you want to spell check code, comments, strings, and documents, then the CLI should work fine. The downside is that you might need to add third party library names to your dictionary.
  2. If you want more control over what to spell check in JavaScript or TypeScript, like just strings and comments, then using the ESLint Plugin will make that easier.
  3. It is possible to use both. Since the ESLint Plugin will check JavaScript/TypeScript files, adding ignorePaths: [**/*.{js,ts}] to your cspell.config.yaml will tell the CLI to not spell check those file.

In all cases, I suggest you create a cspell.config.yaml file and …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CaptainZiboo
Comment options

Answer selected by CaptainZiboo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants